From: Mark Wells Date: Sun, 28 Feb 2016 03:24:04 +0000 (-0800) Subject: don't send nonstandard phone numbers to Suretax, #32043 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;ds=sidebyside;h=5e5506c2163ce976d20bfd95d8fc8eca13808cd3;p=freeside.git don't send nonstandard phone numbers to Suretax, #32043 --- diff --git a/FS/FS/TaxEngine/suretax.pm b/FS/FS/TaxEngine/suretax.pm index 2c418f926..e18b66866 100644 --- a/FS/FS/TaxEngine/suretax.pm +++ b/FS/FS/TaxEngine/suretax.pm @@ -216,9 +216,9 @@ sub build_item { my %hash = ( %base_item, 'LineNumber' => 'C' . $cdr->acctid, - 'OrigNumber' => $cdr->src, - 'TermNumber' => $cdr->dst, - 'BillToNumber' => $cdr->charged_party, + 'OrigNumber' => '', + 'TermNumber' => '', + 'BillToNumber' => '', 'TransDate' => $calldate, 'Revenue' => $cdr->rated_price, # 4 decimal places 'Units' => 0, # right? @@ -258,11 +258,13 @@ sub build_item { if !$taxproduct; my $tsr = $TSR_GENERAL; + # when billing on cancellation there are no units + my $units = $self->{cancel} ? 0 : $cust_bill_pkg->units; my %hash = ( %base_item, 'LineNumber' => 'R' . $billpkgnum, 'Revenue' => $recur_without_usage, # 4 decimal places - 'Units' => $cust_bill_pkg->units, + 'Units' => $units, 'TaxSitusRule' => $tsr, 'TransTypeCode' => $taxproduct, );