From d78c8718553f5daedeede99bf8db69c1d34dc60b Mon Sep 17 00:00:00 2001 From: jekkos Date: Mon, 9 May 2016 20:15:00 +0200 Subject: [PATCH] Show empty column if no tax_percent found for item (#507) --- application/helpers/table_helper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/helpers/table_helper.php b/application/helpers/table_helper.php index 0866171f2..983147b90 100644 --- a/application/helpers/table_helper.php +++ b/application/helpers/table_helper.php @@ -271,7 +271,7 @@ function get_item_data_row($item, $controller) 'cost_price' => to_currency($item->cost_price), 'unit_price' => to_currency($item->unit_price), 'quantity' => to_quantity_decimals($item->quantity), - 'tax_percents' => $tax_percents, + 'tax_percents' => !$tax_percents ? '-' : $tax_percents, 'item_pic' => $image, 'inventory' => anchor($controller_name."/inventory/$item->item_id", '', array('class' => "modal-dlg modal-btn-submit", 'title' => $CI->lang->line($controller_name.'_count'))