[freeside-commits] branch FREESIDE_2_3_BRANCH updated. a98df209df595eef7e7b5407e7c39e4e1983a9bb
Ivan
ivan at 420.am
Wed May 8 13:38:41 PDT 2013
The branch, FREESIDE_2_3_BRANCH has been updated
via a98df209df595eef7e7b5407e7c39e4e1983a9bb (commit)
from 4a400bc024ceaefa9c09443b5a41bf2c1a33530e (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit a98df209df595eef7e7b5407e7c39e4e1983a9bb
Author: Ivan Kohler <ivan at freeside.biz>
Date: Wed May 8 13:38:40 2013 -0700
fix cch update removal of PLUS4/ZIP and TXMATRIX, RT#21687
diff --git a/FS/FS/cust_tax_location.pm b/FS/FS/cust_tax_location.pm
index aec9410..4293b2c 100644
--- a/FS/FS/cust_tax_location.pm
+++ b/FS/FS/cust_tax_location.pm
@@ -199,13 +199,15 @@ sub batch_import {
if (exists($hash->{actionflag}) && $hash->{actionflag} eq 'D') {
delete($hash->{actionflag});
- my $cust_tax_location = qsearchs('cust_tax_location', $hash);
+ my @cust_tax_location = qsearch('cust_tax_location', $hash);
return "Can't find cust_tax_location to delete: ".
join(" ", map { "$_ => ". $hash->{$_} } @fields)
- unless $cust_tax_location;
+ unless scalar(@cust_tax_location) || $param->{'delete_only'} ;
- my $error = $cust_tax_location->delete;
- return $error if $error;
+ foreach my $cust_tax_location (@cust_tax_location) {
+ my $error = $cust_tax_location->delete;
+ return $error if $error;
+ }
delete($hash->{$_}) foreach (keys %$hash);
}
-----------------------------------------------------------------------
Summary of changes:
FS/FS/cust_tax_location.pm | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
More information about the freeside-commits
mailing list