X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2FTaxEngine.pm;h=e92bf768c7a836217070e583bb291bb393bff4bf;hp=45601429a0a39dd6ad53cd3dfd83d8fa62975010;hb=5372897f367498972c96f5494e142e6e11b29eb8;hpb=817c1ce0e1cbcfd1f684222c66f46dd13b2d6dd7 diff --git a/FS/FS/TaxEngine.pm b/FS/FS/TaxEngine.pm index 45601429a..e92bf768c 100644 --- a/FS/FS/TaxEngine.pm +++ b/FS/FS/TaxEngine.pm @@ -124,6 +124,8 @@ sub calculate_taxes { if ( !@raw_taxlines ) { return; } elsif ( !ref $raw_taxlines[0] ) { # error message + #this isn't actually handled by our caller... better for make_taxlines to + # die, that'll be caught be the eval around us in cust_main/Billing.pm return $raw_taxlines[0]; } @@ -296,7 +298,10 @@ a string on failure. sub add_taxproduct { my $class = shift; - "$class does not allow manually adding taxproducts"; + #my $classname = ref($class); + #my $vendor = (split('::',$classname))[2]; + my $vendor = ref($class) || $class; + "$vendor does not allow manually adding taxproducts"; } =item transfer_batch (batch-style only)