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-Tag: 2.3-final~708 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=5b3de0c85818ed08979562552d1f2610d8a58f39;p=fa-stable.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 a469854c..199f44fd 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()); + } } }