@debito/hippo-lib
Version:
Double-entry accounting library for CouchDB
32 lines (27 loc) • 545 B
JavaScript
/**
* Accounting constants and enums
*/
// Journal entry line types
const DEBIT = 'debit';
const CREDIT = 'credit';
// Account types
const ACCOUNT_TYPES = {
ASSET: 'asset',
LIABILITY: 'liability',
EQUITY: 'equity',
REVENUE: 'revenue',
EXPENSE: 'expense'
};
// Journal entry status
const JOURNAL_STATUS = {
POSTED: 'posted',
REVERSED: 'reversed',
DELETED: 'deleted'
};
export { DEBIT, CREDIT, ACCOUNT_TYPES, JOURNAL_STATUS };
export default {
DEBIT,
CREDIT,
ACCOUNT_TYPES,
JOURNAL_STATUS
};