$ -> Affected files
15-Oct-2010 Joe Hunt
-# Customer Credit Note didn't update units when shifting items.
+# [0000263] Customer Credit Note didn't update units when shifting items.
$ /sales/includes/ui/sales_credit_ui.inc
+! [0000265] Changed Report List of Journal Entries to include balances.
+$ /reporting/rep702.php
14-Oct-2010 Joe Hunt
# Check for empty class ID and better test for type/account id/name.
$trans = get_gl_transactions($from, $to, -1, null, 0, 0, $systype);
$typeno = $type = 0;
+ $debit = $credit = 0.0;
while ($myrow=db_fetch($trans))
{
if ($type != $myrow['type'] || $typeno != $myrow['type_no'])
{
if ($typeno != 0)
{
- $rep->Line($rep->row + 4);
+ $rep->Line($rep->row += 6);
+ $rep->NewLine();
+ $rep->AmountCol(4, 5, $debit, $dec);
+ $rep->AmountCol(5, 6, abs($credit), $dec);
+ $debit = $credit = 0.0;
+ $rep->Line($rep->row -= 4);
$rep->NewLine();
}
$typeno = $myrow['type_no'];
$dim_str .= "/".$dim_str2;
$rep->TextCol(2, 3, $dim_str);
$rep->TextCol(3, 4, $myrow['memo_']);
- if ($myrow['amount'] > 0.0)
+ if ($myrow['amount'] > 0.0) {
+ $debit += $myrow['amount'];
$rep->AmountCol(4, 5, abs($myrow['amount']), $dec);
- else
+ }
+ else {
+ $credit += $myrow['amount'];
$rep->AmountCol(5, 6, abs($myrow['amount']), $dec);
+ }
$rep->NewLine(1, 2);
}
$rep->Line($rep->row + 4);