mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 21:00:31 +00:00
39 lines
814 B
TypeScript
39 lines
814 B
TypeScript
// @ts-nocheck
|
|
export const transformToOptions = (option) => {
|
|
return [
|
|
{
|
|
key: 'accounting_basis',
|
|
value: option.accounting_basis,
|
|
group: 'organization',
|
|
},
|
|
{
|
|
key: 'withdrawal_account',
|
|
value: option.withdrawal_account,
|
|
group: 'bill_payments',
|
|
},
|
|
{
|
|
key: 'preferred_deposit_account',
|
|
value: option.preferred_deposit_account,
|
|
group: 'payment_receives',
|
|
},
|
|
{
|
|
key: 'preferred_advance_deposit',
|
|
value: option.preferred_advance_deposit,
|
|
group: 'payment_receives',
|
|
},
|
|
{
|
|
key: 'account_code_required',
|
|
value: option.account_code_required,
|
|
group: 'accounts',
|
|
},
|
|
{
|
|
|
|
key: 'account_code_unique',
|
|
value: option.account_code_unique,
|
|
group: 'accounts',
|
|
},
|
|
];
|
|
};
|
|
|
|
|