[Koha-bugs] [Bug 24474] Lost items that are checked out are always returned, even when attempting to renew them
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Sat Feb 8 10:35:06 CET 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24474
David Nind <david at davidnind.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |david at davidnind.com
--- Comment #28 from David Nind <david at davidnind.com> ---
For whatever reason I can't seem to get the 'onpayment' option to show up for
MarkLostItemsAsReturned. (Applied patch, ran database update, restart_all).
For the tests I get this fail:
root at 50d5e409ced0:koha(bz24474)$ prove t/db_dependent/Circulation.t
t/db_dependent/Circulation.t .. 30/47
# Failed test 'Should have a single 10 days overdue fine and lost
charge'
# at t/db_dependent/Circulation.t line 2344.
# got: '27'
# expected: '17'
# Looks like you failed 1 test of 3.
# Failed test 'bug 22877'
# at t/db_dependent/Circulation.t line 2347.
# Looks like you failed 1 test of 5.
t/db_dependent/Circulation.t .. 31/47
# Failed test 'AddReturn | is_overdue'
# at t/db_dependent/Circulation.t line 2347.
DBD::mysql::st execute failed: Cannot add or update a child row: a foreign key
constraint fails (`koha_kohadev`.`account_offsets`, CONSTRAINT
`account_offsets_ibfk_t` FOREIGN KEY (`type`) REFERENCES `account_offset_types`
(`type`) ON DELETE CASCADE ON UPDATE CASCADE) [for Statement "INSERT INTO
`account_offsets` ( `amount`, `credit_id`, `type`) VALUES ( ?, ?, ? )" with
ParamValues: 0=-99, 1='25', 2='Lost Item Found'] at
/usr/share/perl5/DBIx/Class/Storage/DBI.pm line 1836.
DBD::mysql::st execute failed: Cannot add or update a child row: a foreign key
constraint fails (`koha_kohadev`.`account_offsets`, CONSTRAINT
`account_offsets_ibfk_t` FOREIGN KEY (`type`) REFERENCES `account_offset_types`
(`type`) ON DELETE CASCADE ON UPDATE CASCADE) [for Statement "INSERT INTO
`account_offsets` ( `amount`, `credit_id`, `type`) VALUES ( ?, ?, ? )" with
ParamValues: 0=-99, 1='28', 2='Lost Item Found'] at
/usr/share/perl5/DBIx/Class/Storage/DBI.pm line 1836.
DBD::mysql::st execute failed: Cannot add or update a child row: a foreign key
constraint fails (`koha_kohadev`.`account_offsets`, CONSTRAINT
`account_offsets_ibfk_t` FOREIGN KEY (`type`) REFERENCES `account_offset_types`
(`type`) ON DELETE CASCADE ON UPDATE CASCADE) [for Statement "INSERT INTO
`account_offsets` ( `amount`, `credit_id`, `type`) VALUES ( ?, ?, ? )" with
ParamValues: 0=-74, 1='33', 2='Lost Item Found'] at
/usr/share/perl5/DBIx/Class/Storage/DBI.pm line 1836.
DBD::mysql::st execute failed: Cannot add or update a child row: a foreign key
constraint fails (`koha_kohadev`.`account_offsets`, CONSTRAINT
`account_offsets_ibfk_t` FOREIGN KEY (`type`) REFERENCES `account_offset_types`
(`type`) ON DELETE CASCADE ON UPDATE CASCADE) [for Statement "INSERT INTO
`account_offsets` ( `amount`, `credit_id`, `type`) VALUES ( ?, ?, ? )" with
ParamValues: 0=-100, 1='37', 2='Lost Item Found'] at
/usr/share/perl5/DBIx/Class/Storage/DBI.pm line 1836.
t/db_dependent/Circulation.t .. 45/47 # Looks like you planned 2 tests but
ran 1.
t/db_dependent/Circulation.t .. 47/47
# Failed test 'Do not return on renewal (LOST charge)'
# at t/db_dependent/Circulation.t line 3689.
# Looks like you failed 2 tests of 47.
t/db_dependent/Circulation.t .. Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/47 subtests
Test Summary Report
-------------------
t/db_dependent/Circulation.t (Wstat: 512 Tests: 47 Failed: 2)
Failed tests: 31, 47
Non-zero exit status: 2
Files=1, Tests=47, 29 wallclock secs ( 0.09 usr 0.00 sys + 23.87 cusr 2.77
csys = 26.73 CPU)
Result: FAIL
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list