summaryrefslogtreecommitdiff
path: root/httemplate/view/cust_main
diff options
context:
space:
mode:
authormark <mark>2010-07-06 12:18:11 +0000
committermark <mark>2010-07-06 12:18:11 +0000
commit4a5fcee4c1aa3ca07ac0a7921f9bd0e645ddc788 (patch)
tree7bd4b6a1ccfd7d79ef5c91fb54d59bad00bdd6a7 /httemplate/view/cust_main
parentf52e5491164eb407549716ebfd36fae6f692b1c1 (diff)
"Bill now" link uses job queue/progressbar, RT#8995
Diffstat (limited to 'httemplate/view/cust_main')
-rw-r--r--httemplate/view/cust_main/billing.html9
1 files changed, 8 insertions, 1 deletions
diff --git a/httemplate/view/cust_main/billing.html b/httemplate/view/cust_main/billing.html
index c8d0c47cd..6fe6c4939 100644
--- a/httemplate/view/cust_main/billing.html
+++ b/httemplate/view/cust_main/billing.html
@@ -1,3 +1,4 @@
+<FORM name="billnow">
Billing information
%# If we can't see the unencrypted card, then bill now is an exercise in
%# frustration (without some sort of job queue magic to send it to a secure
@@ -5,7 +6,13 @@ Billing information
%if ( $FS::CurrentUser::CurrentUser->access_right('Bill customer now')
% && ! $cust_main->is_encrypted($cust_main->payinfo)
% ) {
- (<A HREF="<% $p %>misc/bill.cgi?<% $cust_main->custnum %>">Bill now</A>)
+%# (<A HREF="<% $p %>misc/bill.cgi?<% $cust_main->custnum %>">Bill now</A>)
+ (<% include('/elements/bill.html',
+ custnum => $cust_main->custnum,
+ label => 'Bill now',
+ formname => 'billnow',
+ url => $p.'view/cust_main.cgi?'.$cust_main->custnum,
+ ) %>)
% }
<% ntable("#cccccc") %><TR><TD><% ntable("#cccccc",2) %>