mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 04:40:32 +00:00
Merge branch 'master' of https://github.com/abouolia/Ratteb
This commit is contained in:
@@ -21,4 +21,12 @@ export const transformErrors = (errors, { setFieldError }) => {
|
||||
formatMessage({ id: 'payment_number_is_not_unique' }),
|
||||
);
|
||||
}
|
||||
if (getError('INVALID_PAYMENT_AMOUNT')) {
|
||||
setFieldError(
|
||||
'payment_amount',
|
||||
formatMessage({
|
||||
id: 'the_payment_amount_bigger_than_invoice_due_amount',
|
||||
}),
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -26,4 +26,12 @@ export const transformErrors = (errors, { setFieldError }) => {
|
||||
formatMessage({ id: 'payment_receive_number_required' }),
|
||||
);
|
||||
}
|
||||
if (getError('INVALID_PAYMENT_AMOUNT')) {
|
||||
setFieldError(
|
||||
'payment_amount',
|
||||
formatMessage({
|
||||
id: 'the_payment_amount_bigger_than_invoice_due_amount',
|
||||
}),
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -1009,4 +1009,6 @@ export default {
|
||||
payment_no: 'Payment No.',
|
||||
payment_receive_number_required: 'Payment receive number required',
|
||||
quick_made_payment: 'Quick Made Payment',
|
||||
the_payment_amount_bigger_than_invoice_due_amount:
|
||||
'The payment amount bigger than invoice due amount.',
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user