From e01ce098c8862750e2f4f66f255191e83a4ce1d6 Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Tue, 11 Sep 2018 22:43:52 +0200 Subject: [PATCH] Fixed error creating customer credit note: Undefined index: sales_gl_code. @notrinos. --- taxes/tax_calc.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/taxes/tax_calc.inc b/taxes/tax_calc.inc index 28b40a7c..3ef685ae 100644 --- a/taxes/tax_calc.inc +++ b/taxes/tax_calc.inc @@ -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; } - - $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++) -- 2.30.2