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`);