Bugzilla – Attachment 98610 Details for
Bug 14898
Add 'Save and pay' button to use after adding a manual invoice
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14898: Add button at manual invoice to redirect to pay tab
Bug-14898-Add-button-at-manual-invoice-to-redirect.patch (text/plain), 2.43 KB, created by
David Nind
on 2020-02-08 06:37:37 UTC
(
hide
)
Description:
Bug 14898: Add button at manual invoice to redirect to pay tab
Filename:
MIME Type:
Creator:
David Nind
Created:
2020-02-08 06:37:37 UTC
Size:
2.43 KB
patch
obsolete
>From 2cb6d5e820f95e6d53e350e763fe42d882bb09ff Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Wed, 5 Feb 2020 15:07:23 +0100 >Subject: [PATCH] Bug 14898: Add button at manual invoice to redirect to pay > tab > >Test plan: >1. Create manual invoice for any patron and click on "Save", you should > be redirected to Account tab >2. Create manual invoice for any patron and click on "Save and pay", you > should be redirected to Account tab > >Signed-off-by: David Nind <david@davidnind.com> >--- > .../intranet-tmpl/prog/en/modules/members/maninvoice.tt | 4 +++- > members/maninvoice.pl | 13 ++++++++++--- > 2 files changed, 13 insertions(+), 4 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/maninvoice.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/maninvoice.tt >index 9713cfc27f..864429e425 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/maninvoice.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/maninvoice.tt >@@ -61,7 +61,9 @@ > </ol> > </fieldset> > <fieldset class="action"> >- <input type="submit" name="add" value="Save" /> <a class="cancel" href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% patron.borrowernumber | html %]">Cancel</a> >+ <button type="submit" name="add" value="save">Save</button> >+ <button type="submit" name="add" value="save and pay">Save and pay</button> >+ <a class="cancel" href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% patron.borrowernumber | html %]">Cancel</a> > </fieldset> > </form> > >diff --git a/members/maninvoice.pl b/members/maninvoice.pl >index f271d1f791..c39a323cae 100755 >--- a/members/maninvoice.pl >+++ b/members/maninvoice.pl >@@ -105,9 +105,16 @@ if ($add) { > $patron->account->reconcile_balance; > } > >- print $input->redirect( >- "/cgi-bin/koha/members/boraccount.pl?borrowernumber=$borrowernumber" >- ); >+ if ($add eq 'save and pay') { >+ print $input->redirect( >+ "/cgi-bin/koha/members/pay.pl?borrowernumber=$borrowernumber" >+ ); >+ } else { >+ print $input->redirect( >+ "/cgi-bin/koha/members/boraccount.pl?borrowernumber=$borrowernumber" >+ ); >+ } >+ > exit; > } > } >-- >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 14898
:
42872
|
42896
|
98488
|
98610
|
99295