Left a syntax error on the last checkin :-/
git-svn-id: file:///svn-source/pmgr/branches/yafr_20090716/site@461 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
@@ -435,13 +435,13 @@ OPTION 2
|
||||
$credit['balance'] -= $payment_amount;
|
||||
|
||||
$this->pr(20, compact('credit'),
|
||||
(($credit['balance'] > 0 ? 'Utilized' : 'Exhausted')
|
||||
' ' . (count($credits) ? 'Credit' : 'Receipt')));
|
||||
($credit['balance'] > 0 ? 'Utilized' : 'Exhausted') .
|
||||
(count($credits) ? ' Credit' : ' Receipt'));
|
||||
|
||||
if ($credit['balance'] < 0)
|
||||
die("HOW DID WE END UP WITH NEGATIVE SURPLUS BALANCE?");
|
||||
|
||||
// If we've exhaused the credit, get it out of the
|
||||
// If we've exhausted the credit, get it out of the
|
||||
// available credit pool (but keep track of it for later).
|
||||
if ($credit['balance'] <= 0 && count($credits))
|
||||
$used_credits[] = array_shift($credits);
|
||||
|
||||
Reference in New Issue
Block a user