[FIX] Production Order: raw materials account is credited, not debited

also renamed MO -> PO for coherence with rest of
This commit is contained in:
Xavier Morel 2015-04-21 10:46:30 +02:00
parent 05f2b29914
commit 7dc71b46ea

View File

@ -253,11 +253,11 @@
{account: ASSETS.STOCK.code, credit: constant(cor)}
]
}, {
label: "Manufacturing Order",
label: "Production Order",
operations: [
{account: ASSETS.STOCK.code, debit: constant(50)},
{account: EXPENSES.MANUFACTURING_OVERHEAD.code, debit: constant(2)},
{account: ASSETS.RAW_MATERIALS.code, debit: constant(52)}
{account: ASSETS.RAW_MATERIALS.code, credit: constant(52)}
]
}]);
function constant(val) {return function () { return val; };}