Copyright notes at top op every source file
[fa-stable.git] / taxes / tax_types.php
index d93a29a34f4cdd4df1a028e4e06f882c7aef36ef..a7c538361c001d1628f03fc5d40f4ac1eb475f3c 100644 (file)
@@ -1,4 +1,14 @@
 <?php
+/**********************************************************************
+    Copyright (C) FrontAccounting, LLC.
+       Released under the terms of the GNU Affero General Public License,
+       AGPL, 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/agpl-3.0.html>.
+***********************************************************************/
 $page_security = 3;
 $path_to_root="..";
 
@@ -78,8 +88,8 @@ if ($Mode == 'Delete')
        {
                delete_tax_type($selected_id);
                display_notification(_('Selected tax type has been deleted'));
-               $Mode = 'RESET';
        }
+       $Mode = 'RESET';
 }
 
 if ($Mode == 'RESET')
@@ -110,7 +120,7 @@ while ($myrow = db_fetch($result))
        label_cell($myrow["purchasing_gl_code"] . "&nbsp;" . $myrow["PurchasingAccountName"]);
 
        edit_button_cell("Edit".$myrow["id"], _("Edit"));
-       edit_button_cell("Delete".$myrow["id"], _("Delete"));
+       delete_button_cell("Delete".$myrow["id"], _("Delete"));
 
        end_row();
 }