X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fcust_credit_bill_pkg.pm;h=71b674c6cd17fc7f2b4b2282cfebaac41056ac25;hb=b0888dc8399fc4e8d75c874c00d01366eacf5596;hp=1f741b289216f1b6532516d903a9e0a75354bec9;hpb=e9e0cf0989259b94d9758eceff448666a2e5a5cc;p=freeside.git diff --git a/FS/FS/cust_credit_bill_pkg.pm b/FS/FS/cust_credit_bill_pkg.pm index 1f741b289..71b674c6c 100644 --- a/FS/FS/cust_credit_bill_pkg.pm +++ b/FS/FS/cust_credit_bill_pkg.pm @@ -37,7 +37,7 @@ The following fields are currently supported: =item creditbillpkgnum - primary key -=item creditbillnum - Credit application to the overall invoice (see L) +=item creditbillnum - Credit application to the overall invoice (see L) =item billpkgnum - Line item to which credit is applied (see L) @@ -112,7 +112,7 @@ sub insert { if ($taxable_per_month >= 0) { #panic if its subzero? my $groupby = join(',', - qw(taxnum year month exempt_monthly exempt_cust + qw(taxnum taxtype year month exempt_monthly exempt_cust exempt_cust_taxname exempt_setup exempt_recur)); my $sum = 'SUM(amount)'; my @exemptions = qsearch( @@ -140,7 +140,7 @@ sub insert { # (above the remaining taxable charge amount). We'll "de-exempt" # that much, or the amount of the new credit, whichever is smaller. if ($amount > $credit_per_month) { - "cust_bill_pkg ". $self->billpkgnum. " Reducing.\n"; + #warn "cust_bill_pkg ". $self->billpkgnum. " Reducing.\n"; $amount = $credit_per_month; } } elsif ( $exemption->exempt_setup or $exemption->exempt_recur ) {