Further progress on payment entries. There is an outstanding charges grid, but it doesn't have amounts due to the way I designed the ledger_entries element. I'll do a bit of rework on that next.

git-svn-id: file:///svn-source/pmgr/branches/ledger_transactions_20090605@163 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2009-06-18 00:49:40 +00:00
parent ba218fbeeb
commit a2ae522b2d
7 changed files with 255 additions and 48 deletions

View File

@@ -122,7 +122,7 @@ class Customer extends AppModel {
$left = &$unreconciled[$type];
$right = &$unrec[$type];
$left['entries'] = array_merge($left['entries'], $right['entries']);
$left['entry'] = array_merge($left['entry'], $right['entry']);
$left['balance'] += $right['balance'];
}
}
@@ -159,7 +159,7 @@ class Customer extends AppModel {
$left = &$reconciled[$type];
$right = &$rec[$type];
$left['entries'] = array_merge($left['entries'], $right['entries']);
$left['entry'] = array_merge($left['entry'], $right['entry']);
$left['balance'] += $right['balance'];
$left['applied'] += $right['applied'];
$left['unapplied'] = $right['unapplied'];