|
Lines 284-290
sub void {
Link Here
|
| 284 |
Koha::Account::Offset->new( |
284 |
Koha::Account::Offset->new( |
| 285 |
{ |
285 |
{ |
| 286 |
debit_id => $void->id, |
286 |
debit_id => $void->id, |
| 287 |
type => 'VOID', |
287 |
type => 'CREATE', |
| 288 |
amount => $self->amount * -1 |
288 |
amount => $self->amount * -1 |
| 289 |
} |
289 |
} |
| 290 |
)->store(); |
290 |
)->store(); |
|
Lines 416-422
sub cancel {
Link Here
|
| 416 |
my $cancellation_offset = Koha::Account::Offset->new( |
416 |
my $cancellation_offset = Koha::Account::Offset->new( |
| 417 |
{ |
417 |
{ |
| 418 |
credit_id => $cancellation->accountlines_id, |
418 |
credit_id => $cancellation->accountlines_id, |
| 419 |
type => 'CANCELLATION', |
419 |
type => 'CREATE', |
| 420 |
amount => $self->amount |
420 |
amount => $self->amount |
| 421 |
} |
421 |
} |
| 422 |
)->store(); |
422 |
)->store(); |
|
Lines 540-546
sub reduce {
Link Here
|
| 540 |
my $reduction_offset = Koha::Account::Offset->new( |
540 |
my $reduction_offset = Koha::Account::Offset->new( |
| 541 |
{ |
541 |
{ |
| 542 |
credit_id => $reduction->accountlines_id, |
542 |
credit_id => $reduction->accountlines_id, |
| 543 |
type => uc( $params->{reduction_type} ), |
543 |
type => 'CREATE', |
| 544 |
amount => $params->{amount} |
544 |
amount => $params->{amount} |
| 545 |
} |
545 |
} |
| 546 |
)->store(); |
546 |
)->store(); |
|
Lines 772-778
sub payout {
Link Here
|
| 772 |
my $payout_offset = Koha::Account::Offset->new( |
772 |
my $payout_offset = Koha::Account::Offset->new( |
| 773 |
{ |
773 |
{ |
| 774 |
debit_id => $payout->accountlines_id, |
774 |
debit_id => $payout->accountlines_id, |
| 775 |
type => 'PAYOUT', |
775 |
type => 'CREATE', |
| 776 |
amount => $amount |
776 |
amount => $amount |
| 777 |
} |
777 |
} |
| 778 |
)->store(); |
778 |
)->store(); |
| 779 |
- |
|
|