summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2016-02-27 19:24:04 -0800
committerMark Wells <mark@freeside.biz>2016-02-27 20:00:38 -0800
commit3824fc8dc74f8ec088fc7af810f62ee85afac34c (patch)
treeef18ada5a0c024319b0e800f1a63de3da5644072
parentfd6aec2041579fbb5d790371c5e5e5152e3075ce (diff)
don't send nonstandard phone numbers to Suretax, #32043
-rw-r--r--FS/FS/TaxEngine/suretax.pm10
-rw-r--r--FS/FS/part_export/sipwise.pm4
2 files changed, 7 insertions, 7 deletions
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,
);
diff --git a/FS/FS/part_export/sipwise.pm b/FS/FS/part_export/sipwise.pm
index 5cbe89ce0..8fec01300 100644
--- a/FS/FS/part_export/sipwise.pm
+++ b/FS/FS/part_export/sipwise.pm
@@ -27,7 +27,7 @@ tie my %options, 'Tie::IxHash',
default => 'default',
},
'subscriber_profile_set' => {
- label => 'Subscriber profile set name',
+ label => 'Subscriber profile set name (optional)',
},
'reseller_id' => { label => 'Reseller ID' },
'ssl_no_verify' => { label => 'Skip SSL certificate validation',
@@ -63,8 +63,6 @@ our %info = (
will receive calls at this number.
</OL>
</P>
-<P>Export options:
-</P>
END
);