Better color in data picker
[fa-stable.git] / taxes / item_tax_types.php
index f8eb7cdc3383ff6481606be411a1d4746171eb47..91f21c97405c52dba08bdf9f2e436e88e3a27c01 100644 (file)
@@ -1,5 +1,14 @@
 <?php
-
+/**********************************************************************
+    Copyright (C) FrontAccounting, LLC.
+       Released under the terms of the GNU General Public License, GPL, 
+       as published by the Free Software Foundation, either version 3 
+       of the License, or (at your option) any later version.
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
+    See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
+***********************************************************************/
 $path_to_root = "..";
 $page_security = 3;
 
@@ -85,8 +94,8 @@ if ($Mode == 'Delete')
        {
                delete_item_tax_type($selected_id);
                display_notification(_('Selected item tax type has been deleted'));
-               $Mode = 'RESET';
        }
+       $Mode = 'RESET';
 }
 
 if ($Mode == 'RESET')
@@ -122,7 +131,7 @@ while ($myrow = db_fetch($result2))
        label_cell($myrow["name"]);
        label_cell($disallow_text);
        edit_button_cell("Edit".$myrow["id"], _("Edit"));
-       edit_button_cell("Delete".$myrow["id"], _("Delete"));
+       delete_button_cell("Delete".$myrow["id"], _("Delete"));
        end_row();
 }