mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 14:20:31 +00:00
Compare commits
1 Commits
v0.9.4
...
fix-make-j
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
162ad91547 |
@@ -28,6 +28,8 @@ const ERROR = {
|
|||||||
CREDIT_DEBIT_SUMATION_SHOULD_NOT_EQUAL_ZERO:
|
CREDIT_DEBIT_SUMATION_SHOULD_NOT_EQUAL_ZERO:
|
||||||
'CREDIT.DEBIT.SUMATION.SHOULD.NOT.EQUAL.ZERO',
|
'CREDIT.DEBIT.SUMATION.SHOULD.NOT.EQUAL.ZERO',
|
||||||
ENTRIES_SHOULD_ASSIGN_WITH_CONTACT: 'ENTRIES_SHOULD_ASSIGN_WITH_CONTACT',
|
ENTRIES_SHOULD_ASSIGN_WITH_CONTACT: 'ENTRIES_SHOULD_ASSIGN_WITH_CONTACT',
|
||||||
|
COULD_NOT_ASSIGN_DIFFERENT_CURRENCY_TO_ACCOUNTS:
|
||||||
|
'COULD_NOT_ASSIGN_DIFFERENT_CURRENCY_TO_ACCOUNTS',
|
||||||
};
|
};
|
||||||
|
|
||||||
export const MIN_LINES_NUMBER = 1;
|
export const MIN_LINES_NUMBER = 1;
|
||||||
@@ -161,6 +163,15 @@ export const transformErrors = (resErrors, { setErrors, errors }) => {
|
|||||||
intl.get('journal_number_is_already_used'),
|
intl.get('journal_number_is_already_used'),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
if (
|
||||||
|
(error = getError(ERROR.COULD_NOT_ASSIGN_DIFFERENT_CURRENCY_TO_ACCOUNTS))
|
||||||
|
) {
|
||||||
|
toastMessages.push(
|
||||||
|
intl.get(
|
||||||
|
'make_journal.errors.should_add_accounts_in_same_currency_or_base_currency',
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
setErrors({ ...newErrors });
|
setErrors({ ...newErrors });
|
||||||
|
|
||||||
if (toastMessages.length > 0) {
|
if (toastMessages.length > 0) {
|
||||||
|
|||||||
@@ -703,6 +703,7 @@
|
|||||||
"email_is_already_used": "The email is already used.",
|
"email_is_already_used": "The email is already used.",
|
||||||
"the_item_categories_has_been_deleted_successfully": "The item categories has been deleted successfully .",
|
"the_item_categories_has_been_deleted_successfully": "The item categories has been deleted successfully .",
|
||||||
"receivable_accounts_should_assign_with_customers": "Receivable accounts should assign with customers.",
|
"receivable_accounts_should_assign_with_customers": "Receivable accounts should assign with customers.",
|
||||||
|
"make_journal.errors.should_add_accounts_in_same_currency_or_base_currency": "You can only add accounts that have the same selected currency or base currency.",
|
||||||
"delivered": "Delivered",
|
"delivered": "Delivered",
|
||||||
"save_and_deliver": "Save & Deliver",
|
"save_and_deliver": "Save & Deliver",
|
||||||
"deliver_and_new": "Deliver and new",
|
"deliver_and_new": "Deliver and new",
|
||||||
|
|||||||
Reference in New Issue
Block a user