From ca2f12276eb88b2e71762c76974ae564f008b8c1 Mon Sep 17 00:00:00 2001 From: Christopher Burger Date: Tue, 2 Jan 2018 19:47:44 -0500 Subject: [PATCH] RT# 34134 - removed payment amount field from payment screen, added 3 payment options (pay full balance, pay specific invoice, pay another amount) which will prefill the payment amount field. --- httemplate/elements/tr-amount_fee.html | 4 +- httemplate/elements/tr-select-invoice.html | 25 ++++++++ httemplate/elements/tr-select-payment_options.html | 68 ++++++++++++++++++++++ httemplate/misc/payment.cgi | 3 +- 4 files changed, 97 insertions(+), 3 deletions(-) create mode 100644 httemplate/elements/tr-select-invoice.html create mode 100644 httemplate/elements/tr-select-payment_options.html diff --git a/httemplate/elements/tr-amount_fee.html b/httemplate/elements/tr-amount_fee.html index 12488521a..426957a80 100644 --- a/httemplate/elements/tr-amount_fee.html +++ b/httemplate/elements/tr-amount_fee.html @@ -1,4 +1,4 @@ - + <% mt('Payment amount') |h %> + + + + +<%init> + +my %opt = @_; + + diff --git a/httemplate/elements/tr-select-payment_options.html b/httemplate/elements/tr-select-payment_options.html new file mode 100644 index 000000000..5197c3706 --- /dev/null +++ b/httemplate/elements/tr-select-payment_options.html @@ -0,0 +1,68 @@ + + + + + + + <& /elements/tr-select-invoice.html, + %opt + &> + + <& /elements/tr-amount_fee.html, + %opt + &> + + + +<%init> + +my %opt = @_; + + \ No newline at end of file diff --git a/httemplate/misc/payment.cgi b/httemplate/misc/payment.cgi index 35f57e8d6..7bf1713ff 100644 --- a/httemplate/misc/payment.cgi +++ b/httemplate/misc/payment.cgi @@ -12,7 +12,8 @@
@@ -15,7 +15,7 @@ onKeyPress = "amount_changed(this)" % } > - + % if ( $fee ) { diff --git a/httemplate/elements/tr-select-invoice.html b/httemplate/elements/tr-select-invoice.html new file mode 100644 index 000000000..03625b659 --- /dev/null +++ b/httemplate/elements/tr-select-invoice.html @@ -0,0 +1,25 @@ + +
<% mt('Payment options') |h %> + +
- <& /elements/tr-amount_fee.html, + <& /elements/tr-select-payment_options.html, + 'custnum' => $cust_main->custnum, 'amount' => $amount, 'process-pkgpart' => scalar($conf->config('manual_process-pkgpart', $cust_main->agentnum)), -- 2.11.0