Added effective date to each NSF entry, and fixed the account bug with receipts/payments. There is still a bug/question on how to handle nsf credits. It would be nice to simply delete the credit, since the check bounced, but then the original transaction will not add up. Either we decide that it doesn't need to add up, figure out a different type for the credit, or add a void flag to each statement entry and just void out nsf items. Or instead of a void flag, have an nsf_statement_entry_id which will also tie the payment/credit to the nsf payment/credit.
git-svn-id: file:///svn-source/pmgr/branches/yafr_20090716@428 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
@@ -391,7 +391,7 @@ class Transaction extends AppModel {
|
||||
array_flip(array('customer_id', 'lease_id'))) +
|
||||
array_intersect_key($entry,
|
||||
array_flip(array('type', 'account_id', 'amount',
|
||||
'effective_date', 'through_date', 'due_date')));
|
||||
'effective_date', 'through_date', 'due_date')));
|
||||
$se['comment'] = $entry['statement_entry_comment'];
|
||||
}
|
||||
|
||||
@@ -406,7 +406,7 @@ class Transaction extends AppModel {
|
||||
|
||||
/* pr(array('Transaction::addTransaction' => */
|
||||
/* array('checkpoint' => 'Pre Transaction Save') */
|
||||
/* + compact('transaction'))); */
|
||||
/* + compact('transaction', 'data'))); */
|
||||
|
||||
// Save transaction to the database
|
||||
$this->create();
|
||||
@@ -521,6 +521,7 @@ class Transaction extends AppModel {
|
||||
$se =
|
||||
array_intersect_key($entry,
|
||||
array_flip(array('type', 'account_id', 'amount',
|
||||
'effective_date', 'through_date', 'due_date',
|
||||
'customer_id', 'lease_id',
|
||||
'charge_entry_id')));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user