diff options
author | Ivan Kohler <ivan@freeside.biz> | 2018-02-04 17:51:52 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2018-02-04 17:51:52 -0800 |
commit | 51766e3b6bb6188c121d3829614738a927c23a2c (patch) | |
tree | 9bc8b687f7601185237d2255698428552668d79a /httemplate | |
parent | f8ec2cc082e07ee59135e586640b9df57b510daf (diff) |
option to reprocess CDRs when voiding an invoice, RT#79001
Diffstat (limited to 'httemplate')
-rwxr-xr-x | httemplate/misc/process/void-cust_bill.html | 6 | ||||
-rw-r--r-- | httemplate/misc/void-cust_bill.html | 8 |
2 files changed, 11 insertions, 3 deletions
diff --git a/httemplate/misc/process/void-cust_bill.html b/httemplate/misc/process/void-cust_bill.html index 7773b0ba9..01982eb08 100755 --- a/httemplate/misc/process/void-cust_bill.html +++ b/httemplate/misc/process/void-cust_bill.html @@ -19,8 +19,8 @@ my $invnum = $1; my $cust_bill = qsearchs('cust_bill',{'invnum'=>$invnum}); -my $custnum = $cust_bill->custnum; - -my $error = $cust_bill->void( scalar($cgi->param('reason')) ); +my $error = $cust_bill->void( scalar($cgi->param('reason')), + scalar($cgi->param('reprocess_cdrs')), + ); </%init> diff --git a/httemplate/misc/void-cust_bill.html b/httemplate/misc/void-cust_bill.html index 1608fd051..5d517bed9 100644 --- a/httemplate/misc/void-cust_bill.html +++ b/httemplate/misc/void-cust_bill.html @@ -17,6 +17,14 @@ <TD><INPUT TYPE="text" NAME="reason" VALUE="<% $cgi->param('reason') |h %>"></TD> </TR> +% if ( $cust_bill->has_call_details ) { + <& /elements/tr-checkbox.html, + label => 'Reprocess CDRs', + field => 'reprocess_cdrs', + value => '1', + &> +% } + </TABLE> <BR> |