From 31d2645771ce9bdc499679d1742a11a61b0d00fd Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Sat, 3 Apr 2010 08:09:38 +0000 Subject: [PATCH] [0000219] Incorrect behaviors regarding Payment forms --- CHANGELOG.txt | 9 +++++++-- purchasing/supplier_payment.php | 3 ++- sales/customer_payments.php | 3 ++- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 6719df1..8ec8d57 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -19,14 +19,19 @@ Legend: ! -> Note $ -> Affected files +03-Apr-2010 Joe Hunt/Chaitanya +# [0000219] Incorrect behaviors regarding Payment forms +$ /purchasing/supplier_payment.php + /sales/customer_payments.php + 20-Mar-2010 Joe Hunt/RodW # [0000215} Wrong text in deliver to and not printing it. $ /reporting/includes/doctext.inc /reporting/includes/doctext2.inc - /reporting/header2.inc + /reporting/includes/header2.inc 15-Mar-2010 Janusz Dobrowolski -# Missing check for customer/bramch selected ([0000216]) +# Missing check for customer/branch selected ([0000216]) $ /sales/sales_order_entry.php /sales/customer_payment.php # Missing check for supplier selected ([0000217]) diff --git a/purchasing/supplier_payment.php b/purchasing/supplier_payment.php index ddc1bf4..265fe53 100644 --- a/purchasing/supplier_payment.php +++ b/purchasing/supplier_payment.php @@ -140,7 +140,8 @@ function check_inputs() return false; } - if (input_num('amount') - input_num('discount') <= 0) + //if (input_num('amount') - input_num('discount') <= 0) + if (input_num('amount') <= 0) { display_error(_("The total of the amount and the discount is zero or negative. Please enter positive values.")); set_focus('amount'); diff --git a/sales/customer_payments.php b/sales/customer_payments.php index 939799f..ae46441 100644 --- a/sales/customer_payments.php +++ b/sales/customer_payments.php @@ -152,7 +152,8 @@ function can_process() return false; } - if ((input_num('amount') - input_num('discount') <= 0)) { + //if ((input_num('amount') - input_num('discount') <= 0)) { + if (input_num('amount') <= 0) { display_error(_("The balance of the amount and discout is zero or negative. Please enter valid amounts.")); set_focus('discount'); return false; -- 2.30.2