fix homepage news, invoice

This commit is contained in:
Phuoc Nguyen
2025-12-09 11:17:32 +07:00
parent e0a9b3b9f4
commit 597c6a0e57
8 changed files with 51 additions and 99 deletions

View File

@@ -294,10 +294,10 @@ class InvoiceDetailPage extends ConsumerWidget {
List<_InfoLine> _buildBuyerInfoLines(Invoice invoice) {
return [
if (invoice.buyerInfo!.name != null)
_InfoLine(label: 'Người mua hàng', value: invoice.buyerInfo!.name!),
if (invoice.customerName != null)
_InfoLine(label: 'Tên đơn vị', value: invoice.customerName!),
if (invoice.buyerInfo!.customerName != null)
_InfoLine(label: 'Người mua hàng', value: invoice.buyerInfo!.customerName!),
if (invoice.buyerInfo!.addressTitle != null)
_InfoLine(label: 'Tên đơn vị', value: invoice.buyerInfo!.addressTitle!),
if (invoice.buyerInfo!.taxCode != null)
_InfoLine(label: 'Mã số thuế', value: invoice.buyerInfo!.taxCode!),
if (invoice.buyerInfo!.fullAddress.isNotEmpty)