%info = (
'name' => 'First partial month full charge, then flat-rate (selectable billing day)',
'shortname' => 'Subscription (Nth of month, full charge for first)',
+ 'inherit_fields' => [ 'usage_Mixin', 'global_Mixin' ],
'fields' => {
- 'setup_fee' => { 'name' => 'Setup fee for this package',
- 'default' => 0,
- },
- 'recur_fee' => { 'name' => 'Recurring fee for this package',
- 'default' => 0,
- },
- 'cutoff_day' => { 'name' => 'billing day',
+ 'cutoff_day' => { 'name' => 'Billing day',
'default' => 1,
},
'seconds' => { 'name' => 'Time limit for this package',
'default' => '',
},
},
- 'fieldorder' => [ 'setup_fee', 'recur_fee', 'cutoff_day', 'seconds',
+ 'fieldorder' => [ 'cutoff_day', 'seconds',
'upbytes', 'downbytes', 'totalbytes',
'recharge_amount', 'recharge_seconds', 'recharge_upbytes',
'recharge_downbytes', 'recharge_totalbytes',
$$sdate = timelocal(0,0,0,$cutoff_day,$mon,$year);
- my $br = $self->base_recur($cust_pkg);
+ my $br = $self->base_recur($cust_pkg, $sdate);
my $discount = $self->calc_discount($cust_pkg, $sdate, $details, $param);