summaryrefslogtreecommitdiff
path: root/FS/FS/cust_pkg.pm
diff options
context:
space:
mode:
authorAlex Brelsfoard <alex@freeside.biz>2015-01-31 23:20:19 -0500
committerAlex Brelsfoard <alex@freeside.biz>2015-01-31 23:20:19 -0500
commit1ed6875a411a829607836f514b9aa0bb96620181 (patch)
tree744a8dc4535d21a23f6ac8d6d313e3c92fe070bd /FS/FS/cust_pkg.pm
parenta93e9be94c3a385e6b810457c0e06c889e6a6000 (diff)
RT #31482 you can now change the tax class when modifying a one-time charge.
Diffstat (limited to 'FS/FS/cust_pkg.pm')
-rw-r--r--FS/FS/cust_pkg.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/FS/FS/cust_pkg.pm b/FS/FS/cust_pkg.pm
index 0f0983b..3bd2107 100644
--- a/FS/FS/cust_pkg.pm
+++ b/FS/FS/cust_pkg.pm
@@ -2456,6 +2456,13 @@ sub modify_charge {
} # else simply ignore them; the UI shouldn't allow editing the fields
+
+ if ( exists($opt{'taxclass'})
+ and $part_pkg->taxclass ne $opt{'taxclass'}) {
+
+ $part_pkg->set('taxclass', $opt{'taxclass'});
+ }
+
my $error;
if ( $part_pkg->modified or $pkg_opt_modified ) {
# can we safely modify the package def?