mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 13:20:31 +00:00
Merge pull request #227 from bigcapitalhq/fix-spelling-a-char
Fix spelling words start with `A` letter
This commit is contained in:
@@ -97,7 +97,7 @@ All notable changes to Bigcapital server-side will be in this file.
|
||||
- fix: delete invoice transaction issue.
|
||||
|
||||
`@bigcapital/webapp`
|
||||
- fix: general, accoutant and items preferences.
|
||||
- fix: general, accountant and items preferences.
|
||||
- fix: auto-increment sale invoices, estiamtes, credit notes, payments and manual journals.
|
||||
- refactor: the setup organization form to use binded Formik components.
|
||||
|
||||
|
||||
@@ -152,7 +152,7 @@
|
||||
"Opening Balance Liabilities": "رصيد الالتزامات الافتتاحي",
|
||||
"Loan": "اقراض",
|
||||
"Owner A Drawings": "مسحوبات المالك",
|
||||
"An account that holds valuation of products or goods that availiable for sale.": "حساب يحمل قيم مخزون البضاعة أو السلع المتاحة للبيع.",
|
||||
"An account that holds valuation of products or goods that available for sale.": "حساب يحمل قيم مخزون البضاعة أو السلع المتاحة للبيع.",
|
||||
"Tracks the gain and losses of the exchange differences.": "يسجل مكاسب وخسائر فروق الصرف.",
|
||||
"Any bank fees levied is recorded into the bank fees and charges account. A bank account maintenance fee, transaction charges, a late payment fee are some examples.": "يتم تسجيل أي رسوم مصرفية يتم فرضها في حساب الرسوم والمصروفات البنكية. ومن الأمثلة على ذلك رسوم صيانة الحساب المصرفي ورسوم المعاملات ورسوم الدفع المتأخر.",
|
||||
"The income activities are not associated to the core business.": "لا ترتبط انشطة الدخل إلى الأعمال الأساسية.",
|
||||
|
||||
@@ -151,7 +151,7 @@
|
||||
"Opening Balance Liabilities": "Opening Balance Liabilities",
|
||||
"Loan": "Loan",
|
||||
"Owner A Drawings": "Owner A Drawings",
|
||||
"An account that holds valuation of products or goods that availiable for sale.": "An account that holds valuation of products or goods that availiable for sale.",
|
||||
"An account that holds valuation of products or goods that available for sale.": "An account that holds valuation of products or goods that available for sale.",
|
||||
"Tracks the gain and losses of the exchange differences.": "Tracks the gain and losses of the exchange differences.",
|
||||
"Any bank fees levied is recorded into the bank fees and charges account. A bank account maintenance fee, transaction charges, a late payment fee are some examples.": "Any bank fees levied is recorded into the bank fees and charges account. A bank account maintenance fee, transaction charges, a late payment fee are some examples.",
|
||||
"The income activities are not associated to the core business.": "The income activities are not associated to the core business.",
|
||||
|
||||
@@ -387,7 +387,7 @@ export default class ManualJournalsController extends BaseController {
|
||||
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(
|
||||
'Journal entries some of accounts ids not exists.',
|
||||
{ errors: [{ type: 'ACCOUNTS.IDS.NOT.FOUND', code: 400 }] }
|
||||
|
||||
@@ -372,7 +372,7 @@ export default class PaymentReceivesController extends BaseController {
|
||||
|
||||
/**
|
||||
* Retrieve the given payment receive details.
|
||||
* @asycn
|
||||
* @async
|
||||
* @param {Request} req -
|
||||
* @param {Response} res -
|
||||
*/
|
||||
|
||||
@@ -81,7 +81,7 @@ export default [
|
||||
parent_account_id: null,
|
||||
index: 1,
|
||||
active: 1,
|
||||
description:'An account that holds valuation of products or goods that availiable for sale.',
|
||||
description:'An account that holds valuation of products or goods that available for sale.',
|
||||
},
|
||||
|
||||
// Libilities
|
||||
|
||||
@@ -41,7 +41,7 @@ export interface ICashFlowStatementAccountMeta {
|
||||
code: string;
|
||||
total: ICashFlowStatementTotal;
|
||||
accountType: string;
|
||||
adjusmentType: string;
|
||||
adjustmentType: string;
|
||||
sectionType: ICashFlowStatementSectionType.ACCOUNT;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { forEach, uniqBy } from 'lodash';
|
||||
import DynamicFilterAbstructor from './DynamicFilterAbstructor';
|
||||
import DynamicFilterAbstractor from './DynamicFilterAbstractor';
|
||||
import { IDynamicFilter, IFilterRole, IModel } from '@/interfaces';
|
||||
|
||||
export default class DynamicFilter extends DynamicFilterAbstructor{
|
||||
export default class DynamicFilter extends DynamicFilterAbstractor{
|
||||
private model: IModel;
|
||||
private tableName: string;
|
||||
private dynamicFilters: IDynamicFilter[];
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
export default class DynamicFilterAbstructor {
|
||||
export default class DynamicFilterAbstractor {
|
||||
/**
|
||||
* Extract relation table name from relation.
|
||||
* @param {String} column -
|
||||
@@ -1,7 +1,7 @@
|
||||
import DynamicFilterRoleAbstructor from './DynamicFilterRoleAbstructor';
|
||||
import DynamicFilterRoleAbstractor from './DynamicFilterRoleAbstractor';
|
||||
import { IFilterRole } from '@/interfaces';
|
||||
|
||||
export default class FilterRoles extends DynamicFilterRoleAbstructor {
|
||||
export default class FilterRoles extends DynamicFilterRoleAbstractor {
|
||||
private filterRoles: IFilterRole[];
|
||||
|
||||
/**
|
||||
|
||||
@@ -6,7 +6,7 @@ import DynamicFilterQueryParser from './DynamicFilterQueryParser';
|
||||
import { Lexer } from '../LogicEvaluation/Lexer';
|
||||
import { COMPARATOR_TYPE, FIELD_TYPE } from './constants';
|
||||
|
||||
export default abstract class DynamicFilterAbstructor
|
||||
export default abstract class DynamicFilterAbstractor
|
||||
implements IDynamicFilter
|
||||
{
|
||||
protected filterRoles: IFilterRole[] = [];
|
||||
@@ -1,4 +1,4 @@
|
||||
import DynamicFilterRoleAbstructor from '@/lib/DynamicFilter/DynamicFilterRoleAbstructor';
|
||||
import DynamicFilterRoleAbstractor from '@/lib/DynamicFilter/DynamicFilterRoleAbstractor';
|
||||
import { FIELD_TYPE } from './constants';
|
||||
|
||||
interface ISortRole {
|
||||
@@ -6,7 +6,7 @@ interface ISortRole {
|
||||
order: string;
|
||||
}
|
||||
|
||||
export default class DynamicFilterSortBy extends DynamicFilterRoleAbstructor {
|
||||
export default class DynamicFilterSortBy extends DynamicFilterRoleAbstractor {
|
||||
private sortRole: ISortRole = {};
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { omit } from 'lodash';
|
||||
import { IView, IViewRole } from '@/interfaces';
|
||||
import DynamicFilterRoleAbstructor from './DynamicFilterRoleAbstructor';
|
||||
import DynamicFilterRoleAbstractor from './DynamicFilterRoleAbstractor';
|
||||
|
||||
export default class DynamicFilterViews extends DynamicFilterRoleAbstructor {
|
||||
export default class DynamicFilterViews extends DynamicFilterRoleAbstractor {
|
||||
private viewSlug: string;
|
||||
private logicExpression: string;
|
||||
private filterRoles: IViewRole[];
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import DynamicFilterRoleAbstructor from '@/lib/DynamicFilter/DynamicFilterRoleAbstructor';
|
||||
import DynamicFilterRoleAbstractor from '@/lib/DynamicFilter/DynamicFilterRoleAbstractor';
|
||||
import {
|
||||
validateViewRoles,
|
||||
buildFilterQuery,
|
||||
} from '@/lib/ViewRolesBuilder';
|
||||
|
||||
export default class ViewRolesDynamicFilter extends DynamicFilterRoleAbstructor {
|
||||
export default class ViewRolesDynamicFilter extends DynamicFilterRoleAbstractor {
|
||||
/**
|
||||
* Constructor method.
|
||||
* @param {*} filterRoles -
|
||||
|
||||
@@ -152,7 +152,7 @@
|
||||
"Opening Balance Liabilities": "رصيد الالتزامات الافتتاحي",
|
||||
"Loan": "اقراض",
|
||||
"Owner A Drawings": "مسحوبات المالك",
|
||||
"An account that holds valuation of products or goods that availiable for sale.": "حساب يحمل قيم مخزون البضاعة أو السلع المتاحة للبيع.",
|
||||
"An account that holds valuation of products or goods that available for sale.": "حساب يحمل قيم مخزون البضاعة أو السلع المتاحة للبيع.",
|
||||
"Tracks the gain and losses of the exchange differences.": "يسجل مكاسب وخسائر فروق الصرف.",
|
||||
"Any bank fees levied is recorded into the bank fees and charges account. A bank account maintenance fee, transaction charges, a late payment fee are some examples.": "يتم تسجيل أي رسوم مصرفية يتم فرضها في حساب الرسوم والمصروفات البنكية. ومن الأمثلة على ذلك رسوم صيانة الحساب المصرفي ورسوم المعاملات ورسوم الدفع المتأخر.",
|
||||
"The income activities are not associated to the core business.": "لا ترتبط انشطة الدخل إلى الأعمال الأساسية.",
|
||||
|
||||
@@ -151,7 +151,7 @@
|
||||
"Opening Balance Liabilities": "Opening Balance Liabilities",
|
||||
"Loan": "Loan",
|
||||
"Owner A Drawings": "Owner A Drawings",
|
||||
"An account that holds valuation of products or goods that availiable for sale.": "An account that holds valuation of products or goods that availiable for sale.",
|
||||
"An account that holds valuation of products or goods that available for sale.": "An account that holds valuation of products or goods that available for sale.",
|
||||
"Tracks the gain and losses of the exchange differences.": "Tracks the gain and losses of the exchange differences.",
|
||||
"Any bank fees levied is recorded into the bank fees and charges account. A bank account maintenance fee, transaction charges, a late payment fee are some examples.": "Any bank fees levied is recorded into the bank fees and charges account. A bank account maintenance fee, transaction charges, a late payment fee are some examples.",
|
||||
"The income activities are not associated to the core business.": "The income activities are not associated to the core business.",
|
||||
|
||||
@@ -127,7 +127,7 @@ export default class Account extends mixin(TenantModel, [
|
||||
},
|
||||
filterAccountTypes(query, typesIds) {
|
||||
if (typesIds.length > 0) {
|
||||
query.whereIn('account_types.accoun_type_id', typesIds);
|
||||
query.whereIn('account_types.account_type_id', typesIds);
|
||||
}
|
||||
},
|
||||
viewRolesBuilder(query, conditionals, expression) {
|
||||
|
||||
@@ -97,7 +97,7 @@ export default class Branch extends TenantModel {
|
||||
},
|
||||
|
||||
/**
|
||||
* Branch may belongs to assocaited bills.
|
||||
* Branch may belongs to associated bills.
|
||||
*/
|
||||
bills: {
|
||||
relation: Model.HasManyRelation,
|
||||
|
||||
@@ -121,7 +121,7 @@ export default class CashflowTransaction extends TenantModel {
|
||||
},
|
||||
|
||||
/**
|
||||
* Cashflow transaction may has assocaited cashflow account.
|
||||
* Cashflow transaction may has associated cashflow account.
|
||||
*/
|
||||
cashflowAccount: {
|
||||
relation: Model.BelongsToOneRelation,
|
||||
|
||||
@@ -84,7 +84,7 @@ export default class Warehouse extends TenantModel {
|
||||
},
|
||||
|
||||
/**
|
||||
* Warehouse may belongs to assocaited bills.
|
||||
* Warehouse may belongs to associated bills.
|
||||
*/
|
||||
bills: {
|
||||
relation: Model.HasManyRelation,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Service, Inject } from 'typedi';
|
||||
import events from '@/subscribers/events';
|
||||
import { InventoryTransactionsWarehouses } from './AcountsTransactionsWarehouses';
|
||||
import { InventoryTransactionsWarehouses } from './AccountsTransactionsWarehouses';
|
||||
import { IBranchesActivatedPayload } from '@/interfaces';
|
||||
|
||||
@Service()
|
||||
|
||||
@@ -79,7 +79,7 @@ export default class JournalPoster implements IJournalPoster {
|
||||
}
|
||||
|
||||
/**
|
||||
* Async initialize acccounts dependency graph.
|
||||
* Async initialize accounts dependency graph.
|
||||
* @private
|
||||
* @returns {Promise<void>}
|
||||
*/
|
||||
|
||||
@@ -66,14 +66,14 @@ export class LedgerContactsBalanceStorage {
|
||||
): Promise<(entry: ILedgerEntry) => boolean> => {
|
||||
const { Account } = this.tenancy.models(tenantId);
|
||||
|
||||
const ARAPAcounts = await Account.query(trx).whereIn('accountType', [
|
||||
const ARAPAccounts = await Account.query(trx).whereIn('accountType', [
|
||||
ACCOUNT_TYPE.ACCOUNTS_RECEIVABLE,
|
||||
ACCOUNT_TYPE.ACCOUNTS_PAYABLE,
|
||||
]);
|
||||
const ARAPAcountsIds = ARAPAcounts.map((a) => a.id);
|
||||
const ARAPAccountsIds = ARAPAccounts.map((a) => a.id);
|
||||
|
||||
return (entry: ILedgerEntry) => {
|
||||
return ARAPAcountsIds.indexOf(entry.accountId) !== -1;
|
||||
return ARAPAccountsIds.indexOf(entry.accountId) !== -1;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ export default class LedgerStorageService {
|
||||
// Saves the ledger entries.
|
||||
this.ledgerEntriesService.saveEntries(tenantId, ledger, trx),
|
||||
|
||||
// Mutates the assocaited accounts balances.
|
||||
// Mutates the associated accounts balances.
|
||||
this.ledgerAccountsBalance.saveAccountsBalance(tenantId, ledger, trx),
|
||||
|
||||
// Mutates the associated contacts balances.
|
||||
@@ -60,7 +60,7 @@ export default class LedgerStorageService {
|
||||
// Deletes the ledger entries.
|
||||
this.ledgerEntriesService.deleteEntries(tenantId, ledger, trx),
|
||||
|
||||
// Mutates the assocaited accounts balances.
|
||||
// Mutates the associated accounts balances.
|
||||
this.ledgerAccountsBalance.saveAccountsBalance(tenantId, ledger, trx),
|
||||
|
||||
// Mutates the associated contacts balances.
|
||||
|
||||
@@ -108,7 +108,7 @@ export class LedegrAccountsStorage {
|
||||
const { Account } = this.tenancy.models(tenantId);
|
||||
const account = await Account.query(trx).findById(accountId);
|
||||
|
||||
// Filters the ledger entries by the current acount.
|
||||
// Filters the ledger entries by the current account.
|
||||
const accountLedger = ledger.whereAccountId(accountId);
|
||||
|
||||
// Retrieves the given tenant metadata.
|
||||
|
||||
@@ -77,7 +77,7 @@ export class DeleteAccount {
|
||||
// Authorize before delete account.
|
||||
await this.authorize(tenantId, accountId, oldAccount);
|
||||
|
||||
// Deletes the account and assocaited transactions under UOW envirement.
|
||||
// Deletes the account and associated transactions under UOW envirement.
|
||||
return this.uow.withTransaction(tenantId, async (trx: Knex.Transaction) => {
|
||||
// Triggers `onAccountDelete` event.
|
||||
await this.eventPublisher.emitAsync(events.accounts.onDelete, {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
export * from './CashflowBranchesActviateSubscriber';
|
||||
export * from './CashflowBranchesActivateSubscriber';
|
||||
export * from './CreditNoteBranchesActivateSubscriber';
|
||||
export * from './PaymentMadeBranchesActivateSubscriber';
|
||||
export * from './PaymentReceiveBranchesActivateSubscriber';
|
||||
|
||||
@@ -6,7 +6,7 @@ import {
|
||||
} from './constants';
|
||||
|
||||
/**
|
||||
* Ensures the given transaction type to transformed to properiate format.
|
||||
* Ensures the given transaction type to transformed to appropriate format.
|
||||
* @param {string} type
|
||||
* @returns {string}
|
||||
*/
|
||||
|
||||
@@ -49,7 +49,7 @@ export default class CreditNoteInventoryTransactions {
|
||||
};
|
||||
|
||||
/**
|
||||
* Edits vendor credit assocaited inventory transactions.
|
||||
* Edits vendor credit associated inventory transactions.
|
||||
* @param {number} tenantId
|
||||
* @param {number} creditNoteId
|
||||
* @param {ICreditNote} creditNote
|
||||
|
||||
@@ -29,7 +29,7 @@ export default class DeleteCustomerLinkedCreditSubscriber {
|
||||
};
|
||||
|
||||
/**
|
||||
* Validate vendor has no assocaited credit transaction once the vendor deleting.
|
||||
* Validate vendor has no associated credit transaction once the vendor deleting.
|
||||
* @param {IVendorEventDeletingPayload} payload -
|
||||
*/
|
||||
public validateCustomerHasNoLinkedCreditsOnDeleting = async ({
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
|
||||
|
||||
|
||||
export default class DynamicListAbstract {
|
||||
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
|
||||
|
||||
|
||||
export default class DynamicListAbstruct {
|
||||
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Inject, Service } from 'typedi';
|
||||
import DynamicListAbstruct from './DynamicListAbstruct';
|
||||
import DynamicListAbstract from './DynamicListAbstract';
|
||||
import DynamicFilterViews from '@/lib/DynamicFilter/DynamicFilterViews';
|
||||
import { ServiceError } from '@/exceptions';
|
||||
import HasTenancyService from '@/services/Tenancy/TenancyService';
|
||||
@@ -7,7 +7,7 @@ import { ERRORS } from './constants';
|
||||
import { IModel } from '@/interfaces';
|
||||
|
||||
@Service()
|
||||
export default class DynamicListCustomView extends DynamicListAbstruct {
|
||||
export default class DynamicListCustomView extends DynamicListAbstract {
|
||||
@Inject()
|
||||
tenancy: HasTenancyService;
|
||||
|
||||
|
||||
@@ -2,13 +2,13 @@ import { Service } from 'typedi';
|
||||
import * as R from 'ramda';
|
||||
import validator from 'is-my-json-valid';
|
||||
import { IFilterRole, IModel } from '@/interfaces';
|
||||
import DynamicListAbstruct from './DynamicListAbstruct';
|
||||
import DynamicListAbstract from './DynamicListAbstract';
|
||||
import DynamicFilterAdvancedFilter from '@/lib/DynamicFilter/DynamicFilterAdvancedFilter';
|
||||
import { ERRORS } from './constants';
|
||||
import { ServiceError } from '@/exceptions';
|
||||
|
||||
@Service()
|
||||
export default class DynamicListFilterRoles extends DynamicListAbstruct {
|
||||
export default class DynamicListFilterRoles extends DynamicListAbstract {
|
||||
/**
|
||||
* Validates filter roles schema.
|
||||
* @param {IFilterRole[]} filterRoles - Filter roles.
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { Service } from 'typedi';
|
||||
import { IFilterRole, IModel } from '@/interfaces';
|
||||
import DynamicListAbstruct from './DynamicListAbstruct';
|
||||
import DynamicListAbstract from './DynamicListAbstract';
|
||||
import DynamicFilterFilterRoles from '@/lib/DynamicFilter/DynamicFilterFilterRoles';
|
||||
import DynamicFilterSearch from '@/lib/DynamicFilter/DynamicFilterSearch';
|
||||
|
||||
@Service()
|
||||
export default class DynamicListSearch extends DynamicListAbstruct {
|
||||
export default class DynamicListSearch extends DynamicListAbstract {
|
||||
/**
|
||||
* Dynamic list filter roles.
|
||||
* @param {IModel} model
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import { Service } from 'typedi';
|
||||
import DynamicListAbstruct from './DynamicListAbstruct';
|
||||
import DynamicListAbstract from './DynamicListAbstract';
|
||||
import DynamicFilterSortBy from '@/lib/DynamicFilter/DynamicFilterSortBy';
|
||||
import { IModel, ISortOrder } from '@/interfaces';
|
||||
import { ServiceError } from '@/exceptions';
|
||||
import { ERRORS } from './constants';
|
||||
|
||||
@Service()
|
||||
export default class DynamicListSortBy extends DynamicListAbstruct {
|
||||
export default class DynamicListSortBy extends DynamicListAbstract {
|
||||
/**
|
||||
* Dynamic list sort by.
|
||||
* @param {IModel} model
|
||||
|
||||
@@ -34,7 +34,7 @@ export class FeaturesManager {
|
||||
}
|
||||
|
||||
/**
|
||||
* Detarmines the given feature name is accessiable.
|
||||
* Detarmines the given feature name is accessible.
|
||||
* @param {number} tenantId
|
||||
* @param {string} feature
|
||||
* @returns {Promise<void>}
|
||||
|
||||
@@ -33,7 +33,7 @@ export class FeaturesSettingsDriver {
|
||||
}
|
||||
|
||||
/**
|
||||
* Detarmines the given feature name is accessiable.
|
||||
* Detarmines the given feature name is accessible.
|
||||
* @param {number} tenantId
|
||||
* @param {string} feature
|
||||
* @returns {Promise<boolean|null|undefined>}
|
||||
|
||||
@@ -197,7 +197,7 @@ export default class CashFlowStatement extends compose(
|
||||
code: account.code,
|
||||
label: account.name,
|
||||
accountType: account.accountType,
|
||||
adjusmentType: relation.direction,
|
||||
adjustmentType: relation.direction,
|
||||
total: this.getAmountMeta(closingBalance),
|
||||
sectionType: ICashFlowStatementSectionType.ACCOUNT,
|
||||
};
|
||||
@@ -362,14 +362,14 @@ export default class CashFlowStatement extends compose(
|
||||
/**
|
||||
* Retrieve the total section from the eqauation parser.
|
||||
* @param {ICashFlowSchemaTotalSection} sectionSchema
|
||||
* @param {ICashFlowSchemaSection[]} accumlatedSections
|
||||
* @param {ICashFlowSchemaSection[]} accumulatedSections
|
||||
* @returns {ICashFlowStatementTotalSection}
|
||||
*/
|
||||
private totalEquationSectionParser = (
|
||||
accumlatedSections: ICashFlowSchemaSection[],
|
||||
accumulatedSections: ICashFlowSchemaSection[],
|
||||
sectionSchema: ICashFlowSchemaTotalSection
|
||||
): ICashFlowStatementTotalSection => {
|
||||
const mappedSectionsById = this.transformSectionsToMap(accumlatedSections);
|
||||
const mappedSectionsById = this.transformSectionsToMap(accumulatedSections);
|
||||
const nodesTotalById = this.sectionsMapToTotal(mappedSectionsById);
|
||||
|
||||
const total = this.evaluateEquation(sectionSchema.equation, nodesTotalById);
|
||||
@@ -421,7 +421,7 @@ export default class CashFlowStatement extends compose(
|
||||
code: account.code,
|
||||
label: account.name,
|
||||
accountType: account.accountType,
|
||||
adjusmentType: relation.direction,
|
||||
adjustmentType: relation.direction,
|
||||
total: this.getAmountMeta(closingBalance),
|
||||
sectionType: ICashFlowStatementSectionType.ACCOUNT,
|
||||
};
|
||||
@@ -524,7 +524,7 @@ export default class CashFlowStatement extends compose(
|
||||
* @param {ICashFlowSchemaSection | ICashFlowStatementSection} section
|
||||
* @param {number} key
|
||||
* @param {ICashFlowSchemaSection[]} parentValue
|
||||
* @param {(ICashFlowSchemaSection | ICashFlowStatementSection)[]} accumlatedSections
|
||||
* @param {(ICashFlowSchemaSection | ICashFlowStatementSection)[]} accumulatedSections
|
||||
* @returns {ICashFlowSchemaSection}
|
||||
*/
|
||||
private schemaSectionTotalParser = (
|
||||
@@ -532,13 +532,13 @@ export default class CashFlowStatement extends compose(
|
||||
key: number,
|
||||
parentValue: ICashFlowSchemaSection[],
|
||||
context,
|
||||
accumlatedSections: (ICashFlowSchemaSection | ICashFlowStatementSection)[]
|
||||
accumulatedSections: (ICashFlowSchemaSection | ICashFlowStatementSection)[]
|
||||
): ICashFlowSchemaSection | ICashFlowStatementSection => {
|
||||
return R.compose(
|
||||
// Total equation section.
|
||||
R.when(
|
||||
this.isSchemaSectionType(ICashFlowStatementSectionType.TOTAL),
|
||||
R.curry(this.totalEquationSectionParser)(accumlatedSections)
|
||||
R.curry(this.totalEquationSectionParser)(accumulatedSections)
|
||||
)
|
||||
)(section);
|
||||
};
|
||||
|
||||
@@ -165,7 +165,7 @@ export const CashFlowStatementDatePeriods = (Base) =>
|
||||
.whereAccountId(node.id)
|
||||
.getClosingBalance();
|
||||
|
||||
return this.amountAdjustment(node.adjusmentType, closingBalance);
|
||||
return this.amountAdjustment(node.adjustmentType, closingBalance);
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -322,7 +322,7 @@ export const CashFlowStatementDatePeriods = (Base) =>
|
||||
// Cash at beginning ----------------------
|
||||
|
||||
/**
|
||||
* Retrieve the date preioods of the given node and accumlated function.
|
||||
* Retrieve the date preioods of the given node and accumulated function.
|
||||
* @param {} node
|
||||
* @param {}
|
||||
* @return {}
|
||||
|
||||
@@ -41,7 +41,7 @@ export default class CashflowAccountTransactionsService extends FinancialSheet {
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve the cashflow accouynt transactions report data.
|
||||
* Retrieve the cashflow account transactions report data.
|
||||
* @param {number} tenantId -
|
||||
* @param {ICashflowAccountTransactionsQuery} query -
|
||||
* @return {Promise<IInvetoryItemDetailDOO>}
|
||||
|
||||
@@ -64,7 +64,7 @@ export const FinancialDatePeriods = (Base) =>
|
||||
};
|
||||
|
||||
/**
|
||||
* Retrieve the date preioods of the given node and accumlated function.
|
||||
* Retrieve the date preioods of the given node and accumulated function.
|
||||
* @param {IBalanceSheetAccountNode} node
|
||||
* @param {(fromDate: Date, toDate: Date, index: number) => any}
|
||||
* @return {}
|
||||
|
||||
@@ -126,7 +126,7 @@ export default class InventoryDetails extends FinancialSheet {
|
||||
);
|
||||
|
||||
/**
|
||||
* Accumlate and mapping running quantity on transactions.
|
||||
* Accumulate and mapping running quantity on transactions.
|
||||
* @param {IInventoryDetailsItemTransaction[]} transactions
|
||||
* @returns {IInventoryDetailsItemTransaction[]}
|
||||
*/
|
||||
@@ -150,7 +150,7 @@ export default class InventoryDetails extends FinancialSheet {
|
||||
}
|
||||
|
||||
/**
|
||||
* Accumlate and mapping running valuation on transactions.
|
||||
* Accumulate and mapping running valuation on transactions.
|
||||
* @param {IInventoryDetailsItemTransaction[]} transactions
|
||||
* @returns {IInventoryDetailsItemTransaction}
|
||||
*/
|
||||
@@ -160,8 +160,8 @@ export default class InventoryDetails extends FinancialSheet {
|
||||
const initial = this.getNumberMeta(0);
|
||||
|
||||
const mapAccumAppender = (a, b) => {
|
||||
const adjusmtent = b.direction === 'OUT' ? -1 : 1;
|
||||
const total = a.runningValuation.number + b.cost.number * adjusmtent;
|
||||
const adjustment = b.direction === 'OUT' ? -1 : 1;
|
||||
const total = a.runningValuation.number + b.cost.number * adjustment;
|
||||
const totalMeta = this.getNumberMeta(total, { excerptZero: false });
|
||||
const accum = { ...b, runningValuation: totalMeta };
|
||||
|
||||
|
||||
@@ -129,9 +129,9 @@ export class ProjectProfitabilitySummaryRespository {
|
||||
*/
|
||||
public getIncomeAccountsGroupedEntries = async () => {
|
||||
const incomeAccounts = await this.getIncomeAccounts();
|
||||
const incomeAcountssIds = map(incomeAccounts, 'id');
|
||||
const incomeAccountsIds = map(incomeAccounts, 'id');
|
||||
|
||||
return this.getAccountsGroupedEntries(incomeAcountssIds);
|
||||
return this.getAccountsGroupedEntries(incomeAccountsIds);
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@@ -95,7 +95,7 @@ export default class InventoryService {
|
||||
) {
|
||||
const { Item } = this.tenancy.models(tenantId);
|
||||
|
||||
// Fetches the item with assocaited item category.
|
||||
// Fetches the item with associated item category.
|
||||
const item = await Item.query().findById(itemId);
|
||||
|
||||
// Cannot continue if the given item was not inventory item.
|
||||
|
||||
@@ -180,7 +180,7 @@ export default class InventoryAdjustmentService {
|
||||
quickAdjustmentDTO,
|
||||
} as IInventoryAdjustmentCreatingPayload
|
||||
);
|
||||
// Saves the inventory adjustment with assocaited entries to the storage.
|
||||
// Saves the inventory adjustment with associated entries to the storage.
|
||||
const inventoryAdjustment = await InventoryAdjustment.query(
|
||||
trx
|
||||
).upsertGraph({
|
||||
|
||||
@@ -49,7 +49,7 @@ export default class InventoryAverageCostMethod
|
||||
public async computeItemCost() {
|
||||
const { InventoryTransaction } = this.tenantModels;
|
||||
const { averageCost, openingQuantity, openingCost } =
|
||||
await this.getOpeningAvaregeCost(this.startingDate, this.itemId);
|
||||
await this.getOpeningAverageCost(this.startingDate, this.itemId);
|
||||
|
||||
const afterInvTransactions: IInventoryTransaction[] =
|
||||
await InventoryTransaction.query()
|
||||
@@ -75,12 +75,12 @@ export default class InventoryAverageCostMethod
|
||||
}
|
||||
|
||||
/**
|
||||
* Get items Avarege cost from specific date from inventory transactions.
|
||||
* Get items Average cost from specific date from inventory transactions.
|
||||
* @async
|
||||
* @param {Date} closingDate
|
||||
* @return {number}
|
||||
*/
|
||||
public async getOpeningAvaregeCost(closingDate: Date, itemId: number) {
|
||||
public async getOpeningAverageCost(closingDate: Date, itemId: number) {
|
||||
const { InventoryCostLotTracker } = this.tenantModels;
|
||||
|
||||
const commonBuilder = (builder: any) => {
|
||||
|
||||
@@ -79,7 +79,7 @@ export default class InventoryCostLotTracker extends InventoryCostMethod impleme
|
||||
|
||||
/**
|
||||
* Fetched inventory transactions that has date from the starting date and
|
||||
* fetches availiable IN LOTs transactions that has remaining bigger than zero.
|
||||
* fetches available IN LOTs transactions that has remaining bigger than zero.
|
||||
* @private
|
||||
*/
|
||||
private async fetchInvINTransactions() {
|
||||
@@ -97,7 +97,7 @@ export default class InventoryCostLotTracker extends InventoryCostMethod impleme
|
||||
.orderBy('lot_number', (this.costMethod === 'LIFO') ? 'DESC' : 'ASC')
|
||||
.withGraphFetched('item');
|
||||
|
||||
const availiableINLots: IInventoryLotCost[] =
|
||||
const availableINLots: IInventoryLotCost[] =
|
||||
await InventoryLotCostTracker.query()
|
||||
.modify('filterDateRange', null, this.startingDate)
|
||||
.orderBy('date', 'ASC')
|
||||
@@ -107,7 +107,7 @@ export default class InventoryCostLotTracker extends InventoryCostMethod impleme
|
||||
.whereNot('remaining', 0);
|
||||
|
||||
this.inTransactions = [
|
||||
...availiableINLots.map((trans) => ({ lotTransId: trans.id, ...trans })),
|
||||
...availableINLots.map((trans) => ({ lotTransId: trans.id, ...trans })),
|
||||
...afterInvTransactions.map((trans) => ({ invTransId: trans.id, ...trans })),
|
||||
];
|
||||
}
|
||||
|
||||
@@ -344,7 +344,7 @@ export default class ItemCategoriesService implements IItemCategoriesService {
|
||||
);
|
||||
// Items categories.
|
||||
const itemCategories = await ItemCategory.query().onBuild((query) => {
|
||||
// Subquery to calculate sumation of assocaited items to the item category.
|
||||
// Subquery to calculate sumation of associated items to the item category.
|
||||
query.select('*', ItemCategory.relatedQuery('items').count().as('count'));
|
||||
|
||||
dynamicList.buildQuery()(query);
|
||||
|
||||
@@ -198,7 +198,7 @@ export class ItemsValidators {
|
||||
|
||||
/**
|
||||
* Validate the item inventory account whether modified and item
|
||||
* has assocaited inventory transactions.
|
||||
* has associated inventory transactions.
|
||||
* @param {numnber} tenantId
|
||||
* @param {IItem} oldItem
|
||||
* @param {IItemDTO} newItemDTO
|
||||
|
||||
@@ -59,7 +59,7 @@ export class CommandManualJournalValidators {
|
||||
const storedAccountsIds = accounts.map((account) => account.id);
|
||||
|
||||
if (difference(manualAccountsIds, storedAccountsIds).length > 0) {
|
||||
throw new ServiceError(ERRORS.ACCCOUNTS_IDS_NOT_FOUND);
|
||||
throw new ServiceError(ERRORS.ACCOUNTS_IDS_NOT_FOUND);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ export class GetManualJournal {
|
||||
private transformer: TransformerInjectable;
|
||||
|
||||
/**
|
||||
* Retrieve manual journal details with assocaited journal transactions.
|
||||
* Retrieve manual journal details with associated journal transactions.
|
||||
* @param {number} tenantId
|
||||
* @param {number} manualJournalId
|
||||
*/
|
||||
|
||||
@@ -2,7 +2,7 @@ export const ERRORS = {
|
||||
NOT_FOUND: 'manual_journal_not_found',
|
||||
CREDIT_DEBIT_NOT_EQUAL_ZERO: 'credit_debit_not_equal_zero',
|
||||
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',
|
||||
ENTRIES_SHOULD_ASSIGN_WITH_CONTACT: 'ENTRIES_SHOULD_ASSIGN_WITH_CONTACT',
|
||||
CONTACTS_NOT_FOUND: 'contacts_not_found',
|
||||
|
||||
@@ -23,7 +23,7 @@ export class SyncActualTimeTaskSubscriber {
|
||||
);
|
||||
bus.subscribe(
|
||||
events.projectTime.onDeleted,
|
||||
this.handleDecreaseActaulTimeOnTimeDelete
|
||||
this.handleDecreaseActualTimeOnTimeDelete
|
||||
);
|
||||
bus.subscribe(
|
||||
events.projectTime.onEdited,
|
||||
@@ -52,7 +52,7 @@ export class SyncActualTimeTaskSubscriber {
|
||||
* Handle decreasing the actual time of the tsak once time entry be deleted.
|
||||
* @param {IProjectTimeDeletedEventPayload} payload
|
||||
*/
|
||||
private handleDecreaseActaulTimeOnTimeDelete = async ({
|
||||
private handleDecreaseActualTimeOnTimeDelete = async ({
|
||||
tenantId,
|
||||
oldTime,
|
||||
trx,
|
||||
|
||||
@@ -36,7 +36,7 @@ export class PaymentWriteGLEntriesSubscriber {
|
||||
trx,
|
||||
}: IBillPaymentEventCreatedPayload) => {
|
||||
// Records the journal transactions after bills payment
|
||||
// and change diff acoount balance.
|
||||
// and change diff account balance.
|
||||
await this.billPaymentGLEntries.writePaymentGLEntries(
|
||||
tenantId,
|
||||
billPayment.id,
|
||||
|
||||
@@ -68,7 +68,7 @@ export default class BillPaymentsPages {
|
||||
): Promise<IBillReceivePageEntry[]> {
|
||||
const { Bill } = this.tenancy.models(tenantId);
|
||||
|
||||
// Retrieve all payable bills that assocaited to the payment made transaction.
|
||||
// Retrieve all payable bills that associated to the payment made transaction.
|
||||
const payableBills = await Bill.query()
|
||||
.modify('opened')
|
||||
.modify('dueBills')
|
||||
|
||||
@@ -14,7 +14,7 @@ export class BillGLEntriesSubscriber {
|
||||
private billGLEntries: BillGLEntries;
|
||||
|
||||
/**
|
||||
* Attachs events with handles.
|
||||
* Attaches events with handles.
|
||||
*/
|
||||
public attach(bus) {
|
||||
bus.subscribe(
|
||||
|
||||
@@ -9,7 +9,7 @@ export class BillPaymentsGLEntriesRewriteSubscriber {
|
||||
private billPaymentGLEntriesRewrite: BillPaymentsGLEntriesRewrite;
|
||||
|
||||
/**
|
||||
* Attachs events with handles.
|
||||
* Attaches events with handles.
|
||||
*/
|
||||
public attach(bus) {
|
||||
bus.subscribe(
|
||||
|
||||
@@ -43,7 +43,7 @@ export class DeleteBill {
|
||||
// Validate the givne bill has no associated landed cost transactions.
|
||||
await this.validators.validateBillHasNoLandedCost(tenantId, billId);
|
||||
|
||||
// Validate the purchase bill has no assocaited payments transactions.
|
||||
// Validate the purchase bill has no associated payments transactions.
|
||||
await this.validators.validateBillHasNoEntries(tenantId, billId);
|
||||
|
||||
// Validate the given bill has no associated reconciled with vendor credits.
|
||||
|
||||
@@ -39,7 +39,7 @@ export default class RevertAllocatedLandedCost extends BaseLandedCost {
|
||||
);
|
||||
// Deletes landed cost with associated transactions.
|
||||
return this.uow.withTransaction(tenantId, async (trx: Knex.Transaction) => {
|
||||
// Delete landed cost transaction with assocaited locate entries.
|
||||
// Delete landed cost transaction with associated locate entries.
|
||||
await this.deleteLandedCost(tenantId, landedCostId, trx);
|
||||
|
||||
// Triggers the event `onBillLandedCostCreated`.
|
||||
@@ -55,7 +55,7 @@ export default class RevertAllocatedLandedCost extends BaseLandedCost {
|
||||
};
|
||||
|
||||
/**
|
||||
* Deletes the landed cost transaction with assocaited allocate entries.
|
||||
* Deletes the landed cost transaction with associated allocate entries.
|
||||
* @param {number} tenantId - Tenant id.
|
||||
* @param {number} landedCostId - Landed cost id.
|
||||
*/
|
||||
|
||||
@@ -25,7 +25,7 @@ export default class DeleteVendorAssociatedVendorCredit {
|
||||
};
|
||||
|
||||
/**
|
||||
* Validate vendor has no assocaited credit transaction once the vendor deleting.
|
||||
* Validate vendor has no associated credit transaction once the vendor deleting.
|
||||
* @param {IVendorEventDeletingPayload} payload -
|
||||
*/
|
||||
public validateVendorHasNoCreditsTransactionsOnceDeleting = async ({
|
||||
|
||||
@@ -71,7 +71,7 @@ export default class VendorCreditGlEntriesSubscriber {
|
||||
};
|
||||
|
||||
/**
|
||||
* Edits assocaited GL entries once vendor credit edited.
|
||||
* Edits associated GL entries once vendor credit edited.
|
||||
* @param {IVendorCreditEditedPayload} payload
|
||||
*/
|
||||
private editGLEntriesOnceVendorCreditEdited = async ({
|
||||
|
||||
@@ -51,7 +51,7 @@ export default class VendorCreditInventoryTransactions {
|
||||
};
|
||||
|
||||
/**
|
||||
* Edits vendor credit assocaited inventory transactions.
|
||||
* Edits vendor credit associated inventory transactions.
|
||||
* @param {number} tenantId
|
||||
* @param {number} creditNoteId
|
||||
* @param {ICreditNote} creditNote
|
||||
|
||||
@@ -44,7 +44,7 @@ export class DeleteSaleEstimate {
|
||||
if (oldSaleEstimate.convertedToInvoiceId) {
|
||||
throw new ServiceError(ERRORS.SALE_ESTIMATE_CONVERTED_TO_INVOICE);
|
||||
}
|
||||
// Deletes the estimate with associated transactions under UOW enivrement.
|
||||
// Updates the estimate with associated transactions under UOW enivrement.
|
||||
return this.uow.withTransaction(tenantId, async (trx: Knex.Transaction) => {
|
||||
// Triggers `onSaleEstimatedDeleting` event.
|
||||
await this.eventPublisher.emitAsync(events.saleEstimate.onDeleting, {
|
||||
|
||||
@@ -12,7 +12,7 @@ export class GetInvoicePaymentsService {
|
||||
private transformer: TransformerInjectable;
|
||||
|
||||
/**
|
||||
* Retrieve the invoice assocaited payments transactions.
|
||||
* Retrieve the invoice associated payments transactions.
|
||||
* @param {number} tenantId - Tenant id.
|
||||
* @param {number} invoiceId - Invoice id.
|
||||
*/
|
||||
|
||||
@@ -32,7 +32,7 @@ export class TransferredWarehouseTransfer extends CommandWarehouseTransfer {
|
||||
warehouseTransfer: IWarehouseTransfer
|
||||
) => {
|
||||
if (warehouseTransfer.transferDeliveredAt) {
|
||||
throw new ServiceError(ERRORS.WAREHOUSE_TRANSFER_ALREAD_TRANSFERRED);
|
||||
throw new ServiceError(ERRORS.WAREHOUSE_TRANSFER_ALREADY_TRANSFERRED);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ export const ERRORS = {
|
||||
WAREHOUSE_TRANSFER_ITEMS_SHOULD_BE_INVENTORY:
|
||||
'WAREHOUSE_TRANSFER_ITEMS_SHOULD_BE_INVENTORY',
|
||||
|
||||
WAREHOUSE_TRANSFER_ALREAD_TRANSFERRED:
|
||||
WAREHOUSE_TRANSFER_ALREADY_TRANSFERRED:
|
||||
'WAREHOUSE_TRANSFER_ALREADY_TRANSFERRED',
|
||||
|
||||
WAREHOUSE_TRANSFER_ALREADY_INITIATED: 'WAREHOUSE_TRANSFER_ALREADY_INITIATED',
|
||||
|
||||
@@ -17,7 +17,7 @@ export default class BillWriteGLEntriesSubscriber {
|
||||
billsService: BillsService;
|
||||
|
||||
/**
|
||||
* Attachs events with handles.
|
||||
* Attaches events with handles.
|
||||
*/
|
||||
public attach(bus) {
|
||||
bus.subscribe(
|
||||
|
||||
@@ -16,7 +16,7 @@ export default class OrgSyncTenantAdminUserSubscriber {
|
||||
}
|
||||
|
||||
/**
|
||||
* Assign the autorized system user as admin role.
|
||||
* Assign the authorized system user as admin role.
|
||||
*/
|
||||
public assignSystemUserAsAdminRole = async ({
|
||||
tenantId,
|
||||
|
||||
@@ -95,7 +95,7 @@ describe('routes: /auth/', () => {
|
||||
expect(res.status).equals(200);
|
||||
});
|
||||
|
||||
it('Should autheticate success with correct phone number and password.', async () => {
|
||||
it('Should authenticate success with correct phone number and password.', async () => {
|
||||
const password = await hashPassword('admin');
|
||||
const user = await createUser(tenantWebsite, {
|
||||
phone_number: '0920000000',
|
||||
|
||||
@@ -471,7 +471,7 @@ describe('route: `/sales/invoices`', () => {
|
||||
});
|
||||
});
|
||||
|
||||
it('Should delete the given sale invoice with assocaited entries.', async () => {
|
||||
it('Should delete the given sale invoice with associated entries.', async () => {
|
||||
const saleInvoice = await tenantFactory.create('sale_invoice');
|
||||
const saleInvoiceEntey = await tenantFactory.create('sale_invoice_entry', {
|
||||
sale_invoice_id: saleInvoice.id,
|
||||
|
||||
@@ -86,7 +86,7 @@ export function useApplicationBoot() {
|
||||
const [startLoading, stopLoading] = useSplashLoading();
|
||||
|
||||
// Splash loading when organization request loading and
|
||||
// applicaiton still not booted.
|
||||
// application still not booted.
|
||||
useWatchImmediate((value) => {
|
||||
value && !isBooted.current && startLoading();
|
||||
}, isOrgLoading);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// @ts-nocheck
|
||||
import MODIFIER from './modifiers';
|
||||
import ContextMenu from './ContextMenu';
|
||||
import AvaterCell from './AvaterCell';
|
||||
import AvatarCell from './AvatarCell';
|
||||
|
||||
export * from './Money/Money';
|
||||
export * from './Dialog';
|
||||
@@ -65,4 +65,4 @@ export * from './Postbox';
|
||||
export * from './AppToaster';
|
||||
export * from './Layout';
|
||||
|
||||
export { MODIFIER, ContextMenu, AvaterCell };
|
||||
export { MODIFIER, ContextMenu, AvatarCell };
|
||||
|
||||
@@ -4,7 +4,7 @@ import { CustomerFormProvider } from './CustomerFormProvider';
|
||||
import CustomerFormFormik from './CustomerFormFormik';
|
||||
|
||||
/**
|
||||
* Abstructed customer form.
|
||||
* Abstracted customer form.
|
||||
*/
|
||||
export default function CustomerForm({ customerId }) {
|
||||
return (
|
||||
|
||||
@@ -11,7 +11,7 @@ import {
|
||||
Classes,
|
||||
} from '@blueprintjs/core';
|
||||
|
||||
import { Can, Icon, Money, If, AvaterCell } from '@/components';
|
||||
import { Can, Icon, Money, If, AvatarCell } from '@/components';
|
||||
import { CustomerAction, AbilitySubject } from '@/constants/abilityOption';
|
||||
import { safeCallback } from '@/utils';
|
||||
|
||||
@@ -121,7 +121,7 @@ export function useCustomersTableColumns() {
|
||||
{
|
||||
id: 'avatar',
|
||||
Header: '',
|
||||
Cell: AvaterCell,
|
||||
Cell: AvatarCell,
|
||||
className: 'avatar',
|
||||
width: 45,
|
||||
disableResizing: true,
|
||||
|
||||
@@ -16,7 +16,7 @@ function WarehouseActivateDialog({ dialogName, payload: {}, isOpen }) {
|
||||
return (
|
||||
<Dialog
|
||||
name={dialogName}
|
||||
title={<T id={'warehouse_actviate.dialog.label'} />}
|
||||
title={<T id={'warehouse_activate.dialog.label'} />}
|
||||
isOpen={isOpen}
|
||||
canEscapeJeyClose={true}
|
||||
autoFocus={true}
|
||||
|
||||
@@ -23,7 +23,7 @@ export function BillDetailTableFooter() {
|
||||
<BillTotalLines labelColWidth={'180px'} amountColWidth={'180px'}>
|
||||
<TotalLine
|
||||
title={<T id={'bill.details.subtotal'} />}
|
||||
value={<FormatNumber value={bill.amont} />}
|
||||
value={<FormatNumber value={bill.amount} />}
|
||||
borderStyle={TotalLineBorderStyle.SingleDark}
|
||||
/>
|
||||
<TotalLine
|
||||
|
||||
@@ -23,7 +23,7 @@ export default function InventoryAdjustmentDetail() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Invenoty adjusment details tabs.
|
||||
* Invenoty adjustment details tabs.
|
||||
* @returns {React.JSX}
|
||||
*/
|
||||
function InventoryAdjustmentDetailTabs() {
|
||||
|
||||
@@ -11,7 +11,7 @@ import JournalEntriesTable, {
|
||||
} from '../../JournalEntriesTable/JournalEntriesTable';
|
||||
|
||||
/**
|
||||
* Inentory adjustmet detail GL entries panel.
|
||||
* Inentory adjustment detail GL entries panel.
|
||||
* @returns {React.JSX}
|
||||
*/
|
||||
export default function InventoryAdjustmentDetailGLEntriesPanel() {
|
||||
|
||||
@@ -16,10 +16,10 @@ function InventoryItemDetailsHeaderDimensionsProvider({ ...props }) {
|
||||
// Features guard.
|
||||
const { featureCan } = useFeatureCan();
|
||||
|
||||
// Detarmines whether the warehouses feature is accessiable.
|
||||
// Detarmines whether the warehouses feature is accessible.
|
||||
const isWarehouseFeatureCan = featureCan(Features.Warehouses);
|
||||
|
||||
// Detarmines whether the branches feature is accessiable.
|
||||
// Detarmines whether the branches feature is accessible.
|
||||
const isBranchesFeatureCan = featureCan(Features.Branches);
|
||||
|
||||
// Fetches the warehouses list.
|
||||
|
||||
@@ -16,10 +16,10 @@ function InventoryValuationHeaderDimensionsProvider({ ...props }) {
|
||||
// Features guard.
|
||||
const { featureCan } = useFeatureCan();
|
||||
|
||||
// Detarmines whether the warehouses feature is accessiable.
|
||||
// Detarmines whether the warehouses feature is accessible.
|
||||
const isWarehouseFeatureCan = featureCan(Features.Warehouses);
|
||||
|
||||
// Detarmines whether the branches feature is accessiable.
|
||||
// Detarmines whether the branches feature is accessible.
|
||||
const isBranchFeatureCan = featureCan(Features.Branches);
|
||||
|
||||
// Fetches the warehouses list.
|
||||
|
||||
@@ -146,7 +146,7 @@ export const handlePreviousYearPercentageCheckboxChange = R.curry(
|
||||
);
|
||||
|
||||
/**
|
||||
* Handles previous period change amout checkbox change.
|
||||
* Handles previous period change amount checkbox change.
|
||||
*/
|
||||
export const handlePreviousPeriodChangeCheckboxChange = R.curry(
|
||||
(form, event) => {
|
||||
|
||||
@@ -128,10 +128,10 @@ export function ProjectSuggestField({
|
||||
}
|
||||
|
||||
const AvatarSelect = ({ text }) => {
|
||||
return <AvaterContent>{firstLettersArgs(text?.name)}</AvaterContent>;
|
||||
return <AvatarContent>{firstLettersArgs(text?.name)}</AvatarContent>;
|
||||
};
|
||||
|
||||
const AvaterContent = styled.div`
|
||||
const AvatarContent = styled.div`
|
||||
display: inline-block;
|
||||
background: #adbcc9;
|
||||
text-align: center;
|
||||
|
||||
@@ -36,7 +36,7 @@ export default function BillFloatingActions() {
|
||||
submitForm();
|
||||
};
|
||||
|
||||
// Handle submit, open and anothe new button click.
|
||||
// Handle submit, open and another new button click.
|
||||
const handleSubmitOpenAndNewBtnClick = (event) => {
|
||||
setSubmitPayload({ redirect: false, status: true, resetForm: true });
|
||||
submitForm();
|
||||
|
||||
@@ -35,7 +35,7 @@ export default function VendorCreditNoteFloatingActions() {
|
||||
submitForm();
|
||||
};
|
||||
|
||||
// Handle submit, open and anothe new button click.
|
||||
// Handle submit, open and another new button click.
|
||||
const handleSubmitOpenAndNewBtnClick = (event) => {
|
||||
setSubmitPayload({ redirect: false, open: true, resetForm: true });
|
||||
submitForm();
|
||||
|
||||
@@ -42,7 +42,7 @@ export default function PaymentMadeEntriesTable({
|
||||
},
|
||||
[onUpdateData, entries],
|
||||
);
|
||||
// Detarmines the right no results message before selecting vendor and aftering
|
||||
// Detarmines the right no results message before selecting vendor and after
|
||||
// selecting vendor id.
|
||||
const noResultsMessage = vendor_id ? (
|
||||
<T
|
||||
|
||||
@@ -35,7 +35,7 @@ export default function CreditNoteFloatingActions() {
|
||||
submitForm();
|
||||
};
|
||||
|
||||
// Handle submit, open and anothe new button click.
|
||||
// Handle submit, open and another new button click.
|
||||
const handleSubmitOpenAndNewBtnClick = (event) => {
|
||||
setSubmitPayload({ redirect: false, open: true, resetForm: true });
|
||||
submitForm();
|
||||
|
||||
@@ -3,9 +3,9 @@ import React from 'react';
|
||||
import { Dragzone, FormattedMessage as T } from '@/components';
|
||||
|
||||
/**
|
||||
* Vendor Attahment Tab.
|
||||
* Vendor Attachment Tab.
|
||||
*/
|
||||
function VendorAttahmentTab() {
|
||||
function VendorAttachmentTab() {
|
||||
return (
|
||||
<div>
|
||||
<Dragzone
|
||||
@@ -18,4 +18,4 @@ function VendorAttahmentTab() {
|
||||
);
|
||||
}
|
||||
|
||||
export default VendorAttahmentTab;
|
||||
export default VendorAttachmentTab;
|
||||
@@ -13,7 +13,7 @@ import {
|
||||
Classes,
|
||||
} from '@blueprintjs/core';
|
||||
|
||||
import { Can, Icon, Money, If, AvaterCell } from '@/components';
|
||||
import { Can, Icon, Money, If, AvatarCell } from '@/components';
|
||||
import { VendorAction, AbilitySubject } from '@/constants/abilityOption';
|
||||
import { safeCallback, firstLettersArgs } from '@/utils';
|
||||
|
||||
@@ -144,7 +144,7 @@ export function useVendorsTableColumns() {
|
||||
{
|
||||
id: 'avatar',
|
||||
Header: '',
|
||||
Cell: AvaterCell,
|
||||
Cell: AvatarCell,
|
||||
className: 'avatar',
|
||||
width: 45,
|
||||
disableResizing: true,
|
||||
|
||||
@@ -119,7 +119,7 @@ export function useDeleteAccount(props) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Actiavte the give account.
|
||||
* Activate the give account.
|
||||
*/
|
||||
export function useActivateAccount(props) {
|
||||
const client = useQueryClient();
|
||||
|
||||
@@ -423,7 +423,7 @@
|
||||
"company_name": "اسم الشركة",
|
||||
"other": "آخر",
|
||||
"address": "عنوان",
|
||||
"attachement": "التعلق",
|
||||
"attachment": "التعلق",
|
||||
"country": "دولة",
|
||||
"city_town": "المدينة / البلدة",
|
||||
"state": "ولاية",
|
||||
@@ -1906,7 +1906,7 @@
|
||||
"branch.alert.mark_primary_message": "تم تحديد الفرع على أنه أساسي.",
|
||||
"branch.error.could_not_delete_only_branch": "لا يمكنك حذف الفرع الاخير.",
|
||||
"warehouse_activate.dialog_success_message": "تم تفعيل خاصية تعدد المخازن بنجاح.",
|
||||
"warehouse_actviate.dialog.label": "تفعيل المخازن",
|
||||
"warehouse_activate.dialog.label": "تفعيل المخازن",
|
||||
"warehouse_activate.dialog_paragraph": "بمجرد تفعيل خاصية <strong>تعدد المخازن</strong>, لن تتمكن من تعطيلها. ومع ذلك ، يمكنك حذف المخزن أو وضع علامة على أنه غير نشط.",
|
||||
"warehouse_activate.dialog_paragraph.line_1": "سيتم اعتبار المنشأة الحالية بمثابة المكتب الرئيسي أو الفرع الرئيسي.",
|
||||
"warehouse_activate.dialog_paragraph.line_2": "سيتم اعتبار جميع معاملات الحسابات بمثابة المكتب الرئيسي. ",
|
||||
|
||||
@@ -420,7 +420,7 @@
|
||||
"company_name": "Company Name",
|
||||
"other": "Other",
|
||||
"address": "Address",
|
||||
"attachement": "Attachement",
|
||||
"attachment": "Attachment",
|
||||
"country": "Country",
|
||||
"city_town": "City/Town",
|
||||
"state": "State",
|
||||
@@ -1930,7 +1930,7 @@
|
||||
"branch.alert.mark_primary_message": "The branch has been marked as primary.",
|
||||
"branch.alert.are_you_sure_you_want_to_make": "Are you sure you want to make a primary branch?",
|
||||
"branch.error.could_not_delete_only_branch": "You could not delete the only branch.",
|
||||
"warehouse_actviate.dialog.label": "Warehouses Activation",
|
||||
"warehouse_activate.dialog.label": "Warehouses Activation",
|
||||
"warehouse_activate.dialog_success_message": "Multi-branches feature has been activated successfully.",
|
||||
"warehouse_activate.dialog_paragraph": "Once you enable <strong>Multiple Warehouses</strong>, you will not be able to disable it. However, you can delete the warehouse or mark it inactive.",
|
||||
"warehouse_activate.dialog_paragraph.line_1": "The current organization will be considered as the Head Office or Primary warehouse.",
|
||||
|
||||
Reference in New Issue
Block a user