View | Details | Raw Unified | Return to bug 22435
Collapse All | Expand All

(-)a/Koha/Account/Line.pm (-4 / +3 lines)
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
- 

Return to bug 22435