Bugzilla – Attachment 83064 Details for
Bug 21915
Add a way to automatically reconcile balance for patrons
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21915: Call reconcile_balance on manual invoice creation
Bug-21915-Call-reconcilebalance-on-manual-invoice-.patch (text/plain), 1.46 KB, created by
Martin Renvoize (ashimema)
on 2018-12-12 08:32:31 UTC
(
hide
)
Description:
Bug 21915: Call reconcile_balance on manual invoice creation
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2018-12-12 08:32:31 UTC
Size:
1.46 KB
patch
obsolete
>From c501838c4681e164f14f82c3a8a8432b500b1d84 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Fri, 30 Nov 2018 09:45:19 -0300 >Subject: [PATCH] Bug 21915: Call reconcile_balance on manual invoice creation > >This patch makes the manual invoice creation step call >Koha::Account::reconcile_balance when the AccountAutoReconcile syspref >is set. > >To test: >- Apply the patch >- Have some outstanding credit >- Create a manual invoice >=> SUCCESS: Same behaviour as always >- Set AccountAutoReconcile >- Create a manual invoice >=> SUCCESS: Reconcillation happened >- Sign off :-D > >Sponsored-by: ByWater Solutions >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > members/maninvoice.pl | 5 +++++ > 1 file changed, 5 insertions(+) > >diff --git a/members/maninvoice.pl b/members/maninvoice.pl >index db7a447ffa..e101d07fe2 100755 >--- a/members/maninvoice.pl >+++ b/members/maninvoice.pl >@@ -87,6 +87,11 @@ if ($add){ > $template->param( 'ERROR' => $error ); > output_html_with_http_headers $input, $cookie, $template->output; > } else { >+ >+ if ( C4::Context->preference('AccountAutoReconcile') ) { >+ $patron->account->reconcile_balance; >+ } >+ > print $input->redirect("/cgi-bin/koha/members/boraccount.pl?borrowernumber=$borrowernumber"); > exit; > } >-- >2.19.2
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 21915
:
82762
|
82763
|
82764
|
82765
|
82781
|
82782
|
82784
|
82789
|
82790
|
82791
|
82792
|
82793
|
82803
|
82804
|
82805
|
82806
|
82807
|
82863
|
82864
|
82865
|
82866
|
82867
|
83053
|
83062
|
83063
| 83064 |
83065
|
83066