refactor: refs #6739 updated transferInvoice function
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
parent
7befca94bd
commit
bc1a79ac68
|
@ -80,6 +80,16 @@ const handleScroll = async () => {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
const transferInvoice = 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 {
|
try {
|
||||||
const clientDetails = await axios.get(
|
const clientDetails = await axios.get(
|
||||||
`Clients/${transferInvoiceParams.newClientFk}`
|
`Clients/${transferInvoiceParams.newClientFk}`
|
||||||
|
@ -94,10 +104,7 @@ const transferInvoice = async () => {
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const { data } = await axios.post(
|
const { data } = await axios.post('InvoiceOuts/transferInvoice', params);
|
||||||
'InvoiceOuts/transferInvoice',
|
|
||||||
transferInvoiceParams
|
|
||||||
);
|
|
||||||
notify(t('Transferred invoice'), 'positive');
|
notify(t('Transferred invoice'), 'positive');
|
||||||
closeForm();
|
closeForm();
|
||||||
router.push('InvoiceOutSummary', { id: data.id });
|
router.push('InvoiceOutSummary', { id: data.id });
|
||||||
|
|
Loading…
Reference in New Issue