7691-testToMaster #537

Merged
alexm merged 395 commits from 7691-testToMaster into master 2024-07-09 05:39:56 +00:00
1 changed files with 11 additions and 4 deletions
Showing only changes of commit bc1a79ac68 - Show all commits

View File

@ -80,6 +80,16 @@ const handleScroll = async () => {
}
};
const transferInvoice = async () => {
const params = {
id: transferInvoiceParams.id,
cplusRectificationTypeFk: transferInvoiceParams.cplusRectificationTypeFk,
invoiceCorrectionTypeFk: transferInvoiceParams.invoiceCorrectionTypeFk,
newClientFk: transferInvoiceParams.newClientFk,
refFk: transferInvoiceParams.refFk,
siiTypeInvoiceOutFk: transferInvoiceParams.siiTypeInvoiceOutFk,
checked: checked.value,
};
try {
const clientDetails = await axios.get(
`Clients/${transferInvoiceParams.newClientFk}`
@ -94,10 +104,7 @@ const transferInvoice = async () => {
},
});
const { data } = await axios.post(
'InvoiceOuts/transferInvoice',
transferInvoiceParams
);
const { data } = await axios.post('InvoiceOuts/transferInvoice', params);
notify(t('Transferred invoice'), 'positive');
closeForm();
router.push('InvoiceOutSummary', { id: data.id });