mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 21:30:31 +00:00
- Fix typo ONWERS_DRAWING -> OWNERS_DRAWING in server constants - Change OwnerDrawing -> owner_drawing for consistency in webapp - Fix typo TRANSACRIONS_TYPE -> TRANSACTIONS_TYPE - Fix typo OnwersDrawing -> OwnerDrawing - Add missing Icon and FDateInput imports - Add dark mode styling for BranchRowDivider Co-Authored-By: Claude Code <noreply@anthropic.com>
51 lines
1.1 KiB
TypeScript
51 lines
1.1 KiB
TypeScript
// @ts-nocheck
|
|
import intl from 'react-intl-universal';
|
|
|
|
export const getAddMoneyInOptions = () => [
|
|
{
|
|
name: intl.get('banking.owner_contribution'),
|
|
value: 'owner_contribution',
|
|
},
|
|
{
|
|
name: intl.get('banking.other_income'),
|
|
value: 'other_income',
|
|
},
|
|
{
|
|
name: intl.get('banking.transfer_form_account'),
|
|
value: 'transfer_from_account',
|
|
},
|
|
];
|
|
|
|
export const getAddMoneyOutOptions = () => [
|
|
{
|
|
name: intl.get('banking.owner_drawings'),
|
|
value: 'owner_drawing',
|
|
},
|
|
{
|
|
name: intl.get('banking.expenses'),
|
|
value: 'other_expense',
|
|
},
|
|
{
|
|
name: intl.get('banking.transfer_to_account'),
|
|
value: 'transfer_to_account',
|
|
},
|
|
];
|
|
|
|
export const TRANSACTIONS_TYPE = [
|
|
'OwnerContribution',
|
|
'OtherIncome',
|
|
'TransferFromAccount',
|
|
'OwnerDrawing',
|
|
'OtherExpense',
|
|
'TransferToAccount',
|
|
];
|
|
|
|
export const MoneyCategoryPerCreditAccountRootType = {
|
|
OwnerContribution: ['equity'],
|
|
OtherIncome: ['income'],
|
|
OwnerDrawing: ['equity'],
|
|
OtherExpense: ['expense'],
|
|
TransferToAccount: ['asset'],
|
|
TransferFromAccount: ['asset'],
|
|
};
|