From: Julian Maurice Date: Wed, 5 Feb 2020 14:07:23 +0000 (+0100) Subject: Bug 14898: Add button at manual invoice to redirect to pay tab X-Git-Tag: v20.05.00~1495 X-Git-Url: http://git.equinoxoli.org/?p=koha.git;a=commitdiff_plain;h=24154f2ec91eed4d9f28f5008d74013de2b48196 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 Signed-off-by: Katrin Fischer Signed-off-by: Martin Renvoize --- 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 9713cfc..864429e 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 @@
- Cancel + + + Cancel
diff --git a/members/maninvoice.pl b/members/maninvoice.pl index f271d1f..c39a323 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; } }