Lines 356-362
sub cancel {
Link Here
|
356 |
my $cancellation_offset = Koha::Account::Offset->new( |
356 |
my $cancellation_offset = Koha::Account::Offset->new( |
357 |
{ |
357 |
{ |
358 |
credit_id => $cancellation->accountlines_id, |
358 |
credit_id => $cancellation->accountlines_id, |
359 |
type => 'CANCELLATION', |
359 |
type => 'CREATE', |
360 |
amount => $self->amount |
360 |
amount => $self->amount |
361 |
} |
361 |
} |
362 |
)->store(); |
362 |
)->store(); |
Lines 480-486
sub reduce {
Link Here
|
480 |
my $reduction_offset = Koha::Account::Offset->new( |
480 |
my $reduction_offset = Koha::Account::Offset->new( |
481 |
{ |
481 |
{ |
482 |
credit_id => $reduction->accountlines_id, |
482 |
credit_id => $reduction->accountlines_id, |
483 |
type => uc( $params->{reduction_type} ), |
483 |
type => 'CREATE', |
484 |
amount => $params->{amount} |
484 |
amount => $params->{amount} |
485 |
} |
485 |
} |
486 |
)->store(); |
486 |
)->store(); |
Lines 703-709
sub payout {
Link Here
|
703 |
my $payout_offset = Koha::Account::Offset->new( |
703 |
my $payout_offset = Koha::Account::Offset->new( |
704 |
{ |
704 |
{ |
705 |
debit_id => $payout->accountlines_id, |
705 |
debit_id => $payout->accountlines_id, |
706 |
type => 'PAYOUT', |
706 |
type => 'CREATE', |
707 |
amount => $amount |
707 |
amount => $amount |
708 |
} |
708 |
} |
709 |
)->store(); |
709 |
)->store(); |
710 |
- |
|
|