|
Lines 283-289
sub void {
Link Here
|
| 283 |
Koha::Account::Offset->new( |
283 |
Koha::Account::Offset->new( |
| 284 |
{ |
284 |
{ |
| 285 |
debit_id => $void->id, |
285 |
debit_id => $void->id, |
| 286 |
type => 'VOID', |
286 |
type => 'CREATE', |
| 287 |
amount => $self->amount * -1 |
287 |
amount => $self->amount * -1 |
| 288 |
} |
288 |
} |
| 289 |
)->store(); |
289 |
)->store(); |
|
Lines 415-421
sub cancel {
Link Here
|
| 415 |
my $cancellation_offset = Koha::Account::Offset->new( |
415 |
my $cancellation_offset = Koha::Account::Offset->new( |
| 416 |
{ |
416 |
{ |
| 417 |
credit_id => $cancellation->accountlines_id, |
417 |
credit_id => $cancellation->accountlines_id, |
| 418 |
type => 'CANCELLATION', |
418 |
type => 'CREATE', |
| 419 |
amount => $self->amount |
419 |
amount => $self->amount |
| 420 |
} |
420 |
} |
| 421 |
)->store(); |
421 |
)->store(); |
|
Lines 539-545
sub reduce {
Link Here
|
| 539 |
my $reduction_offset = Koha::Account::Offset->new( |
539 |
my $reduction_offset = Koha::Account::Offset->new( |
| 540 |
{ |
540 |
{ |
| 541 |
credit_id => $reduction->accountlines_id, |
541 |
credit_id => $reduction->accountlines_id, |
| 542 |
type => uc( $params->{reduction_type} ), |
542 |
type => 'CREATE', |
| 543 |
amount => $params->{amount} |
543 |
amount => $params->{amount} |
| 544 |
} |
544 |
} |
| 545 |
)->store(); |
545 |
)->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 |
- |
|
|