Removed constraint on day values in Payment Terms
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Fri, 18 Jun 2010 21:34:01 +0000 (21:34 +0000)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Fri, 18 Jun 2010 21:34:01 +0000 (21:34 +0000)
CHANGELOG.txt
admin/payment_terms.php

index 7333a928608efce8992ecc59044b9b6a19692b13..9a2d81eaa368532fc6bb0a12f9ae728f9969d3b7 100644 (file)
@@ -19,6 +19,10 @@ Legend:
 ! -> Note
 $ -> Affected files
 
+18-Jun-2010 Joe Hunt
+- Removed constraint on day values in Payment Terms
+$ /admin/payment_terms.php
+
 18-Jun-2010 Janusz Dobrowolski
 # Small bug on final credit note screen redirection
 $ /sales/customer_credit_invoice.php
index ffdc116824b8c1a1b09a87dc8c0bf13d1c634798..8200241a8c56ddc4af9d67f66790aa9f73e87a93 100644 (file)
@@ -43,12 +43,13 @@ if ($Mode=='ADD_ITEM' || $Mode=='UPDATE_ITEM')
        //      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;
-               display_error( _("When the check box is not checked to indicate that the term expects a number of days after which accounts are due, the number entered should be less than 500 days."));
-               set_focus('DayNumber');
-       }
+       // No constrain on day values, Joe Hunt 2010-06-18.
+       //elseif ($_POST['DayNumber'] > 500 && check_value('DaysOrFoll')) 
+       //{
+       //      $inpug_error = 1;
+       //      display_error( _("When the check box is not checked to indicate that the term expects a number of days after which accounts are due, the number entered should be less than 500 days."));
+       //      set_focus('DayNumber');
+       //}
 
        if ($_POST['DayNumber'] == '')
                $_POST['DayNumber'] = 0;