Merged changes from main CVS (up to 2.2.10)
[fa-stable.git] / admin / payment_terms.php
index a6aa77e77011570f350c40aa6a67594f3bb954a6..e58a9fded3bf811a622c8a11887524673229e7a4 100644 (file)
@@ -36,13 +36,13 @@ if ($Mode=='ADD_ITEM' || $Mode=='UPDATE_ITEM')
                $inpug_error = 1;
                display_error( _("The Terms description must be entered."));
                set_focus('terms');
-       } 
-       elseif ($_POST['DayNumber'] > 30 && !check_value('DaysOrFoll')) 
-       {
-               $inpug_error = 1;
-               display_error( _("When the check box to indicate a day in the following month is the due date, the due date cannot be a day after the 30th. A number between 1 and 30 is expected."));
-               set_focus('DayNumber');
-       } 
+       } // there should be no limits by 30 here if they want longer payment terms. Joe Hunt 2010-05-31
+       //elseif ($_POST['DayNumber'] > 30 && !check_value('DaysOrFoll')) 
+       //{
+       //      $inpug_error = 1;
+       //      display_error( _("When the check box to indicate a day in the following month is the due date, the due date cannot be a day after the 30th. A number between 1 and 30 is expected."));
+       //      set_focus('DayNumber');
+       //
        elseif ($_POST['DayNumber'] > 500 && check_value('DaysOrFoll')) 
        {
                $inpug_error = 1;
@@ -107,7 +107,7 @@ if ($Mode == 'RESET')
 $result = get_payment_terms_all(check_value('show_inactive'));
 
 start_form();
-start_table($table_style);
+start_table(TABLESTYLE);
 $th = array(_("Description"), _("Following Month On"), _("Due After (Days)"), "", "");
 inactive_control_column($th);
 table_header($th);
@@ -151,7 +151,7 @@ end_table(1);
 
 //-------------------------------------------------------------------------------------------------
 
-start_table($table_style2);
+start_table(TABLESTYLE2);
 
 $day_in_following_month = $days_before_due = 0;
 if ($selected_id != -1)