UNPKG

@debito/hippo-lib

Version:

Double-entry accounting library for CouchDB

42 lines (36 loc) 737 B
/** * Accounting constants and enums */ // Journal entry line types const DEBIT = 'debit'; const CREDIT = 'credit'; // Account types const ACCOUNT_TYPES = { ASSET: 'assets', LIABILITY: 'liabilities', EQUITY: 'equity', REVENUE: 'revenue', EXPENSE: 'expenses' }; // Journal entry status const JOURNAL_STATUS = { POSTED: 'posted', REVERSED: 'reversed', DELETED: 'deleted' }; // Check status const CHECK_STATUS = { UNUSED: 'unused', ISSUED: 'issued', CLEARED: 'cleared', BOUNCED: 'bounced', VOIDED: 'voided' }; export { DEBIT, CREDIT, ACCOUNT_TYPES, JOURNAL_STATUS, CHECK_STATUS }; export default { DEBIT, CREDIT, ACCOUNT_TYPES, JOURNAL_STATUS, CHECK_STATUS };