#7130 - addFieldInRoutes #259

Merged
jon merged 6 commits from 7130-addFieldInRoutes into dev 2024-04-18 09:34:32 +00:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 43976e8ced - Show all commits

View File

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