|
From: <ex...@us...> - 2016-11-30 05:11:54
|
Revision: 7689
http://sourceforge.net/p/web-erp/reponame/7689
Author: exsonqu
Date: 2016-11-30 05:11:51 +0000 (Wed, 30 Nov 2016)
Log Message:
-----------
30/11/16 Exson: Fixed the bug that write off option not work without freight cost input in Credit_Invoice.php.
Modified Paths:
--------------
trunk/Credit_Invoice.php
Modified: trunk/Credit_Invoice.php
===================================================================
--- trunk/Credit_Invoice.php 2016-11-27 08:20:37 UTC (rev 7688)
+++ trunk/Credit_Invoice.php 2016-11-30 05:11:51 UTC (rev 7689)
@@ -228,7 +228,7 @@
}
}
-if(isset($_POST['ChargeFreightCost'])) {
+if(isset($_POST['ChargeFreightCost']) AND abs($_POST['ChargeFreightCost'])>0) {
$_SESSION['CreditItems' . $identifier]->FreightCost = filter_number_format($_POST['ChargeFreightCost']);
if (($TotalQtyCredited + abs($_POST['ChargeFreightCost']))<=0) {
prnMsg(_('There are no item quantity or freight charge input'),'error');
|