spelling: accounts

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
Josh Soref
2023-06-19 01:36:26 -04:00
parent f46f595e96
commit 0e589ace82
6 changed files with 6 additions and 6 deletions

View File

@@ -387,7 +387,7 @@ export default class ManualJournalsController extends BaseController {
errors: [{ type: 'CREDIT.DEBIT.NOT.EQUALS', code: 300 }], errors: [{ type: 'CREDIT.DEBIT.NOT.EQUALS', code: 300 }],
}); });
} }
if (error.errorType === 'acccounts_ids_not_found') { if (error.errorType === 'accounts_ids_not_found') {
return res.boom.badRequest( return res.boom.badRequest(
'Journal entries some of accounts ids not exists.', 'Journal entries some of accounts ids not exists.',
{ errors: [{ type: 'ACCOUNTS.IDS.NOT.FOUND', code: 400 }] } { errors: [{ type: 'ACCOUNTS.IDS.NOT.FOUND', code: 400 }] }

View File

@@ -79,7 +79,7 @@ export default class JournalPoster implements IJournalPoster {
} }
/** /**
* Async initialize acccounts dependency graph. * Async initialize accounts dependency graph.
* @private * @private
* @returns {Promise<void>} * @returns {Promise<void>}
*/ */

View File

@@ -129,9 +129,9 @@ export class ProjectProfitabilitySummaryRespository {
*/ */
public getIncomeAccountsGroupedEntries = async () => { public getIncomeAccountsGroupedEntries = async () => {
const incomeAccounts = await this.getIncomeAccounts(); const incomeAccounts = await this.getIncomeAccounts();
const incomeAcountssIds = map(incomeAccounts, 'id'); const incomeAccountsIds = map(incomeAccounts, 'id');
return this.getAccountsGroupedEntries(incomeAcountssIds); return this.getAccountsGroupedEntries(incomeAccountsIds);
}; };
/** /**

View File

@@ -59,7 +59,7 @@ export class CommandManualJournalValidators {
const storedAccountsIds = accounts.map((account) => account.id); const storedAccountsIds = accounts.map((account) => account.id);
if (difference(manualAccountsIds, storedAccountsIds).length > 0) { if (difference(manualAccountsIds, storedAccountsIds).length > 0) {
throw new ServiceError(ERRORS.ACCCOUNTS_IDS_NOT_FOUND); throw new ServiceError(ERRORS.ACCOUNTS_IDS_NOT_FOUND);
} }
} }

View File

@@ -2,7 +2,7 @@ export const ERRORS = {
NOT_FOUND: 'manual_journal_not_found', NOT_FOUND: 'manual_journal_not_found',
CREDIT_DEBIT_NOT_EQUAL_ZERO: 'credit_debit_not_equal_zero', CREDIT_DEBIT_NOT_EQUAL_ZERO: 'credit_debit_not_equal_zero',
CREDIT_DEBIT_NOT_EQUAL: 'credit_debit_not_equal', CREDIT_DEBIT_NOT_EQUAL: 'credit_debit_not_equal',
ACCCOUNTS_IDS_NOT_FOUND: 'acccounts_ids_not_found', ACCOUNTS_IDS_NOT_FOUND: 'accounts_ids_not_found',
JOURNAL_NUMBER_EXISTS: 'journal_number_exists', JOURNAL_NUMBER_EXISTS: 'journal_number_exists',
ENTRIES_SHOULD_ASSIGN_WITH_CONTACT: 'ENTRIES_SHOULD_ASSIGN_WITH_CONTACT', ENTRIES_SHOULD_ASSIGN_WITH_CONTACT: 'ENTRIES_SHOULD_ASSIGN_WITH_CONTACT',
CONTACTS_NOT_FOUND: 'contacts_not_found', CONTACTS_NOT_FOUND: 'contacts_not_found',