[freeside-commits] branch master updated. b62f98268b17471c7b195d7d193b33c4a6915892

Ivan ivan at 420.am
Sun Dec 9 10:30:47 PST 2012


The branch, master has been updated
       via  b62f98268b17471c7b195d7d193b33c4a6915892 (commit)
      from  786beb09ecbf02c572ca01c61353e163f0637dbd (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 b62f98268b17471c7b195d7d193b33c4a6915892
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Sun Dec 9 10:30:44 2012 -0800

    create credits by selecting line items, RT#18676

diff --git a/FS/FS/cust_main_county.pm b/FS/FS/cust_main_county.pm
index 143f62e..87c1ca7 100644
--- a/FS/FS/cust_main_county.pm
+++ b/FS/FS/cust_main_county.pm
@@ -472,8 +472,11 @@ sub taxline {
 
     $_->taxnum($self->taxnum) foreach @new_exemptions;
 
-    if ( $cust_bill_pkg->billpkgnum ) {
-      die "tried to calculate tax exemptions on a previously billed line item\n";
+    #if ( $cust_bill_pkg->billpkgnum ) {
+
+      #no, need to do this to e.g. calculate tax credit amounts
+      #die "tried to calculate tax exemptions on a previously billed line item\n";
+
       # this is unnecessary
 #      foreach my $cust_tax_exempt_pkg (@new_exemptions) {
 #        my $error = $cust_tax_exempt_pkg->insert;
@@ -482,7 +485,7 @@ sub taxline {
 #          return "can't insert cust_tax_exempt_pkg: $error";
 #        }
 #      }
-    }
+    #}
 
     # attach them to the line item
     push @{ $cust_bill_pkg->cust_tax_exempt_pkg }, @new_exemptions;

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/cust_main_county.pm |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)




More information about the freeside-commits mailing list