Bugzilla – Attachment 56773 Details for
Bug 16912
Koha::Patrons - Move AddEnrolmentFeeIfNeeded to add_enrolment_fee_if_needed
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16912: Update patron category enrolment fees
Bug-16912-Update-patron-category-enrolment-fees.patch (text/plain), 1.51 KB, created by
Jonathan Druart
on 2016-10-24 13:32:31 UTC
(
hide
)
Description:
Bug 16912: Update patron category enrolment fees
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2016-10-24 13:32:31 UTC
Size:
1.51 KB
patch
obsolete
>From 623bc1f479e220313f1c40c7ed3d87ba42727c19 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 24 Aug 2016 09:13:07 +0100 >Subject: [PATCH] Bug 16912: Update patron category enrolment fees > >Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com> > >Signed-off-by: Nick Clemens <nick@bywatersolutions.com> >--- > t/db_dependent/Koha/Patrons.t | 7 ++++--- > 1 file changed, 4 insertions(+), 3 deletions(-) > >diff --git a/t/db_dependent/Koha/Patrons.t b/t/db_dependent/Koha/Patrons.t >index 27c9407..229788c 100644 >--- a/t/db_dependent/Koha/Patrons.t >+++ b/t/db_dependent/Koha/Patrons.t >@@ -258,9 +258,10 @@ subtest 'add_enrolment_fee_if_needed' => sub { > my $enrolmentfee_J = 10; > my $enrolmentfee_YA = 20; > >- $builder->build( { source => 'Category', value => { categorycode => 'K', enrolmentfee => $enrolmentfee_K } } ); >- $builder->build( { source => 'Category', value => { categorycode => 'J', enrolmentfee => $enrolmentfee_J } } ); >- $builder->build( { source => 'Category', value => { categorycode => 'YA', enrolmentfee => $enrolmentfee_YA } } ); >+ my $dbh = C4::Context->dbh; >+ $dbh->do(q|UPDATE categories set enrolmentfee=? where categorycode=?|, undef, $enrolmentfee_K, 'K'); >+ $dbh->do(q|UPDATE categories set enrolmentfee=? where categorycode=?|, undef, $enrolmentfee_J, 'J'); >+ $dbh->do(q|UPDATE categories set enrolmentfee=? where categorycode=?|, undef, $enrolmentfee_YA, 'YA'); > > my %borrower_data = ( > firstname => 'my firstname', >-- >2.1.4
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 16912
:
53342
|
53343
|
53519
|
53520
|
54798
|
54804
|
54836
|
54837
|
54838
|
56493
|
56494
|
56495
|
56526
|
56527
|
56528
|
56771
|
56772
| 56773