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

(-)a/Koha/Account/Line.pm (-3 / +2 lines)
Lines 417-423 sub cancel { Link Here
417
                {
417
                {
418
                    credit_id => $cancellation->accountlines_id,
418
                    credit_id => $cancellation->accountlines_id,
419
                    type      => 'CREATE',
419
                    type      => 'CREATE',
420
                    amount    => $self->amount
420
                    amount    => 0 - $self->amount
421
                }
421
                }
422
            )->store();
422
            )->store();
423
423
Lines 536-542 sub reduce { Link Here
536
                {
536
                {
537
                    credit_id => $reduction->accountlines_id,
537
                    credit_id => $reduction->accountlines_id,
538
                    type      => 'CREATE',
538
                    type      => 'CREATE',
539
                    amount    => $params->{amount}
539
                    amount    => 0 - $params->{amount}
540
                }
540
                }
541
            )->store();
541
            )->store();
542
542
543
- 

Return to bug 22435