[Koha-bugs] [Bug 25531] New: Patron may not be debarred if backdated return

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon May 18 17:48:18 CEST 2020


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

            Bug ID: 25531
           Summary: Patron may not be debarred if backdated return
 Change sponsored?: ---
           Product: Koha
           Version: unspecified
          Hardware: All
                OS: All
            Status: ASSIGNED
          Severity: major
          Priority: P5 - low
         Component: Circulation
          Assignee: jonathan.druart at bugs.koha-community.org
          Reporter: jonathan.druart at bugs.koha-community.org
        QA Contact: testopia at bugs.koha-community.org
                CC: gmcharlt at gmail.com, kyle.m.hall at gmail.com

This has been caught by a test failing randomly:

15:41:14 koha_1       |     #   Failed test 'AddReturn must have debarred the
patron'
15:41:14 koha_1       |     #   at t/db_dependent/Circulation.t line 88.
15:41:14 koha_1       |     #          got: ''
15:41:14 koha_1       |     #     expected: '1'
15:41:14 koha_1       |     # AddReturn returned message $VAR1 = {
15:41:14 koha_1       |     #           'WasReturned' => 1
15:41:14 koha_1       |     #         };
15:41:14 koha_1       | 
15:41:14 koha_1       |     #   Failed test 'Test at line 2282'
15:41:14 koha_1       |     #   at t/db_dependent/Circulation.t line 92.
15:41:14 koha_1       |     #          got: '0'
15:41:14 koha_1       |     #     expected: '1'
15:41:14 koha_1       | 
15:41:14 koha_1       |     #   Failed test 'Test at line 2282'
15:41:14 koha_1       |     #   at t/db_dependent/Circulation.t line 95.
15:41:14 koha_1       |     #          got: undef
15:41:14 koha_1       |     #     expected: '2020-06-01'
15:41:14 koha_1       |     # Looks like you failed 3 tests of 21.
15:41:14 koha_1       | 
15:41:14 koha_1       | #   Failed test 'AddReturn + suspension_chargeperiod'
15:41:14 koha_1       | #   at t/db_dependent/Circulation.t line 2291.
15:41:28 koha_1       | # Looks like you failed 1 test of 48.
15:41:28 koha_1       | [13:41:28] t/db_dependent/Circulation.t


To know if an issue is overdue, we compared it with today. But we should
compare it with the return date is provided

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


More information about the Koha-bugs mailing list