X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fpart_pkg%2Fprepaid.pm;h=407343bc8d4fcc823d04235708c7953900f093bf;hb=d3ce5efd1ec0e1a715a154696e2b0aa86e51c27b;hp=23d340167a2acfb0d46880514cafddc6db274860;hpb=467b269c5cacef3e8486e2288f1b0eeec8fea088;p=freeside.git diff --git a/FS/FS/part_pkg/prepaid.pm b/FS/FS/part_pkg/prepaid.pm index 23d340167..407343bc8 100644 --- a/FS/FS/part_pkg/prepaid.pm +++ b/FS/FS/part_pkg/prepaid.pm @@ -21,28 +21,25 @@ tie my %overlimit_action, 'Tie::IxHash', 'name' => 'Prepaid, flat rate', #'name' => 'Prepaid (no automatic recurring)', #maybe use it here too 'shortname' => 'Prepaid, no automatic cycle', + 'inherit_fields' => [ 'usage_Mixin', 'global_Mixin' ], 'fields' => { - 'setup_fee' => { 'name' => 'One-time setup fee for this package', - 'default' => 0, - }, - 'recur_fee' => { 'name' => 'Initial and recharge fee for this package', - 'default' => 0, - }, 'recur_action' => { 'name' => 'Action to take upon reaching end of prepaid preiod', 'type' => 'select', 'select_options' => \%recur_action, }, - %FS::part_pkg::flat::usage_fields, 'overlimit_action' => { 'name' => 'Action to take upon reaching a usage limit.', 'type' => 'select', 'select_options' => \%overlimit_action, }, #XXX if you set overlimit_action to 'cancel', should also have the ability # to select a reason + + # do we need to disable these? + map { $_ => { 'disabled' => 1 } } ( + qw(recharge_amount recharge_seconds recharge_upbytes recharge_downbytes + recharge_totalbytes usage_rollover recharge_reset) ), }, - 'fieldorder' => [ qw( setup_fee recur_fee recur_action ), - @FS::part_pkg::flat::usage_fieldorder, - ], + 'fieldorder' => [ qw( recur_action overlimit_action ) ], 'weight' => 25, );