Overhead and labour cost changed to define standard costs.
[fa-stable.git] / purchasing / includes / purchasing_db.inc
index 94f2f72f408d1f541c144c38c1f1d3d6a67eb356..89c4d94b4d5097803047f44bd5bef820f9344985 100644 (file)
@@ -197,7 +197,7 @@ function add_direct_supp_trans($cart)
                foreach($cart->line_items as $key => $line) {
                $inv->add_grn_to_trans($line->grn_item_id, $line->po_detail_rec, $line->stock_id,
                        $line->item_description, $line->receive_qty, 0, $line->receive_qty,
-                       $line->price, $line->price, true, get_standard_cost($line->stock_id), '');
+                       $line->price, $line->price, true, get_unit_cost($line->stock_id), '');
                $total += round2(($line->receive_qty * $line->price), user_price_dec());
        }
        $inv->tax_overrides = $cart->tax_overrides;