Added a way to associate the meaningful part of NSF with the corresponding tender.
git-svn-id: file:///svn-source/pmgr/branches/yafr_20090716/site@456 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
@@ -586,20 +586,9 @@ class Transaction extends AppModel {
|
||||
}
|
||||
}
|
||||
|
||||
/* if (($transaction['type'] == 'INVOICE' || */
|
||||
/* $transaction['type'] == 'RECEIPT') && */
|
||||
/* !$ret['error']) { */
|
||||
/* $result = $this->StatementEntry->assignCredits */
|
||||
/* (array('link' => array('Customer'), */
|
||||
/* 'conditions' => array('Customer.id' => $transaction['customer_id'])), */
|
||||
/* ($transaction['type'] == 'RECEIPT' */
|
||||
/* ? $ret['transaction_id'] */
|
||||
/* : null)); */
|
||||
|
||||
/* $ret['assigned'] = $result; */
|
||||
/* if ($result['error']) */
|
||||
/* $ret['error'] = true; */
|
||||
/* } */
|
||||
// assigning credits could happen now, but the caller
|
||||
// will be adding an NSF fee, and credit assignment will
|
||||
// just happen again anyway. Return without assignment.
|
||||
|
||||
return $this->prReturn($ret);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user