@@ -, +, @@ --- Koha/Account/Line.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) --- a/Koha/Account/Line.pm +++ a/Koha/Account/Line.pm @@ -284,7 +284,7 @@ sub void { Koha::Account::Offset->new( { debit_id => $void->id, - type => 'VOID', + type => 'CREATE', amount => $self->amount * -1 } )->store(); @@ -416,7 +416,7 @@ sub cancel { my $cancellation_offset = Koha::Account::Offset->new( { credit_id => $cancellation->accountlines_id, - type => 'CANCELLATION', + type => 'CREATE', amount => $self->amount } )->store(); @@ -540,7 +540,7 @@ sub reduce { my $reduction_offset = Koha::Account::Offset->new( { credit_id => $reduction->accountlines_id, - type => uc( $params->{reduction_type} ), + type => 'CREATE', amount => $params->{amount} } )->store(); @@ -773,7 +773,7 @@ sub payout { my $payout_offset = Koha::Account::Offset->new( { debit_id => $payout->accountlines_id, - type => 'PAYOUT', + type => 'CREATE', amount => $amount } )->store(); --