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 773-779
sub payout {
Link Here
|
773 |
my $payout_offset = Koha::Account::Offset->new( |
773 |
my $payout_offset = Koha::Account::Offset->new( |
774 |
{ |
774 |
{ |
775 |
debit_id => $payout->accountlines_id, |
775 |
debit_id => $payout->accountlines_id, |
776 |
type => 'PAYOUT', |
776 |
type => 'CREATE', |
777 |
amount => $amount |
777 |
amount => $amount |
778 |
} |
778 |
} |
779 |
)->store(); |
779 |
)->store(); |
780 |
- |
|
|