diff options
author | Christopher Burger <burgerc@freeside.biz> | 2017-12-11 17:20:56 -0500 |
---|---|---|
committer | Christopher Burger <burgerc@freeside.biz> | 2017-12-11 17:20:56 -0500 |
commit | 59a65c70ed02c784557dde37392752689efed668 (patch) | |
tree | 0e0e5bef3e41bd480f7d9a88cf5ff5c57ad53138 | |
parent | 2902ae7bd3efe461d03953c028892298e3789997 (diff) |
RT# 78681 - fixed error where setup fee was being charged when prorate_defer_bill was set even though wave setup fee was selected.
-rw-r--r-- | FS/FS/part_pkg/prorate_Mixin.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/FS/FS/part_pkg/prorate_Mixin.pm b/FS/FS/part_pkg/prorate_Mixin.pm index a89b54d2c..1a7b1efc0 100644 --- a/FS/FS/part_pkg/prorate_Mixin.pm +++ b/FS/FS/part_pkg/prorate_Mixin.pm @@ -108,7 +108,8 @@ sub calc_prorate { ) { #warn "[calc_prorate] #".$cust_pkg->pkgnum.": running deferred setup\n"; - $param->{'setup_fee'} = $self->calc_setup($cust_pkg, $$sdate, $details); + $param->{'setup_fee'} = $self->calc_setup($cust_pkg, $$sdate, $details) + unless $cust_pkg->{'Hash'}->{'waive_setup'}; $mnow = $cust_pkg->setup; $add_period = 1; } |