projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changed get_unic_dec to get_qty_dec for eliminating return -1.
[fa-stable.git]
/
sales
/
customer_delivery.php
diff --git
a/sales/customer_delivery.php
b/sales/customer_delivery.php
index e58eb4a719c1cbe2859384a66f909c393f3a9327..c160d6d8725979197778f45b0590ab29f7dba620 100644
(file)
--- a/
sales/customer_delivery.php
+++ b/
sales/customer_delivery.php
@@
-256,9
+256,7
@@
function check_quantities()
} else {
$min = 0;
// Fixing floating point problem in PHP.
} else {
$min = 0;
// Fixing floating point problem in PHP.
- $dec = get_unit_dec($itm->stock_id);
- $dec = $dec == -1 ? user_qty_dec() : $dec;
- $max = round2($itm->quantity - $itm->qty_done, $dec);
+ $max = round2($itm->quantity - $itm->qty_done, get_qty_dec($itm->stock_id));
}
if (check_num('Line'.$line, $min, $max)) {
}
if (check_num('Line'.$line, $min, $max)) {