From 7ee00cdb687b916b6d7be1468c7acb07a36a12f8 Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Fri, 18 Jun 2010 21:34:01 +0000 Subject: [PATCH] Removed constraint on day values in Payment Terms --- CHANGELOG.txt | 4 ++++ admin/payment_terms.php | 13 +++++++------ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 7333a92..9a2d81e 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -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 diff --git a/admin/payment_terms.php b/admin/payment_terms.php index ffdc116..8200241 100644 --- a/admin/payment_terms.php +++ b/admin/payment_terms.php @@ -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; -- 2.30.2