[Koha-bugs] [Bug 21849] Two useless Koha::Account::Offset->new calls need attention

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Nov 16 13:04:48 CET 2018


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21849

--- Comment #1 from Kyle M Hall <kyle at bywatersolutions.com> ---
Created attachment 82397
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=82397&action=edit
Bug 21849: Two useless Koha::Account::Offset->new calls need attention

Came across those calls in bug 20598 in _FixOverduesOnReturn

        Koha::Account::Offset->new(
            {
                debit_id => $accountline->id,
                type => 'Forgiven',
                amount => $amountoutstanding * -1,
            }
        );

This does nothing if you don't store data.

Test Plan:
1) Apply this patch
2) Set up 2 items with overdue fines
3) Return one with dropbox mode
4) Note the dropbox account offset is created
5) Return one with full fine forgiveness
6) Note the forgiven account offset is created

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list