Bugzilla – Attachment 56528 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
Nick Clemens (kidclamp)
on 2016-10-14 13:12:26 UTC
(
hide
)
Description:
Bug 16912: Update patron category enrolment fees
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2016-10-14 13:12:26 UTC
Size:
1.51 KB
patch
obsolete
>From f4e0ebc2e51a4879d102fdb6b320ee9ab28b584b 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 899a1d6..79aaf37 100644 >--- a/t/db_dependent/Koha/Patrons.t >+++ b/t/db_dependent/Koha/Patrons.t >@@ -215,9 +215,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