projects
/
fa-stable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
22cecf4
)
Rerun of Invoice not converting from DN due to float bug. Fixed.
author
Joe
<joe.hunt.consulting@gmail.com>
Sun, 17 Jul 2022 10:06:14 +0000
(12:06 +0200)
committer
Joe
<joe.hunt.consulting@gmail.com>
Sun, 17 Jul 2022 10:06:14 +0000
(12:06 +0200)
sales/customer_invoice.php
patch
|
blob
|
history
diff --git
a/sales/customer_invoice.php
b/sales/customer_invoice.php
index f6791c179f1c98bbc5af47fdec8bd9da1339e162..7b05aa2de784e518dad8dae46acb29fcd17b57ea 100644
(file)
--- a/
sales/customer_invoice.php
+++ b/
sales/customer_invoice.php
@@
-205,10
+205,10
@@
function check_quantities()
} else {
global $path_to_root;
$min = 0;
} else {
global $path_to_root;
$min = 0;
- include_once($path_to_root . "/inventory/includes/db/items_units_db.inc");
+ // Fixing floating point problem in PHP.
+ include_once($path_to_root . "/inventory/includes/db/items_units_db.inc");
$max = round2($itm->quantity - $itm->qty_done, get_unit_dec($itm->stock_id));
}
$max = round2($itm->quantity - $itm->qty_done, get_unit_dec($itm->stock_id));
}
- dump($max);
if (check_num('Line'.$line_no, $min, $max)) {
$_SESSION['Items']->line_items[$line_no]->qty_dispatched =
input_num('Line'.$line_no);
if (check_num('Line'.$line_no, $min, $max)) {
$_SESSION['Items']->line_items[$line_no]->qty_dispatched =
input_num('Line'.$line_no);