New tax system implementation.
[fa-stable.git] / purchasing / includes / db / grn_db.inc
index e66c0910a4fe722d8b8abc21a08c70d6df7d0aaa..886e05fc5f5c2b3cb6082d740a06b0ab0c284172 100644 (file)
@@ -25,7 +25,8 @@ function update_average_material_cost($supplier, $stock_id, $price, $qty, $date,
                $currency = null;
 
        if ($supp['tax_included'])
-               $price = get_tax_free_price_for_item($stock_id, $price, $supp['tax_group_id'],
+               $price = get_tax_free_price_for_item(ST_SUPPINVOICE, // ?
+               $stock_id, $price, $supp['tax_group_id'],
                        $supp['tax_included']);
 
        if ($currency != null)