mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-24 23:35:45 +00:00
fix(FE): fixing injection payload negative not send properly
This commit is contained in:
@@ -94,7 +94,7 @@ const FormFinanceInjection = ({
|
|||||||
return {
|
return {
|
||||||
bank_id: Number(values.bank_id_option?.value) || 0,
|
bank_id: Number(values.bank_id_option?.value) || 0,
|
||||||
adjustment_date: formatDate(values.adjustment_date, 'YYYY-MM-DD'),
|
adjustment_date: formatDate(values.adjustment_date, 'YYYY-MM-DD'),
|
||||||
nominal: Number(values.nominal.replace(/\D/g, '')) || 0,
|
nominal: isNaN(Number(values.nominal)) ? 0 : Number(values.nominal),
|
||||||
notes: values.note,
|
notes: values.note,
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user