1 package FS::part_pkg::torrus_bw_usage;
4 use base qw( FS::part_pkg::torrus_Common );
5 use List::Util qw(max);
8 'name' => 'Volume billing based on the integrated Torrus NMS',
9 'shortname' => 'Bandwidth (volume)',
11 'inherit_fields' => [ 'flat', 'global_Mixin' ],
13 'recur_temporality' => { 'disabled' => 1 },
14 'sync_bill_date' => { 'disabled' => 1 },
15 'cutoff_day' => { 'disabled' => 1 },
16 'base_gb' => { 'name' => 'Included gigabytes',
19 'gb_rate' => { 'name' => 'Charge per gigabyte',
23 'fieldorder' => [ qw( base_gb gb_rate ) ],
27 sub _torrus_name { 'VOLUME'; }
28 sub _torrus_base { 'base_gb'; }
29 sub _torrus_rate { 'gb_rate'; }
30 sub _torrus_label { 'gb'; };