From: Joe Hunt Date: Wed, 13 Jul 2011 12:00:54 +0000 (+0200) Subject: Rerun of tax_groups.php X-Git-Tag: v2.4.2~19^2~377 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=c7677cfbba820ec8d7a6f224d51fe64d4850a2a3;p=fa-stable.git Rerun of tax_groups.php --- diff --git a/taxes/tax_groups.php b/taxes/tax_groups.php index 317b433a..90270117 100644 --- a/taxes/tax_groups.php +++ b/taxes/tax_groups.php @@ -176,21 +176,25 @@ table_header($th); while($item = db_fetch($items)) { start_row(); - check_cells($item['tax_type_name'], 'tax_type_id' . $item['tax_type_id'], - $selected_id!=-1 && isset($item['rate']), true, false, "align='center'"); - /* - $upd = false; - if (get_post('_tax_type_id' . $item['tax_type_id'].'_update')) + if ($selected_id != -1) { - $_POST['_tax_type_id' . $item['tax_type_id'].'_update'] = 0; - $Ajax->activate('_page_body'); - $upd = true; + check_cells($item['tax_type_name'], 'tax_type_id' . $item['tax_type_id'], + isset($item['rate']), true, false, "align='center'"); + if (isset($item['rate'])) + check_cells(null, 'tax_shipping' . $item['tax_type_id'], $item['tax_shipping']); } - - if (($selected_id!=-1 && isset($item['rate']) || $upd)) - */ - if ($selected_id!=-1 && isset($item['rate'])) - check_cells(null, 'tax_shipping' . $item['tax_type_id'], $item['tax_shipping']); + else + { + check_cells($item['tax_type_name'], 'tax_type_id' . $item['tax_type_id'], + null, true, false, "align='center'"); + if (get_post('_tax_type_id' . $item['tax_type_id'].'_update')) + { + //$_POST['_tax_type_id' . $item['tax_type_id'].'_update'] = 0; + $Ajax->activate('_page_body'); + } + if (check_value('tax_type_id' . $item['tax_type_id'])==1) + check_cells(null, 'tax_shipping' . $item['tax_type_id'], null); + } end_row(); }