#6900 fine tunning invoice in #601

Merged
jorgep merged 14 commits from 6900-fineTunning into dev 2024-08-09 10:32:25 +00:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit 88b6d7c9ae - Show all commits

View File

@ -130,9 +130,9 @@ onBeforeMount(async () => {
}); });
onBeforeRouteUpdate(async (to, from) => { onBeforeRouteUpdate(async (to, from) => {
if (to.params.id !== from.params.id) {
invoiceInCorrection.correcting.length = 0; invoiceInCorrection.correcting.length = 0;

Al cambiar de sección (no de id) se borraba.

Al cambiar de sección (no de id) se borraba.
invoiceInCorrection.corrected = null; invoiceInCorrection.corrected = null;
if (to.params.id !== from.params.id) {
await setInvoiceCorrection(to.params.id); await setInvoiceCorrection(to.params.id);
const { data } = await axios.get(`InvoiceIns/${to.params.id}/getTotals`); const { data } = await axios.get(`InvoiceIns/${to.params.id}/getTotals`);
totalAmount.value = data.totalDueDay; totalAmount.value = data.totalDueDay;