Fixed error creating customer credit note: Undefined index: sales_gl_code. @notrinos.
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Tue, 11 Sep 2018 20:43:52 +0000 (22:43 +0200)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Tue, 11 Sep 2018 20:43:52 +0000 (22:43 +0200)
taxes/tax_calc.inc

index 28b40a7c580f4932a64f4aa562aed87ebd0e4b1c..3ef685aef1cda24d34d4ea9c5f58d34c3cd0edb1 100644 (file)
@@ -160,8 +160,8 @@ function get_tax_for_items($items, $prices, $shipping_cost, $tax_group, $tax_inc
                        $fully_exempt = false;
                $ret_tax_array[$k]['Net'] = 0;
        }
                        $fully_exempt = false;
                $ret_tax_array[$k]['Net'] = 0;
        }
-
-       $ret_tax_array['exempt'] = array('Value'=>0, 'Net'=>0, 'rate' => null, 'tax_type_id' => '');
+       
+       $ret_tax_array['exempt'] = array('Value'=>0, 'Net'=>0, 'rate' => null, 'tax_type_id' => '', 'sales_gl_code' => '');
        $dec = user_price_dec();
        // loop for all items
        for ($i = 0; $i < count($items); $i++)
        $dec = user_price_dec();
        // loop for all items
        for ($i = 0; $i < count($items); $i++)