diff options
author | Jonathan Prykop <jonathan@freeside.biz> | 2015-10-23 20:46:01 -0500 |
---|---|---|
committer | Jonathan Prykop <jonathan@freeside.biz> | 2015-10-28 22:20:45 -0500 |
commit | 2f879f8bba22877f5e32490c6f27ff8ff9c3fbd5 (patch) | |
tree | d2d79759c13852ef6fea6ff878fb4d1bccd52161 /httemplate/misc | |
parent | b1e8f7b5c082434415e36d3f247fbebca2a79f46 (diff) |
RT#38533: One click re-send refund,payment receipt, invoice
Diffstat (limited to 'httemplate/misc')
-rw-r--r-- | httemplate/misc/send-invoice.cgi | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/httemplate/misc/send-invoice.cgi b/httemplate/misc/send-invoice.cgi index dd9c3ade2..435875348 100644 --- a/httemplate/misc/send-invoice.cgi +++ b/httemplate/misc/send-invoice.cgi @@ -1,4 +1,12 @@ -% if ( $error ) { +% if ($cgi->param('popup')) { +% my $title = $error ? 'Error sending invoice email' : 'Invoice email sent'; +<% include('/elements/header-popup.html', $title ) %> +<DIV STYLE="text-align: center;"> +<SPAN STYLE="color: red; font-weight: bold;"><% $error %></SPAN><BR> +<BUTTON TYPE="button" onClick="parent.cClick();">Close</BUTTON> +</DIV> +<% include('/elements/footer.html') %> +% } elsif ( $error ) { % errorpage($error); % } else { <% $cgi->redirect("${p}view/cust_main.cgi?$custnum") %> |