diff --git a/client/src/containers/Preferences/Accountant/AccountantForm.js b/client/src/containers/Preferences/Accountant/AccountantForm.js index b5b2da70e..492f2b300 100644 --- a/client/src/containers/Preferences/Accountant/AccountantForm.js +++ b/client/src/containers/Preferences/Accountant/AccountantForm.js @@ -31,7 +31,7 @@ export default function AccountantForm() { return (
- {/* ----------- accounts ----------- */} + {/* ----------- Accounts ----------- */} @@ -46,7 +46,7 @@ export default function AccountantForm() { label={'Should account code be unique when create a new account.'} /> - {/* ----------- accounting basis ----------- */} + {/* ----------- Accounting basis ----------- */} {({ form, field: { value }, meta: { error, touched } }) => ( )} - {/* ----------- deposit customer account ----------- */} + + {/* ----------- Deposit customer account ----------- */} {({ form, field: { value }, meta: { error, touched } }) => ( - {/* ----------- withdrawal customer account ----------- */} + {/* ----------- Withdrawal customer account ----------- */} {({ form, field: { value }, meta: { error, touched } }) => ( - + } helperText={ @@ -111,13 +112,13 @@ export default function AccountantForm() { )} - {/* ----------- withdrawal customer account ----------- */} + {/* ----------- Withdrawal customer account ----------- */} {({ form, field: { value }, meta: { error, touched } }) => ( - + } helperText={ diff --git a/client/src/containers/Preferences/Accountant/AccountantFormProvider.js b/client/src/containers/Preferences/Accountant/AccountantFormProvider.js index 0c92646b1..a104ed451 100644 --- a/client/src/containers/Preferences/Accountant/AccountantFormProvider.js +++ b/client/src/containers/Preferences/Accountant/AccountantFormProvider.js @@ -9,10 +9,10 @@ const AccountantFormContext = React.createContext(); */ function AccountantFormProvider({ ...props }) { // Fetches the accounts list. - const { isFetching: isAccountsLoading, data: accounts } = useAccounts(); + const { isLoading: isAccountsLoading, data: accounts } = useAccounts(); //Fetches Organization Settings. - const { isFetching: isSettingsLoading } = useSettings(); + const { isLoading: isSettingsLoading } = useSettings(); // Save Organization Settings. const { mutateAsync: saveSettingMutate } = useSaveSettings(); diff --git a/client/src/lang/en/index.js b/client/src/lang/en/index.js index 4b15e129a..4fa4fab89 100644 --- a/client/src/lang/en/index.js +++ b/client/src/lang/en/index.js @@ -821,7 +821,7 @@ export default { average_rate: 'Average rate', the_name_used_before: 'The name is already used.', the_item_has_associated_transactions: 'The item has associated transactions.', - customer_has_sales_invoices: 'Customer has sales invoices', + customer_has_sales_invoices: 'Cannot delete customer has associated sales invoices.', account_name_is_already_used: 'Account name is already used.', vendors: 'Vendors', vendor_email: 'Vendor Email', diff --git a/client/src/routes/dashboard.js b/client/src/routes/dashboard.js index 9aaf1614b..1689fc8be 100644 --- a/client/src/routes/dashboard.js +++ b/client/src/routes/dashboard.js @@ -547,6 +547,5 @@ export default [ path: `/`, component: lazy(() => import('containers/Homepage/Homepage')), breadcrumb: 'Home', - pageTitle: 'Homepage', }, ]; diff --git a/server/src/data/options.js b/server/src/data/options.js index e00bb7538..b68ae3126 100644 --- a/server/src/data/options.js +++ b/server/src/data/options.js @@ -35,13 +35,15 @@ export default { { key: "time_zone", type: "string", - // config: true, }, { key: "date_format", type: "string", - // config: true, }, + { + key: 'accounting_basis', + type: 'string', + } ], manual_journals: [ { @@ -59,13 +61,9 @@ export default { ], bill_payments: [ { - key: "next_number", - type: "number", - }, - { - key: "number_prefix", - type: "string", - }, + key: 'withdrawal_account', + type: 'string' + } ], sales_estimates: [ { @@ -125,19 +123,27 @@ export default { { key: "auto_increment", type: "boolean", + }, + { + key: 'deposit_account', + type: 'string' + }, + { + key: 'advance_deposit', + key: 'string' } ], items: [ { - key: "preferred_sell_account", + key: "sell_account", type: "number", }, { - key: "preferred_cost_account", + key: "cost_account", type: "number", }, { - key: "preferred_inventory_account", + key: "inventory_account", type: "number", }, ], @@ -147,4 +153,14 @@ export default { type: "number", }, ], + accounts: [ + { + key: 'account_code_required', + type: 'boolean', + }, + { + key: 'account_code_unique', + type: 'boolean', + }, + ] };