summaryrefslogtreecommitdiff
path: root/FS/FS/TaxEngine.pm
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2015-05-26 11:31:27 -0700
committerMark Wells <mark@freeside.biz>2015-05-26 11:31:48 -0700
commitaf62b675c3f1b8f5996561de7e6b28020479a7d6 (patch)
treeae975bc49fa45416a4e681e07de2a7ae0e7949b9 /FS/FS/TaxEngine.pm
parent1da8bc3a1229d6e8fae3fde5ad70b297176c285b (diff)
throw an exception if Avalara is misconfigured, and clean up exception handling for tax engines in general, #25718, #31639
Diffstat (limited to 'FS/FS/TaxEngine.pm')
-rw-r--r--FS/FS/TaxEngine.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/FS/FS/TaxEngine.pm b/FS/FS/TaxEngine.pm
index 70f1f92..ac30eb1 100644
--- a/FS/FS/TaxEngine.pm
+++ b/FS/FS/TaxEngine.pm
@@ -95,6 +95,11 @@ L<FS::cust_bill_pkg> objects to add to the invoice. The base implementation
is to call L</make_taxlines> to produce a list of "raw" tax line items,
then L</consolidate_taxlines> to combine those with the same itemdesc.
+If this fails, it will throw an exception. (Accordingly it should not trap
+exceptions from internal methods that it calls, except to translate error
+messages into a more meaningful form.) If it succeeds, it MUST return an
+arrayref (even if the arrayref is empty).
+
=cut
sub calculate_taxes {