1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
package FS::part_pkg::torrus_bw_usage;
use strict;
use base qw( FS::part_pkg::torrus_Common );
use List::Util qw(max);
our %info = (
'name' => 'Volume billing based on the integrated Torrus NMS',
'shortname' => 'Bandwidth (volume)',
'weight' => 54.7, #:/
'inherit_fields' => [ 'flat', 'global_Mixin' ],
'fields' => {
'recur_temporality' => { 'disabled' => 1 },
'sync_bill_date' => { 'disabled' => 1 },
'cutoff_day' => { 'disabled' => 1 },
'base_gb' => { 'name' => 'Included gigabytes',
'default' => 0,
},
'gb_rate' => { 'name' => 'Charge per gigabyte',
'default' => 0,
},
},
'fieldorder' => [ qw( base_gb gb_rate ) ],
'freq' => 'm',
);
sub _torrus_name { 'VOLUME'; }
sub _torrus_base { 'base_gb'; }
sub _torrus_rate { 'gb_rate'; }
sub _torrus_label { 'gb'; };
1;
|