Moved the INTERNAL_ERROR calls to use the class function instead of the global one.
git-svn-id: file:///svn-source/pmgr/branches/yafr_20090716@561 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
@@ -129,7 +129,7 @@ class Transaction extends AppModel {
|
||||
$this->prEnter(compact('data', 'charge_id', 'customer_id', 'lease_id'));
|
||||
|
||||
if (count($data['Entry']) != 1)
|
||||
INTERNAL_ERROR("Should be one Entry for addWaiver");
|
||||
$this->INTERNAL_ERROR("Should be one Entry for addWaiver");
|
||||
|
||||
// Just make sure the disbursement(s) are marked as waivers
|
||||
// and that they go to cover the specific charge.
|
||||
@@ -156,7 +156,7 @@ class Transaction extends AppModel {
|
||||
$this->prEnter(compact('data', 'charge_id', 'customer_id', 'lease_id'));
|
||||
|
||||
if (count($data['Entry']) != 1)
|
||||
INTERNAL_ERROR("Should be one Entry for addReversal");
|
||||
$this->INTERNAL_ERROR("Should be one Entry for addReversal");
|
||||
|
||||
// Just make sure the disbursement(s) are marked as reversals
|
||||
// and that they go to cover the specific charge.
|
||||
@@ -184,7 +184,7 @@ class Transaction extends AppModel {
|
||||
$this->prEnter(compact('data', 'charge_id', 'customer_id', 'lease_id'));
|
||||
|
||||
if (count($data['Entry']) != 1)
|
||||
INTERNAL_ERROR("Should be one Entry for addWriteOff");
|
||||
$this->INTERNAL_ERROR("Should be one Entry for addWriteOff");
|
||||
|
||||
// Just make sure the disbursement(s) are marked as write offs,
|
||||
// and that the write-off account is used.
|
||||
@@ -838,7 +838,7 @@ class Transaction extends AppModel {
|
||||
* - Update any cached or calculated fields
|
||||
*/
|
||||
function update($id) {
|
||||
INTERNAL_ERROR("Transaction::update not yet implemented");
|
||||
$this->INTERNAL_ERROR("Transaction::update not yet implemented");
|
||||
|
||||
$result = $this->find
|
||||
('first',
|
||||
|
||||
Reference in New Issue
Block a user