diff options
author | Alex Brelsfoard <alex@freeside.biz> | 2015-02-10 00:33:22 -0500 |
---|---|---|
committer | Alex Brelsfoard <alex@freeside.biz> | 2015-02-10 00:33:22 -0500 |
commit | 1d4ea4545c4a86a0664feb537f06aa5eb7f54c07 (patch) | |
tree | c8c99c8341c745ee381cab18636a74499d83494d /FS | |
parent | 832199a6010883fff76e0dc5fa913b391b0177d7 (diff) |
RT #31482 you can now change the tax class when modifying a one-time charge.
Diffstat (limited to 'FS')
-rw-r--r-- | FS/FS/cust_pkg.pm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/FS/FS/cust_pkg.pm b/FS/FS/cust_pkg.pm index 48cc187f2..b0cc2a3cd 100644 --- a/FS/FS/cust_pkg.pm +++ b/FS/FS/cust_pkg.pm @@ -2486,6 +2486,12 @@ 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? |