From: Joe Date: Mon, 5 Jan 2015 22:27:12 +0000 (+0100) Subject: Fixed merge problem in Item Cost Update. X-Git-Tag: v2.4.2~19^2~281 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=f3c65a3afb7a41553e60112464a6fc3785e79561;p=fa-stable.git Fixed merge problem in Item Cost Update. --- diff --git a/inventory/includes/db/items_trans_db.inc b/inventory/includes/db/items_trans_db.inc index 962f62be..3c734c27 100644 --- a/inventory/includes/db/items_trans_db.inc +++ b/inventory/includes/db/items_trans_db.inc @@ -51,12 +51,6 @@ function stock_cost_update($stock_id, $material_cost, $labour_cost, $overhead_co { $new_cost = $material_cost + $labour_cost + $overhead_cost; - $value_of_change = $qoh * ($new_cost - $last_cost); - - $memo_ = "Cost was " . $last_cost . " changed to " . $new_cost . " x quantity on hand of $qoh"; - add_gl_trans_std_cost(ST_COSTUPDATE, $update_no, $date_, $stock_gl_code["adjustment_account"], - $stock_gl_code["dimension_id"], $stock_gl_code["dimension2_id"], $memo_, (-$value_of_change)); - $value_of_change = round2($qoh * ($new_cost - $last_cost), user_price_dec()); if ($value_of_change != 0)