[ADD] COGS to customer invoice
This commit is contained in:
parent
0e8a689b79
commit
dff31b5bd2
@ -154,6 +154,7 @@
|
|||||||
label: "Assets",
|
label: "Assets",
|
||||||
CASH: { code: 10000, label: "Cash" },
|
CASH: { code: 10000, label: "Cash" },
|
||||||
ACCOUNTS_RECEIVABLE: { code: 12000, label: "Accounts Receivable" },
|
ACCOUNTS_RECEIVABLE: { code: 12000, label: "Accounts Receivable" },
|
||||||
|
STOCK: { code: 14000, label: "Stock" },
|
||||||
BUILDINGS: { code: 17100, label: "Buildings" },
|
BUILDINGS: { code: 17100, label: "Buildings" },
|
||||||
DEPRECIATION: { code: 18100, label: "Accumulated Depreciation" }
|
DEPRECIATION: { code: 18100, label: "Accumulated Depreciation" }
|
||||||
};
|
};
|
||||||
@ -178,6 +179,7 @@
|
|||||||
code: 5,
|
code: 5,
|
||||||
label: "Expenses",
|
label: "Expenses",
|
||||||
PURCHASES: { code: 50000, label: "Purchases" },
|
PURCHASES: { code: 50000, label: "Purchases" },
|
||||||
|
GOODS_SOLD: { code: 55000, label: "Cost of Revenue" },
|
||||||
DEPRECIATION: { code: 58100, label: "Depreciation Expenses" }
|
DEPRECIATION: { code: 58100, label: "Depreciation Expenses" }
|
||||||
};
|
};
|
||||||
var categories = Immutable.fromJS([ASSETS, LIABILITIES, EQUITY, REVENUE, EXPENSES]);
|
var categories = Immutable.fromJS([ASSETS, LIABILITIES, EQUITY, REVENUE, EXPENSES]);
|
||||||
@ -197,6 +199,7 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
var sale = 100,
|
var sale = 100,
|
||||||
|
cor = sale / 2,
|
||||||
tax = sale * 0.09,
|
tax = sale * 0.09,
|
||||||
total = sale + tax,
|
total = sale + tax,
|
||||||
refund = sale * 0.1,
|
refund = sale * 0.1,
|
||||||
@ -211,7 +214,9 @@
|
|||||||
label: "Customer Invoice ($100 + 9% tax)",
|
label: "Customer Invoice ($100 + 9% tax)",
|
||||||
operations: [
|
operations: [
|
||||||
{account: ASSETS.ACCOUNTS_RECEIVABLE.code, debit: constant(total)},
|
{account: ASSETS.ACCOUNTS_RECEIVABLE.code, debit: constant(total)},
|
||||||
|
{account: EXPENSES.GOODS_SOLD.code, debit: constant(cor)},
|
||||||
{account: REVENUE.SALES.code, credit: constant(sale)},
|
{account: REVENUE.SALES.code, credit: constant(sale)},
|
||||||
|
{account: ASSETS.STOCK.code, credit: constant(cor)},
|
||||||
{account: LIABILITIES.TAXES_PAYABLE.code, credit: constant(tax)}
|
{account: LIABILITIES.TAXES_PAYABLE.code, credit: constant(tax)}
|
||||||
]
|
]
|
||||||
}, {
|
}, {
|
||||||
|
Loading…
Reference in New Issue
Block a user