@ISA = qw(FS::part_pkg::flat);
%info = (
'name' => 'Base charge plus charge per-minute from the session monitor',
@ISA = qw(FS::part_pkg::flat);
%info = (
'name' => 'Base charge plus charge per-minute from the session monitor',
'unused_credit' => { 'name' => 'Credit the customer for the unused portion'.
' of service at cancellation',
'type' => 'checkbox',
'unused_credit' => { 'name' => 'Credit the customer for the unused portion'.
' of service at cancellation',
'type' => 'checkbox',
- 'fieldorder' => [ 'setup_fee', 'recur_flat', 'unused_credit', 'recur_included_min', 'recur_minly_charge' ],
+ 'fieldorder' => [ 'setup_fee', 'recur_fee', 'unused_credit', 'recur_included_min', 'recur_minly_charge' ],
- #'recur' => '\'my $min = $cust_pkg->seconds_since($cust_pkg->bill || 0) / 60 - \' + what.recur_included_min.value + \'; $min = 0 if $min < 0; \' + what.recur_flat.value + \' + \' + what.recur_minly_charge.value + \' * $min;\'',
+ #'recur' => '\'my $min = $cust_pkg->seconds_since($cust_pkg->bill || 0) / 60 - \' + what.recur_included_min.value + \'; $min = 0 if $min < 0; \' + what.recur_fee.value + \' + \' + what.recur_minly_charge.value + \' * $min;\'',
my( $self, $cust_pkg ) = @);
my $min = $cust_pkg->seconds_since($cust_pkg->bill || 0) / 60;
$min -= $self->option('recur_included_min');
$min = 0 if $min < 0;
my( $self, $cust_pkg ) = @);
my $min = $cust_pkg->seconds_since($cust_pkg->bill || 0) / 60;
$min -= $self->option('recur_included_min');
$min = 0 if $min < 0;
sub is_free_options {
qw( setup_fee recur_fee recur_minly_charge );
}
sub base_recur {
my($self, $cust_pkg) = @_;
sub is_free_options {
qw( setup_fee recur_fee recur_minly_charge );
}
sub base_recur {
my($self, $cust_pkg) = @_;