From 51766e3b6bb6188c121d3829614738a927c23a2c Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Sun, 4 Feb 2018 17:51:52 -0800 Subject: option to reprocess CDRs when voiding an invoice, RT#79001 --- httemplate/misc/process/void-cust_bill.html | 6 +++--- httemplate/misc/void-cust_bill.html | 8 ++++++++ 2 files changed, 11 insertions(+), 3 deletions(-) (limited to 'httemplate/misc') 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')), + ); 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 @@ +% if ( $cust_bill->has_call_details ) { + <& /elements/tr-checkbox.html, + label => 'Reprocess CDRs', + field => 'reprocess_cdrs', + value => '1', + &> +% } +
-- cgit v1.2.1