Added some starter code to figure out how we handle refunds. This is NOT working, just a snapshot of progress.

git-svn-id: file:///svn-source/pmgr/branches/invoice_receipt_20090629@348 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2009-07-15 18:37:51 +00:00
parent fff6eaeeca
commit fbb751d054
2 changed files with 127 additions and 0 deletions

View File

@@ -421,6 +421,25 @@ class CustomersController extends AppController {
}
/**************************************************************************
**************************************************************************
**************************************************************************
* action: refund
* - Refunds customer charges
*/
function refund() {
$entries = $this->Customer->LedgerEntry->find
('all', array
('contain' => false,
'conditions' => array('LedgerEntry.id' => array(199,200,201)),
));
pr(compact('entries'));
$this->Customer->LedgerEntry->refund($entries);
}
/**************************************************************************
**************************************************************************
**************************************************************************