projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Better check for fixed assets.
[fa-stable.git]
/
reporting
/
rep101.php
diff --git
a/reporting/rep101.php
b/reporting/rep101.php
index 634b2d69bf78c1f1c926c3ba50a416671be05c01..7b8e8f20ecdc70029112e3d0008f88f42c686310 100644
(file)
--- a/
reporting/rep101.php
+++ b/
reporting/rep101.php
@@
-203,7
+203,13
@@
function print_customer_balances()
}
while ($trans = db_fetch($res))
{
}
while ($trans = db_fetch($res))
{
- if ($no_zeros && floatcmp($trans['TotalAmount'], $trans['Allocated']) == 0) continue;
+ if ($no_zeros) {
+ if ($show_balance) {
+ if ($trans['TotalAmount'] == 0) continue;
+ } else {
+ if (floatcmp($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']);