projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Four minor bug fixes
[fa-stable.git]
/
reporting
/
rep209.php
diff --git
a/reporting/rep209.php
b/reporting/rep209.php
index 1f9f5697b921c225c476efccef340934318157d8..c2c3c0fe58ca988492bcae63f57f59527c4e81ad 100644
(file)
--- a/
reporting/rep209.php
+++ b/
reporting/rep209.php
@@
-5,7
+5,7
@@
$page_security = 2;
// $ Revision: 2.0 $
// Creator: Joe Hunt
// date_: 2005-05-19
// $ Revision: 2.0 $
// Creator: Joe Hunt
// date_: 2005-05-19
-// Title: P
rint Invoice
s
+// Title: P
urchase Order
s
// ----------------------------------------------------------------
$path_to_root="../";
// ----------------------------------------------------------------
$path_to_root="../";
@@
-61,7
+61,7
@@
function print_po()
$from = 0;
if ($to == null)
$to = 0;
$from = 0;
if ($to == null)
$to = 0;
- $dec =user_price_dec();
+ $dec =
user_price_dec();
$cols = array(4, 60, 225, 300, 325, 385, 450, 515);
$cols = array(4, 60, 225, 300, 325, 385, 450, 515);
@@
-103,7
+103,8
@@
function print_po()
$SubTotal = 0;
while ($myrow2=db_fetch($result))
{
$SubTotal = 0;
while ($myrow2=db_fetch($result))
{
- $Net = ($myrow2["unit_price"] * $myrow2["quantity_ordered"]);
+ $Net = round(($myrow2["unit_price"] * $myrow2["quantity_ordered"]),
+ user_price_dec());
$SubTotal += $Net;
$DisplayPrice = number_format2($myrow2["unit_price"],$dec);
$DisplayQty = number_format2($myrow2["quantity_ordered"],user_qty_dec());
$SubTotal += $Net;
$DisplayPrice = number_format2($myrow2["unit_price"],$dec);
$DisplayQty = number_format2($myrow2["quantity_ordered"],user_qty_dec());