Inserted Copyright Notice and fixed graphic items
[fa-stable.git] / admin / payment_terms.php
index 0bb78419a34634be4ee86e4d10027368317fb0c1..2b323d2775a62ea038a13491e39accfb0e82cb45 100644 (file)
@@ -1,5 +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 = 10;
 $path_to_root="..";
 include($path_to_root . "/includes/session.inc");
@@ -117,10 +126,10 @@ if ($Mode == 'Delete')
                        $sql="DELETE FROM ".TB_PREF."payment_terms WHERE terms_indicator='$selected_id'";
                        db_query($sql,"could not delete a payment terms");
                        display_notification(_('Selected payment terms have been deleted'));
-                       $Mode = 'RESET';
                }
        }
        //end if payment terms used in customer or supplier accounts
+       $Mode = 'RESET';
 }
 
 if ($Mode == 'RESET')
@@ -164,7 +173,7 @@ while ($myrow = db_fetch($result))
     label_cell($full_text);
     label_cell($after_text);
        edit_button_cell("Edit".$myrow["terms_indicator"], _("Edit"));
-       edit_button_cell("Delete".$myrow["terms_indicator"], _("Delete"));
+       delete_button_cell("Delete".$myrow["terms_indicator"], _("Delete"));
     end_row();