projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
63827f5
)
fix applying a credit against an invoice which has had its tax config removed, RT...
author
Ivan Kohler
<ivan@freeside.biz>
Thu, 27 Feb 2014 03:16:18 +0000
(19:16 -0800)
committer
Ivan Kohler
<ivan@freeside.biz>
Thu, 27 Feb 2014 03:16:18 +0000
(19:16 -0800)
FS/FS/cust_credit_bill_pkg.pm
patch
|
blob
|
history
diff --git
a/FS/FS/cust_credit_bill_pkg.pm
b/FS/FS/cust_credit_bill_pkg.pm
index
657a889
..
7b723f9
100644
(file)
--- a/
FS/FS/cust_credit_bill_pkg.pm
+++ b/
FS/FS/cust_credit_bill_pkg.pm
@@
-171,11
+171,16
@@
sub insert {
'amount' => sprintf('%.2f', 0-$amount),
};
'amount' => sprintf('%.2f', 0-$amount),
};
- my $error = $cust_tax_exempt_pkg->insert;
- if ( $error ) {
- $dbh->rollback if $oldAutoCommit;
- return "error inserting cust_tax_exempt_pkg: $error";
+ if ( $cust_tax_exempt_pkg->cust_main_county ) {
+
+ my $error = $cust_tax_exempt_pkg->insert;
+ if ( $error ) {
+ $dbh->rollback if $oldAutoCommit;
+ return "error inserting cust_tax_exempt_pkg: $error";
+ }
+
}
}
+
} #foreach $exemption
}
} #foreach $exemption
}