Skip to content

Commit

Permalink
update_material_cost function makes one unnecessary call to get_item.…
Browse files Browse the repository at this point in the history
… Fixed by @kvvaradha.
  • Loading branch information
joe-hunt committed Nov 28, 2021
1 parent 6073c62 commit a838b69
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion manufacturing/includes/db/work_order_costing_db.inc
Expand Up @@ -81,7 +81,6 @@ function update_material_cost($stock_id, $qty, $unit_cost, $date)
{
// post $qty_delayed*($avg_cost-$unit_cost)
$diff = $qty_delayed*($unit_cost-$avg_cost);
$stock_gl_code = get_item($stock_id);

$dec = user_price_dec();
$old_cost = -round2($avg_cost, $dec);
Expand Down

0 comments on commit a838b69

Please sign in to comment.