projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Clean up after Bugs 5510 and 5512.
[fa-stable.git]
/
reporting
/
rep101.php
diff --git
a/reporting/rep101.php
b/reporting/rep101.php
index 4b570d5ad5a92342526d93c6d1eae75573b5018b..fd87944f8631231ba43d783a99f3fc12be019b89 100644
(file)
--- a/
reporting/rep101.php
+++ b/
reporting/rep101.php
@@
-216,7
+216,7
@@
function print_customer_balances()
if ($show_balance) {
if ($trans['TotalAmount'] == 0) continue;
} else {
if ($show_balance) {
if ($trans['TotalAmount'] == 0) continue;
} else {
- if (floatcmp(
$trans['TotalAmount']
, $trans['Allocated']) == 0) continue;
+ if (floatcmp(
abs($trans['TotalAmount'])
, $trans['Allocated']) == 0) continue;
}
}
$rep->NewLine(1, 2);
}
}
$rep->NewLine(1, 2);
@@
-230,7
+230,7
@@
function print_customer_balances()
$trans['TotalAmount'] *= -1;
if ($trans['TotalAmount'] > 0.0)
{
$trans['TotalAmount'] *= -1;
if ($trans['TotalAmount'] > 0.0)
{
- $item[0] = round2(
abs($trans['TotalAmount'])
* $rate, $dec);
+ $item[0] = round2(
$trans['TotalAmount']
* $rate, $dec);
$rep->AmountCol(4, 5, $item[0], $dec);
$accumulate += $item[0];
$item[2] = round2($trans['Allocated'] * $rate, $dec);
$rep->AmountCol(4, 5, $item[0], $dec);
$accumulate += $item[0];
$item[2] = round2($trans['Allocated'] * $rate, $dec);