No limit on 30 days in Payment terms if end of month.
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Mon, 31 May 2010 14:17:38 +0000 (14:17 +0000)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Mon, 31 May 2010 14:17:38 +0000 (14:17 +0000)
CHANGELOG.txt
admin/payment_terms.php

index 94934e4df3a49f51207a90759797ff216f61f5cf..9c12707a54700a6cb9005be18bff269813fb6425 100644 (file)
@@ -19,6 +19,10 @@ Legend:
 ! -> Note
 $ -> Affected files
 
 ! -> Note
 $ -> Affected files
 
+31-May-2010 Joe Hunt
+# No limit on 30 days in Payment terms if end of month.
+$ /admin/payment_terms.php
+
 30-May-2010 Joe Hunt
 ! Global variabel, $def_print_destination, config.php can be set to 0 or 1
 $ config.default.php
 30-May-2010 Joe Hunt
 ! Global variabel, $def_print_destination, config.php can be set to 0 or 1
 $ config.default.php
index 1e0f8c652bb8529c0e1605db8b1789692e378ac0..ffdc116824b8c1a1b09a87dc8c0bf13d1c634798 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');
                $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;
        elseif ($_POST['DayNumber'] > 500 && check_value('DaysOrFoll')) 
        {
                $inpug_error = 1;