From: Janusz Dobrowolski Date: Sun, 10 Apr 2011 11:10:39 +0000 (+0200) Subject: Not used tax rates removed from edition form display. X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=b1a723d9dd446cfd929706fdb32dc529f5ed8c8c;p=textcart.git Not used tax rates removed from edition form display. --- diff --git a/includes/ui/ui_view.inc b/includes/ui/ui_view.inc index a469854..199f44f 100644 --- a/includes/ui/ui_view.inc +++ b/includes/ui/ui_view.inc @@ -439,16 +439,18 @@ function display_edit_tax_items($taxes, $columns, $tax_included, $leftspan=0) foreach ($taxes as $taxitem) { - if ($tax_included) - { - label_row(_("Included") . " " . $taxitem['tax_type_name'] - . " " . number_format2($taxitem['Value'],user_price_dec()), "", "colspan=$columns align=right", "align=right",$leftspan); - } - else - { - label_row($taxitem['tax_type_name'], - number_format2($taxitem['Value'],user_price_dec()), "colspan=$columns align=right", "align=right",$leftspan); - $total += round2($taxitem['Value'], user_price_dec()); + if (isset($taxitem['rate'])) { + if ($tax_included) + { + label_row(_("Included") . " " . $taxitem['tax_type_name'] + . " " . number_format2($taxitem['Value'],user_price_dec()), "", "colspan=$columns align=right", "align=right",$leftspan); + } + else + { + label_row($taxitem['tax_type_name'], + number_format2($taxitem['Value'],user_price_dec()), "colspan=$columns align=right", "align=right",$leftspan); + $total += round2($taxitem['Value'], user_price_dec()); + } } }