projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of ssh://git.freeside.biz/home/git/freeside
[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
..
49dda18
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">
+ topreload();
+</SCRIPT>
+</BODY></HTML>
%}
<%init>
%}
<%init>
@@
-15,8
+19,8
@@
my $invnum = $1;
my $cust_bill = qsearchs('cust_bill',{'invnum'=>$invnum});
my $cust_bill = qsearchs('cust_bill',{'invnum'=>$invnum});
-my $
custnum = $cust_bill->custnum;
-
-
my $error = $cust_bill->void( $cgi->param('reason')
);
+my $
error = $cust_bill->void( scalar($cgi->param('reason')),
+ scalar($cgi->param('reprocess_cdrs')),
+
);
</%init>
</%init>