diff options
author | ivan <ivan> | 2006-10-22 05:18:37 +0000 |
---|---|---|
committer | ivan <ivan> | 2006-10-22 05:18:37 +0000 |
commit | dfa5a456854a8a31c671f363be9a7a7bde9b94bf (patch) | |
tree | d7b5f2c53a0fc75b397fb0b1adab8ec368849321 /FS/FS/part_pkg/prepaid.pm | |
parent | 1df4b7b2b8859ce8ae32e708d5c66477869209db (diff) |
add price plan option for prepaid packages to cancel instead of suspend
Diffstat (limited to 'FS/FS/part_pkg/prepaid.pm')
-rw-r--r-- | FS/FS/part_pkg/prepaid.pm | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/FS/FS/part_pkg/prepaid.pm b/FS/FS/part_pkg/prepaid.pm index 5e7d2baae..ca4acb564 100644 --- a/FS/FS/part_pkg/prepaid.pm +++ b/FS/FS/part_pkg/prepaid.pm @@ -1,20 +1,30 @@ package FS::part_pkg::prepaid; use strict; -use vars qw(@ISA %info); +use vars qw(@ISA %info %recur_action); +use Tie::IxHash; use FS::part_pkg::flat; @ISA = qw(FS::part_pkg::flat); +tie %recur_action, 'Tie::IxHash', + 'suspend' => 'suspend', + 'cancel' => 'cancel', +; + %info = ( 'name' => 'Prepaid, flat rate', '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, - } + '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, + }, }, 'fieldorder' => [ 'setup_fee', 'recur_fee', ], 'weight' => 25, |