diff --git a/src/app/shared/components/invoices/sale-invoice-single-view.component.ts b/src/app/shared/components/invoices/sale-invoice-single-view.component.ts index 558fe73..7dfe118 100644 --- a/src/app/shared/components/invoices/sale-invoice-single-view.component.ts +++ b/src/app/shared/components/invoices/sale-invoice-single-view.component.ts @@ -132,11 +132,12 @@ export class SharedSaleInvoiceSingleViewComponent { }, { label: 'شماره اقتصادی', - value: this.invoice.customer - ? this.invoice.customer.type === 'LEGAL' - ? this.invoice.customer.legal?.economic_code - : this.invoice.customer.individual?.economic_code || '-' - : '-', + value: + (this.invoice.customer + ? this.invoice.customer.type === 'LEGAL' + ? this.invoice.customer.legal?.economic_code + : this.invoice.customer.individual?.economic_code || '-' + : '-') || '-', }, ], },