[Koha-bugs] [Bug 21747] Update C4::Overdues::UpdateFine to use Koha::Account->add_debit and Koha::Account::Line->adjust

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Feb 27 21:51:51 CET 2019


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

--- Comment #23 from Nick Clemens <nick at bywatersolutions.com> ---
(In reply to Jonathan Druart from comment #22)
> Created attachment 85795 [details] [review]
> Bug 21747: Insert fine_increase and fine_decrease for new installs
> 
> This fixes Circulation.t
> koha_1       | 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`, `debit_id`, `type`)
> VALUES ( ?, ?, ? )" with ParamValues: 0=1, 1='22', 2='fine_increase'] at
> /usr/share/perl5/DBIx/Class/Storage/DBI.pm line 1832.
> 
> Signed-off-by: Jonathan Druart <jonathan.druart at bugs.koha-community.org>

Follow up pushed to master

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


More information about the Koha-bugs mailing list