victoredwards wrote:The standard cost for manufactured item depends on these cost elements are :
Material Cost – This is the purchased cost. This is set as the standard material unit cost on the cost master file.
Material Overhead Cost – This is the material burden which is calculated using a “Material Overhead Rate’ and applied to the material cost at the time of purchase order receipt.
Direct labor and labor overheaded cost.
Machine Overhead Cost – There is a Machine Overhead Rate associated with each machine and the machine can be specified on each operation of the routing where appropriate.
Thank you for your reply. When I use item adjustment, this works fine. If I set the material cost 70.000 and labour cost 75.000,
the adjustment seems right. My stock account value in balance sheet become 75.000.
The problem occur when I use work order to produce it. I use raw material which total 70.000 and add a labour cost 5.000. But, something happen because my initial qoh is 0. It's in work_orders_db.inc (function add_overhead_cost) that cause this.
if ($qoh > 0){
$overhead_cost = ($qoh * $overhead_cost + $costs) / $qoh;
}else { // Journal Entry if QOH is 0/negative
global $Refs;
$id = get_next_trans_no(ST_JOURNAL);
$ref = $Refs->get_next(ST_JOURNAL);
$stock_gl_code = get_stock_gl_code($stock_id);
$memo = "WO Overhead cost settlement JV for zero/negative respository of " . $stock_id;
//Reverse the inventory effect if $qoh <=0
add_gl_trans_std_cost(ST_JOURNAL, $id, $date_, $stock_gl_code["inventory_account"], $stock_gl_code['dimension_id'], $stock_gl_code['dimension2_id'], $memo, -$costs);
//GL Posting to inventory adjustment account
add_gl_trans_std_cost(ST_JOURNAL, $id, $date_, $stock_gl_code["adjustment_account"], $stock_gl_code['dimension_id'], $stock_gl_code['dimension2_id'], $memo, $costs);
add_audit_trail(ST_JOURNAL, $id, $date_);
add_comments(ST_JOURNAL, $id, $date_, $memo);
$Refs->save(ST_JOURNAL, $id, $ref);
}
I don't get the else part. Because that, the value of finished goods become 70.000 and the material cost change into 65.000. The labor cost still 5.000.