feat: refs #8406 add empty row on loading InvoiceInVat

This commit is contained in:
Pau Rovira 2025-04-23 13:53:34 +02:00
parent aedcda4799
commit 8e08f65173
2 changed files with 5 additions and 0 deletions

View File

@ -194,6 +194,10 @@ async function onSubmitAndGo() {
}
async function saveChanges(data) {
formData.value = formData.value.filter(row =>
row[$props.primaryKey] || !isRowEmpty(row)
);
if ($props.saveFn) {
$props.saveFn(data, getChanges);
isLoading.value = false;

View File

@ -187,6 +187,7 @@ function setCursor(ref) {
url="InvoiceInTaxes"
:filter="filter"
:data-required="{ invoiceInFk: $route.params.id }"
:insert-on-load="true"
auto-load
v-model:selected="rowsSelected"
:go-to="`/invoice-in/${$route.params.id}/due-day`"