From: Joe Hunt Date: Tue, 11 Sep 2018 20:43:52 +0000 (+0200) Subject: Fixed error creating customer credit note: Undefined index: sales_gl_code. @notrinos. X-Git-Url: https://delta.frontaccounting.com/gitweb/?p=fa-stable.git;a=commitdiff_plain;h=e01ce098c8862750e2f4f66f255191e83a4ce1d6 Fixed error creating customer credit note: Undefined index: sales_gl_code. @notrinos. --- 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++)