Lines 638-646
sub apply {
Link Here
|
638 |
)->store(); |
638 |
)->store(); |
639 |
|
639 |
|
640 |
$available_credit -= $amount_to_cancel; |
640 |
$available_credit -= $amount_to_cancel; |
641 |
|
641 |
if ( $self->credit_type_code ne 'REFUND' ) { |
642 |
$self->amountoutstanding( $available_credit * -1 )->store; |
642 |
$self->amountoutstanding( $available_credit * -1 )->store; |
643 |
$debit->amountoutstanding( $owed - $amount_to_cancel )->store; |
643 |
$debit->amountoutstanding( $owed - $amount_to_cancel )->store; |
|
|
644 |
} |
644 |
|
645 |
|
645 |
# Attempt to renew the item associated with this debit if |
646 |
# Attempt to renew the item associated with this debit if |
646 |
# appropriate |
647 |
# appropriate |
647 |
- |
|
|