summaryrefslogtreecommitdiff
path: root/httemplate/misc
diff options
context:
space:
mode:
authorJonathan Prykop <jonathan@freeside.biz>2015-10-23 20:46:01 -0500
committerJonathan Prykop <jonathan@freeside.biz>2015-10-28 23:22:23 -0500
commitd793ab5b5050e29654183b6d0a645f934bb87df0 (patch)
treef88ab9ddb4a5407a33f762b8010ac736cc1bff8f /httemplate/misc
parent249f7d6cf45f8df5679ac36fc28dd8376e695496 (diff)
RT#38533: One click re-send refund,payment receipt, invoice [v3 merge]
Diffstat (limited to 'httemplate/misc')
-rw-r--r--httemplate/misc/send-invoice.cgi10
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") %>