From 43976e8ceda2721444066c5a87fddf99e4e74ff1 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Thu, 18 Apr 2024 07:37:19 +0000 Subject: [PATCH] fix minor bug to show --- src/pages/InvoiceIn/Card/InvoiceInDescriptor.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/InvoiceIn/Card/InvoiceInDescriptor.vue b/src/pages/InvoiceIn/Card/InvoiceInDescriptor.vue index 5adaeca94..2c4a19be5 100644 --- a/src/pages/InvoiceIn/Card/InvoiceInDescriptor.vue +++ b/src/pages/InvoiceIn/Card/InvoiceInDescriptor.vue @@ -257,7 +257,7 @@ const requiredFieldRule = (val) => val || t('globals.requiredField'); const isAdministrative = () => hasAny(['administrative']); const isAgricultural = () => - invoiceIn.value.supplier.sageWithholdingFk == config.value[0].sageWithholdingFk; + invoiceIn.value?.supplier?.sageWithholdingFk === config.value[0]?.sageWithholdingFk; function showPdfInvoice() { if (isAgricultural()) openReport(`InvoiceIns/${entityId.value}/invoice-in-pdf`);