diff options
author | ivan <ivan> | 2002-04-25 09:47:25 +0000 |
---|---|---|
committer | ivan <ivan> | 2002-04-25 09:47:25 +0000 |
commit | a351f58cf394121aa1f72139356567c4785bf47f (patch) | |
tree | 723a1b31f4e8fe15a8b1e1d3b71a0c600b7a34a1 /httemplate/edit/part_pkg.cgi | |
parent | b5124265c3f3781d0f961b836cbf674fde12ce54 (diff) |
add flat_delayed plan
Diffstat (limited to 'httemplate/edit/part_pkg.cgi')
-rwxr-xr-x | httemplate/edit/part_pkg.cgi | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/httemplate/edit/part_pkg.cgi b/httemplate/edit/part_pkg.cgi index 60319f9d9..dea02f1cc 100755 --- a/httemplate/edit/part_pkg.cgi +++ b/httemplate/edit/part_pkg.cgi @@ -174,6 +174,24 @@ tie my %plans, 'Tie::IxHash', 'recur' => 'what.recur_fee.value', }, + 'flat_delayed' => { + 'name' => 'Free for X days, then flat rate (anniversary billing)', + 'fields' => { + 'free_days' => { 'name' => 'Initial free days', + 'default' => 0, + }, + 'setup_fee' => { 'name' => 'Setup fee for this package', + 'default' => 0, + }, + 'recur_fee' => { 'name' => 'Recurring fee for this package', + 'default' => 0, + }, + }, + 'fieldorder' => [ 'free_days', 'setup_fee', 'recur_fee' ], + 'setup' => 'what.setup_fee.value', + 'recur' => '\'$sdate += 86400 * \' + what.free_days.value + \'; \' + what.recur_fee.value', + }, + 'prorate' => { 'name' => 'First partial month pro-rated, then flat-rate (1st of month billing)', 'fields' => { |