Overhead and labour cost changed to define standard costs.
[fa-stable.git] / sales / includes / sales_db.inc
index 949ee79e2f404b5d47b2c19348704eefc174a9d6..2177d2e7afbc70b239fb6d389bbc9d3a94008748 100644 (file)
@@ -47,7 +47,7 @@ function add_gl_trans_customer($type, $type_no, $date_, $account, $dimension, $d
 
 function get_calculated_price($stock_id, $add_pct)
 {
-       $avg = get_standard_cost($stock_id);
+       $avg = get_unit_cost($stock_id);
        if ($avg == 0)
                return 0;
        return round2($avg * (1 + $add_pct / 100), user_price_dec());