projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add granularity to single_price CDR rating, RT#5495
[freeside.git]
/
FS
/
FS
/
part_pkg
/
sesmon_minute.pm
diff --git
a/FS/FS/part_pkg/sesmon_minute.pm
b/FS/FS/part_pkg/sesmon_minute.pm
index
39516f8
..
7386df6
100644
(file)
--- a/
FS/FS/part_pkg/sesmon_minute.pm
+++ b/
FS/FS/part_pkg/sesmon_minute.pm
@@
-9,13
+9,14
@@
use FS::part_pkg::flat;
%info = (
'name' => 'Base charge plus charge per-minute from the session monitor',
%info = (
'name' => 'Base charge plus charge per-minute from the session monitor',
+ 'shortname' => 'Session monitor (per-minute)',
'fields' => {
'setup_fee' => { 'name' => 'Setup fee for this package',
'default' => 0,
},
'fields' => {
'setup_fee' => { 'name' => 'Setup fee for this package',
'default' => 0,
},
- 'recur_f
lat
' => { 'name' => 'Base recurring fee for this package',
-
'default' => 0,
-
},
+ 'recur_f
ee
' => { 'name' => 'Base recurring fee for this package',
+ 'default' => 0,
+ },
'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',
@@
-27,9
+28,9
@@
use FS::part_pkg::flat;
'default' => 0,
},
},
'default' => 0,
},
},
- 'fieldorder' => [ 'setup_fee', 'recur_f
lat
', 'unused_credit', 'recur_included_min', 'recur_minly_charge' ],
+ 'fieldorder' => [ 'setup_fee', 'recur_f
ee
', 'unused_credit', 'recur_included_min', 'recur_minly_charge' ],
#'setup' => 'what.setup_fee.value',
#'setup' => 'what.setup_fee.value',
- #'recur' => '\'my $min = $cust_pkg->seconds_since($cust_pkg->bill || 0) / 60 - \' + what.recur_included_min.value + \'; $min = 0 if $min < 0; \' + what.recur_f
lat
.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_f
ee
.value + \' + \' + what.recur_minly_charge.value + \' * $min;\'',
'weight' => 80,
);
'weight' => 80,
);
@@
-40,7
+41,7
@@
sub calc_recur {
$min -= $self->option('recur_included_min');
$min = 0 if $min < 0;
$min -= $self->option('recur_included_min');
$min = 0 if $min < 0;
- $self->option('recur_f
lat
') + $min * $self->option('recur_minly_charge');
+ $self->option('recur_f
ee
') + $min * $self->option('recur_minly_charge');
}
sub is_free_options {
}
sub is_free_options {
@@
-49,7
+50,7
@@
sub is_free_options {
sub base_recur {
my($self, $cust_pkg) = @_;
sub base_recur {
my($self, $cust_pkg) = @_;
- $self->option('recur_f
lat
');
+ $self->option('recur_f
ee
');
}
1;
}
1;