[FIX] valuation_methods_anglo_saxon: Correct valuation-chart + use dollars

This commit is contained in:
Yannick Tivisse 2016-05-25 14:58:40 +02:00
parent a0dd875333
commit bb2a9468ad
2 changed files with 95 additions and 86 deletions

View File

@ -156,12 +156,14 @@
ACCOUNTS_RECEIVABLE: { code: 13100, label: "Accounts Receivable" }, ACCOUNTS_RECEIVABLE: { code: 13100, label: "Accounts Receivable" },
STOCK: { code: 14000, label: "Inventory" }, STOCK: { code: 14000, label: "Inventory" },
RAW_MATERIALS: { code: 14100, label: "Raw Materials Inventory" }, RAW_MATERIALS: { code: 14100, label: "Raw Materials Inventory" },
STOCK_OUT: { code: 14600, label: "Goods Issued Not Invoiced" },
TAXES_PAID: { code: 19000, label: "Deferred Tax Assets" } TAXES_PAID: { code: 19000, label: "Deferred Tax Assets" }
}; };
var LIABILITIES = { var LIABILITIES = {
code: 2, code: 2,
label: "Liabilities", label: "Liabilities",
ACCOUNTS_PAYABLE: { code: 21000, label: "Accounts Payable" }, ACCOUNTS_PAYABLE: { code: 21000, label: "Accounts Payable" },
STOCK_IN: { code: 23000, label: "Goods Received Not Purchased" },
TAXES_PAYABLE: { code: 26200, label: "Deferred Tax Liabilities" } TAXES_PAYABLE: { code: 26200, label: "Deferred Tax Liabilities" }
}; };
var EQUITY = { var EQUITY = {
@ -177,10 +179,9 @@
var EXPENSES = { var EXPENSES = {
code: 5, code: 5,
label: "Expenses", label: "Expenses",
PURCHASED_GOODS: { code: 51000, label: "Purchased Goods" }, GOODS_SOLD: { code: 51100, label: "Cost of Goods Sold" },
PURCHASED_SERVICES: { code: 52000, label: "Purchased Services" }, MANUFACTURING_OVERHEAD: { code: 52000, label: "Manufacturing Overhead" },
INVENTORY_VARIATIONS: { code: 58000, label: "Inventory Variations" }, PRICE_DIFFERENCE: { code: 53000, label: "Price Difference" }
OTHER_OPERATING_EXPENSES: { code: 59000, label: "Other Operating Expenses" },
}; };
var categories = Immutable.fromJS([ASSETS, LIABILITIES, EQUITY, REVENUE, EXPENSES], function (k, v) { var categories = Immutable.fromJS([ASSETS, LIABILITIES, EQUITY, REVENUE, EXPENSES], function (k, v) {
return Immutable.Iterable.isIndexed(v) return Immutable.Iterable.isIndexed(v)
@ -210,46 +211,54 @@
purchase = 52, purchase = 52,
purchase_tax = 52 * 0.09; purchase_tax = 52 * 0.09;
var operations = Immutable.fromJS([{ var operations = Immutable.fromJS([{
label: "Vendor Invoice (PO $50, Invoice $50)", label: "Supplier Invoice (PO $50, Invoice $40)",
operations: [ operations: [
{account: EXPENSES.PURCHASED_GOODS.code, debit: constant(50)}, {account: LIABILITIES.STOCK_IN.code, debit: constant(50)},
{account: ASSETS.TAXES_PAID.code, debit: constant(50 * 0.09)}, {account: ASSETS.TAXES_PAID.code, debit: constant(50 * 0.09)},
{account: LIABILITIES.ACCOUNTS_PAYABLE.code, credit: constant(50 * 1.09)}, {account: LIABILITIES.ACCOUNTS_PAYABLE.code, credit: constant(50 * 1.09)},
] ]
}, { }, {
label: "Vendor Goods Reception (PO $50, Invoice $50)", label: "Supplier Goods Reception (PO $50, Invoice $50)",
operations: [ operations: [
{account: EXPENSES.INVENTORY_VARIATIONS.code, credit: constant(50)}, {account: LIABILITIES.STOCK_IN.code, credit: constant(50)},
{account: ASSETS.STOCK.code, debit: constant(50)}, {account: ASSETS.STOCK.code, debit: constant(50)},
] ]
}, { }, {
label: "Vendor Invoice (PO $48, Invoice $50)", label: "Supplier Invoice (PO $48, Invoice $50)",
operations: [ operations: [
{account: EXPENSES.PURCHASED_GOODS.code, debit: constant(48)}, {account: EXPENSES.PRICE_DIFFERENCE.code, debit: constant(2)},
{account: LIABILITIES.STOCK_IN.code, debit: constant(48)},
{account: ASSETS.TAXES_PAID.code, debit: constant(50 * 0.09)}, {account: ASSETS.TAXES_PAID.code, debit: constant(50 * 0.09)},
{account: LIABILITIES.ACCOUNTS_PAYABLE.code, credit: constant(50 * 1.09)}, {account: LIABILITIES.ACCOUNTS_PAYABLE.code, credit: constant(50 * 1.09)},
] ]
}, { }, {
label: "Vendor Goods Reception (PO $48, Invoice $50)", label: "Supplier Goods Reception (PO $48, Invoice $50)",
operations: [ operations: [
{account: EXPENSES.INVENTORY_VARIATIONS.code, credit: constant(48)}, {account: LIABILITIES.STOCK_IN.code, credit: constant(48)},
{account: ASSETS.STOCK.code, debit: constant(48)}, {account: ASSETS.STOCK.code, debit: constant(48)},
] ]
}, { }, {
label: "Customer Invoice ($100 + 9% tax)", label: "Customer Invoice",
operations: [ operations: [
{account: ASSETS.ACCOUNTS_RECEIVABLE.code, debit: constant(total)}, {account: ASSETS.ACCOUNTS_RECEIVABLE.code, debit: constant(total)},
{account: EXPENSES.PURCHASED_GOODS.code, debit: constant(cor)}, {account: EXPENSES.GOODS_SOLD.code, debit: constant(cor)},
{account: REVENUE.SALES.code, credit: constant(sale)}, {account: REVENUE.SALES.code, credit: constant(sale)},
{account: EXPENSES.INVENTORY_VARIATIONS.code, credit: constant(cor)}, {account: ASSETS.STOCK_OUT.code, credit: constant(cor)},
{account: LIABILITIES.TAXES_PAYABLE.code, credit: constant(tax)} {account: LIABILITIES.TAXES_PAYABLE.code, credit: constant(tax)}
] ]
}, { }, {
label: "Customer Shipping", label: "Customer Shipping",
operations: [ operations: [
{account: EXPENSES.INVENTORY_VARIATIONS.code, debit: constant(cor)}, {account: ASSETS.STOCK_OUT.code, debit: constant(cor)},
{account: ASSETS.STOCK.code, credit: constant(cor)} {account: ASSETS.STOCK.code, credit: constant(cor)}
] ]
}, {
label: "Production Order",
operations: [
{account: ASSETS.STOCK.code, debit: constant(50)},
{account: EXPENSES.MANUFACTURING_OVERHEAD.code, debit: constant(2)},
{account: ASSETS.RAW_MATERIALS.code, credit: constant(52)}
]
}]); }]);
function constant(val) {return function () { return val; };} function constant(val) {return function () { return val; };}
var zero = constant(0); var zero = constant(0);

View File

@ -31,31 +31,31 @@ Standard Price
- Delta Value - Delta Value
- Inventory Value - Inventory Value
* - * -
- 10 - $10
- 0 - 0
- -
- 0 - $0
* - Receive 8 Products at 10 * - Receive 8 Products at $10
- 10 - $10
- 8 - 8
- +8*10 - +8*$10
- 80 - $80
* - Receive 4 Products at 16 * - Receive 4 Products at $16
- 10 - $10
- 12 - 12
- +4*10 - +4*$10
- 120 - $120
* - Deliver 10 Products * - Deliver 10 Products
- 10 - $10
- 2 - 2
- | -10*10 - | -10*$10
| |
- 20 - $20
* - Receive 2 Products at 9 * - Receive 2 Products at $9
- 10 - $10
- 4 - 4
- +2*10 - +2*$10
- 40 - $40
**Standard Price** means you estimate the cost price based **Standard Price** means you estimate the cost price based
on direct materials, direct labor and manufacturing overhead on direct materials, direct labor and manufacturing overhead
@ -76,31 +76,31 @@ Average Price
- Delta Value - Delta Value
- Inventory Value - Inventory Value
* - * -
- 0 - $0
- 0 - 0
- -
- 0 - $0
* - Receive 8 Products at 10 * - Receive 8 Products at $10
- 10 - $10
- 8 - 8
- +8*10 - +8*$10
- 80 - $80
* - Receive 4 Products at 16 * - Receive 4 Products at $16
- 12 - $12
- 12 - 12
- +4*16 - +4*$16
- 144 - $144
* - Deliver 10 Products * - Deliver 10 Products
- 12 - $12
- 2 - 2
- | -10*12 - | -10*$12
| |
- 24 - $24
* - Receive 2 Products at 6 * - Receive 2 Products at $6
- 9 - $9
- 4 - 4
- +2*6 - +2*$6
- 36 - $36
The **Average Price** method recomputes the cost price as a receipt order The **Average Price** method recomputes the cost price as a receipt order
has been processed, based on prices defined in tied purchase orders: has been processed, based on prices defined in tied purchase orders:
@ -131,31 +131,31 @@ FIFO
- Delta Value - Delta Value
- Inventory Value - Inventory Value
* - * -
- 0 - $0
- 0 - 0
- -
- 0 - $0
* - Receive 8 Products at 10 * - Receive 8 Products at $10
- 10 - $10
- 8 - 8
- +8*10 - +8*$10
- 80 - $80
* - Receive 4 Products at 16 * - Receive 4 Products at $16
- 12 - $12
- 12 - 12
- +4*16 - +4*$16
- 144 - $144
* - Deliver 10 Products * - Deliver 10 Products
- 16 - $16
- 2 - 2
- | -8*10 - | -8*$10
| -2*16 | -2*$16
- 32 - $32
* - Receive 2 Products at 6 * - Receive 2 Products at $6
- 11 - $11
- 4 - 4
- +2*6 - +2*$6
- 44 - $44
For **Real Price** (FIFO, LIFO, FEFO, etc), the costing is further For **Real Price** (FIFO, LIFO, FEFO, etc), the costing is further
refined by the removal strategy set on the warehouse location refined by the removal strategy set on the warehouse location
@ -184,31 +184,31 @@ LIFO (not accepted in IFRS)
- Delta Value - Delta Value
- Inventory Value - Inventory Value
* - * -
- 0 - $0
- 0 - 0
- -
- 0 - $0
* - Receive 8 Products at 10 * - Receive 8 Products at $10
- 10 - $10
- 8 - 8
- +8*10 - +8*$10
- 80 - $80
* - Receive 4 Products at 16 * - Receive 4 Products at $16
- 12 - $12
- 12 - 12
- +4*16 - +4*$16
- 144 - $144
* - Deliver 10 Products * - Deliver 10 Products
- 10 - $10
- 2 - 2
- | -4*16 - | -4*$16
| -6*10 | -6*$10
- 20 - $20
* - Receive 2 Products at 6 * - Receive 2 Products at $6
- 8 - $8
- 4 - 4
- +2*6 - +2*$6
- 32 - $32
For **Real Price** (FIFO, LIFO, FEFO, etc), the costing is further For **Real Price** (FIFO, LIFO, FEFO, etc), the costing is further
refined by the removal strategy set on the warehouse location refined by the removal strategy set on the warehouse location