projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
A final fix for report Inventory Purchasing Report. With help from forum use chrison.
[fa-stable.git]
/
reporting
/
rep201.php
diff --git
a/reporting/rep201.php
b/reporting/rep201.php
index 79cd401f1dbeab815384eb73017412762447e841..4004c8a219c335bb279198fb0ff014c5e721bd08 100644
(file)
--- a/
reporting/rep201.php
+++ b/
reporting/rep201.php
@@
-175,7
+175,7
@@
function print_supplier_balances()
$rep->Line($rep->row + 4);
while ($trans=db_fetch($res))
{
$rep->Line($rep->row + 4);
while ($trans=db_fetch($res))
{
- if ($no_zeros &&
$trans['TotalAmount'] == 0 && $trans['Allocated']
== 0) continue;
+ if ($no_zeros &&
floatcmp(abs($trans['TotalAmount']), $trans['Allocated'])
== 0) continue;
$rep->NewLine(1, 2);
$rep->TextCol(0, 1, $systypes_array[$trans['type']]);
$rep->TextCol(1, 2, $trans['reference']);
$rep->NewLine(1, 2);
$rep->TextCol(0, 1, $systypes_array[$trans['type']]);
$rep->TextCol(1, 2, $trans['reference']);