diff --git a/src/pages/InvoiceIn/Card/InvoiceInDueDay.vue b/src/pages/InvoiceIn/Card/InvoiceInDueDay.vue index 2346ee301..f4278e19a 100644 --- a/src/pages/InvoiceIn/Card/InvoiceInDueDay.vue +++ b/src/pages/InvoiceIn/Card/InvoiceInDueDay.vue @@ -115,96 +115,95 @@ async function setTaxableBase() { onBeforeMount(async () => await setTaxableBase()); + + + - - {{ t('Create due day') }} - - + invoiceInDueDayTableRef.create = { + urlCreate: 'InvoiceInDueDays', + onDataSaved: () => invoiceInDueDayTableRef.reload(), + title: t('Create due day'), + formInitialData: { + invoiceInFk: invoiceId, + dueDated: Date.vnNew(), + amount: (totalTaxableBase - totalAmount).toFixed(2), + }, + }; + invoiceInDueDayTableRef.showForm = true; + } + " + color="primary" + fab + icon="add" + v-shortcut="'+'" + data-cy="invoiceInDueDayAdd" + /> + + {{ t('Create due day') }} + + + es: