Bugzilla – Attachment 85795 Details for
Bug 21747
Update C4::Overdues::UpdateFine to use Koha::Account->add_debit and Koha::Account::Line->adjust
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21747: Insert fine_increase and fine_decrease for new installs
Bug-21747-Insert-fineincrease-and-finedecrease-for.patch (text/plain), 1.40 KB, created by
Jonathan Druart
on 2019-02-27 19:06:09 UTC
(
hide
)
Description:
Bug 21747: Insert fine_increase and fine_decrease for new installs
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2019-02-27 19:06:09 UTC
Size:
1.40 KB
patch
obsolete
>From 332992709a1893f66481b665ad4397bc0de5dc63 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 27 Feb 2019 16:05:20 -0300 >Subject: [PATCH] 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@bugs.koha-community.org> >--- > installer/data/mysql/account_offset_types.sql | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/installer/data/mysql/account_offset_types.sql b/installer/data/mysql/account_offset_types.sql >index 083e56ca21..ad79879327 100644 >--- a/installer/data/mysql/account_offset_types.sql >+++ b/installer/data/mysql/account_offset_types.sql >@@ -9,7 +9,8 @@ INSERT INTO account_offset_types ( type ) VALUES > ('Forgiven'), > ('Dropbox'), > ('Rental Fee'), >-('Fine Update'), >+('fine_increase'), >+('fine_decrease'), > ('Fine'), > ('Void Payment'), > ('Credit Applied'); >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 21747
:
81890
|
83130
|
83234
|
83252
|
84725
|
84726
|
84807
|
84808
|
84810
|
84811
|
84816
|
84817
|
85179
|
85180
| 85795