summaryrefslogtreecommitdiff
path: root/httemplate/misc
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2018-02-04 17:47:48 -0800
committerIvan Kohler <ivan@freeside.biz>2018-02-04 17:47:48 -0800
commitb4fa2aa2f73721c6f2c467c73b25e20f59cb04ea (patch)
tree07016147b588925bc5bc4ae6962b4da408f07bc4 /httemplate/misc
parent4e7954f0f0703afc22b649ce38aea4e63db81daa (diff)
option to reprocess CDRs when voiding an invoice, RT#79001
Diffstat (limited to 'httemplate/misc')
-rwxr-xr-xhttemplate/misc/process/void-cust_bill.html6
-rwxr-xr-xhttemplate/misc/void-cust_bill.html8
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 32a2fc591..49dda185e 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 e4e4705d7..e5fbdc6d5 100755
--- a/httemplate/misc/void-cust_bill.html
+++ b/httemplate/misc/void-cust_bill.html
@@ -18,6 +18,14 @@
'cgi' => $cgi
&>
+% if ( $cust_bill->has_call_details ) {
+ <& /elements/tr-checkbox.html,
+ label => 'Reprocess CDRs',
+ field => 'reprocess_cdrs',
+ value => '1',
+ &>
+% }
+
</TABLE>
<BR>