+ } elsif ( defined $param->{'discount_left_recur'}{$discount->discountnum}
+ && $param->{'discount_left_recur'}{$discount->discountnum} > 0
+ ) {
+ # use up transferred remainder of discount from setup
+ $amount = $param->{'discount_left_recur'}{$discount->discountnum};
+ $param->{'discount_left_recur'}{$discount->discountnum} = 0;
+ $months = 1;
+ } elsif ( $discount->setup
+ && $discount->months == 1
+ && $discount->amount > 0
+ ) {
+ next;