[freeside-commits] freeside/FS/FS cust_tax_location.pm, 1.7, 1.8 part_pkg_taxrate.pm, 1.6, 1.7 tax_class.pm, 1.5, 1.6

Jeff Finucane,420,, jeff at wavetail.420.am
Sun Feb 15 22:02:12 PST 2009


Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv29114

Modified Files:
	cust_tax_location.pm part_pkg_taxrate.pm tax_class.pm 
Log Message:
allow completely empty updates (again?)

Index: tax_class.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/tax_class.pm,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- tax_class.pm	3 Dec 2008 01:42:25 -0000	1.5
+++ tax_class.pm	16 Feb 2009 06:02:09 -0000	1.6
@@ -368,7 +368,7 @@
 
   $dbh->commit or die $dbh->errstr if $oldAutoCommit;
 
-  return "Empty File!" unless $imported;
+  return "Empty File!" unless ($imported || $format eq 'cch-update');
 
   ''; #no error
 

Index: part_pkg_taxrate.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_pkg_taxrate.pm,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- part_pkg_taxrate.pm	3 Dec 2008 01:42:25 -0000	1.6
+++ part_pkg_taxrate.pm	16 Feb 2009 06:02:09 -0000	1.7
@@ -384,7 +384,7 @@
 
   $dbh->commit or die $dbh->errstr if $oldAutoCommit;
 
-  return "Empty file!" unless $imported;
+  return "Empty file!" unless ( $imported || $format eq 'cch-update' );
 
   ''; #no error
 

Index: cust_tax_location.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_tax_location.pm,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- cust_tax_location.pm	16 Feb 2009 05:59:44 -0000	1.7
+++ cust_tax_location.pm	16 Feb 2009 06:02:09 -0000	1.8
@@ -314,7 +314,7 @@
 
   $dbh->commit or die $dbh->errstr if $oldAutoCommit;
 
-  return "Empty file!" unless $imported;
+  return "Empty file!" unless ( $imported || $format =~ /^cch-update/ );
 
   ''; #no error
 



More information about the freeside-commits mailing list