-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
37 lines (31 loc) · 1.48 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
function ledger () {
this.journal = new Journal();
}
module.exports = ledger;
function journal () {
}
module.exports = journal;
function account () {
}
module.exports = account;
DebitBalanceAccount.prototype = new Account();
CreditBalanceAccount.prototype = new Account();
AssetAccount.prototype = new DebitBalanceAccount();
liabilityAccount.prototype = new CrebitBalanceAccount();
equityAccount.prototype = new CrebitBalanceAccount();
revenueAccount.prototype = new CrebitBalanceAccount();
expenseAccount.prototype = new DebitBalanceAccount();
gainAccount.prototype = new CrebitBalanceAccount();
lossAccount.prototype = new DebitBalanceAccount();
function ChartOfAccounts {
this.newAssetAccount("Cash","Marketable Securities""Accounts Receivable","Prepaid Expenses""Inventory","Fixed Assets","Accumulated Depreciation (contra account)","Other Assets");
this.newLiabilityAccount("Accounts Payable","Accrued Liabilities","Taxes Payable","Wages Payable","Notes Payable");
this.newStockholderEquityAccount("Common Stock","Retained Earnings");
this.newRevenueAccount("Revenue","Sales returns and allowances (contra account)");
this.newExpenseAccount("Cost of Goods Sold","Advertising Expense","Bank Fees","Depreciation Expense","Payroll Tax Expense","Rent Expense","Supplies Expense","Utilities Expense","Wages Expense","Other Expenses");
}
function transactionType (id,dispersion) { //dispersion: {credits:[],debits:[]}
}
function transaction (type,amount,description) {
}
module.exports = transaction;