Enable this package flag to delay invoicing a customer
for a package change until their next normal bill date
$keep_dates = 0;
$hash{'last_bill'} = '';
$hash{'bill'} = '';
$keep_dates = 0;
$hash{'last_bill'} = '';
$hash{'bill'} = '';
+
+ # Optionally, carry over the next bill date from the changed cust_pkg
+ # so an invoice isn't generated until the customer's usual billing date
+ if ( $self->part_pkg->option('prorate_defer_change_bill', 1) ) {
+ $hash{bill} = $self->bill;
+ }
'the customer\'s next bill date',
'type' => 'checkbox',
},
'the customer\'s next bill date',
'type' => 'checkbox',
},
+ 'prorate_defer_change_bill' => {
+ 'name' => 'When synchronizing, defer bill for '.
+ 'package changes until the customer\'s '.
+ 'next bill date',
+ 'type' => 'checkbox',
+ },
'prorate_round_day' => {
'name' => 'When synchronizing, round the prorated '.
'period',
'prorate_round_day' => {
'name' => 'When synchronizing, round the prorated '.
'period',
},
'fieldorder' => [ qw( recur_temporality
start_1st
},
'fieldorder' => [ qw( recur_temporality
start_1st
- sync_bill_date prorate_defer_bill prorate_round_day
+ sync_bill_date prorate_defer_bill
+ prorate_defer_change_bill prorate_round_day
suspend_bill unsuspend_adjust_bill
bill_recur_on_cancel
bill_suspend_as_cancel
suspend_bill unsuspend_adjust_bill
bill_recur_on_cancel
bill_suspend_as_cancel