mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-20 23:00:34 +00:00
BIG-81: fix error message.
This commit is contained in:
@@ -82,7 +82,7 @@ function EstimateForm({
|
|||||||
errors.some((error) => error.type === ERROR.SALE_ESTIMATE_NO_IS_REQUIRED)
|
errors.some((error) => error.type === ERROR.SALE_ESTIMATE_NO_IS_REQUIRED)
|
||||||
) {
|
) {
|
||||||
setErrors({
|
setErrors({
|
||||||
estimate_number: intl.get('estimate.field.error.estimate_number'),
|
estimate_number: intl.get('estimate.field.error.estimate_number_required'),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ export const transformErrors = (errors, { setErrors }) => {
|
|||||||
errors.some((error) => error.type === ERROR.SALE_INVOICE_NO_IS_REQUIRED)
|
errors.some((error) => error.type === ERROR.SALE_INVOICE_NO_IS_REQUIRED)
|
||||||
) {
|
) {
|
||||||
setErrors({
|
setErrors({
|
||||||
invoice_no: intl.get('invoice.field.error.invoice_no'),
|
invoice_no: intl.get('invoice.field.error.invoice_no_required'),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1324,6 +1324,6 @@
|
|||||||
"auto_increment.field.manually": "I will enter them manually each time",
|
"auto_increment.field.manually": "I will enter them manually each time",
|
||||||
"auto_increment.field.manual_this_transaction": "Manual entering for this transaction.",
|
"auto_increment.field.manual_this_transaction": "Manual entering for this transaction.",
|
||||||
"auto_increment.field.auto": "Auto-incrementing number.",
|
"auto_increment.field.auto": "Auto-incrementing number.",
|
||||||
"estimate.field.error.estimate_number":"Estimate number is required, use auto-increment mode or enter manually.",
|
"estimate.field.error.estimate_number_required":"Estimate number is required, use auto-increment mode or enter manually.",
|
||||||
"invoice.field.error.invoice_no":"Invoice number is required, use auto-increment mode or enter manually"
|
"invoice.field.error.invoice_no_required":"Invoice number is required, use auto-increment mode or enter manually"
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user