Bug Found in Supplier Invoice in Calculating Unit Tax
[fa-stable.git] / purchasing / includes / db / invoice_db.inc
index c0262a16066af20f622bb317652739a76473089b..a00432797b0f81154e3708630814f11e23b3fccc 100644 (file)
@@ -274,7 +274,7 @@ function add_supp_invoice(&$supp_trans)
                          $supp_trans->tax_group_id, $supp_trans->tax_included) - $net_diff; $net_diff = 0;
 
                $line_tax = get_full_price_for_item($entered_grn->item_code,
-                       $entered_grn->this_quantity_inv * $entered_grn->chg_price, 0, $supp_trans->tax_included) - $taxfree_line;
+                       $entered_grn->this_quantity_inv * $entered_grn->chg_price, $supp_trans->tax_group_id, $supp_trans->tax_included) - $taxfree_line;
 
                $stock_gl_code = get_stock_gl_code($entered_grn->item_code);