projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix card-types config in backend (one-off payments), RT#40125, RT#39861
[freeside.git]
/
httemplate
/
misc
/
process
/
void-cust_bill.html
diff --git
a/httemplate/misc/process/void-cust_bill.html
b/httemplate/misc/process/void-cust_bill.html
index
f2930ec
..
7773b0b
100755
(executable)
--- a/
httemplate/misc/process/void-cust_bill.html
+++ b/
httemplate/misc/process/void-cust_bill.html
@@
-1,8
+1,12
@@
%if ( $error ) {
% $cgi->param('error', $error);
%if ( $error ) {
% $cgi->param('error', $error);
-<% $cgi->redirect(popurl(
1
). "void-cust_bill.html?". $cgi->query_string ) %>
+<% $cgi->redirect(popurl(
2
). "void-cust_bill.html?". $cgi->query_string ) %>
%} else {
%} else {
-<% $cgi->redirect(popurl(3). "view/cust_main.cgi?". $custnum) %>
+<& /elements/header-popup.html, 'Invoice voided' &>
+<SCRIPT TYPE="text/javascript">
+ window.top.location.reload();
+</SCRIPT>
+</BODY></HTML>
%}
<%init>
%}
<%init>
@@
-17,6
+21,6
@@
my $cust_bill = qsearchs('cust_bill',{'invnum'=>$invnum});
my $custnum = $cust_bill->custnum;
my $custnum = $cust_bill->custnum;
-my $error = $cust_bill->void(
$cgi->param('reason'
) );
+my $error = $cust_bill->void(
scalar($cgi->param('reason')
) );
</%init>
</%init>