diff options
Diffstat (limited to 'httemplate')
| -rwxr-xr-x | httemplate/edit/part_pkg.cgi | 19 | 
1 files changed, 17 insertions, 2 deletions
| diff --git a/httemplate/edit/part_pkg.cgi b/httemplate/edit/part_pkg.cgi index d3213dd46..60319f9d9 100755 --- a/httemplate/edit/part_pkg.cgi +++ b/httemplate/edit/part_pkg.cgi @@ -160,7 +160,7 @@ print '<INPUT TYPE="hidden" NAME="pkgpart" VALUE="'. $part_pkg->pkgpart. '">';  # prolly should be in database  tie my %plans, 'Tie::IxHash',    'flat' => { -    'name' => 'Flat rate', +    'name' => 'Flat rate (anniversary billing)',      'fields' => {        'setup_fee' => { 'name' => 'Setup fee for this package',                         'default' => 0, @@ -175,7 +175,7 @@ tie my %plans, 'Tie::IxHash',    },    'prorate' => { -    'name' => 'First month pro-rated, then flat-rate', +    'name' => 'First partial month pro-rated, then flat-rate (1st of month billing)',      'fields' =>  {        'setup_fee' => { 'name' => 'Setup fee for this package',                         'default' => 0, @@ -189,6 +189,21 @@ tie my %plans, 'Tie::IxHash',      'recur' => '\'my $mnow = $sdate; my ($sec,$min,$hour,$mday,$mon,$year) = (localtime($sdate) )[0,1,2,3,4,5]; my $mstart = timelocal(0,0,0,1,$mon,$year); my $mend = timelocal(0,0,0,1, $mon == 11 ? 0 : $mon+1, $year+($mon==11)); $sdate = $mstart; ( $part_pkg->freq - 1 ) * \' + what.recur_fee.value + \' / $part_pkg->freq + \' + what.recur_fee.value + \' / $part_pkg->freq * ($mend-$mnow) / ($mend-$mstart) ; \'',    }, +  'subscription' => { +    'name' => 'First partial month full charge, then flat-rate (1st of month billing)', +    'fields' => { +      'setup_fee' => { 'name' => 'Setup fee for this package', +                       'default' => 0, +                     }, +      'recur_fee' => { 'name' => 'Recurring fee for this package', +                       'default' => 0, +                      }, +    }, +    'fieldorder' => [ 'setup_fee', 'recur_fee' ], +    'setup' => 'what.setup_fee.value', +    'recur' => '\'my $mnow = $sdate; my ($sec,$min,$hour,$mday,$mon,$year) = (localtime($sdate) )[0,1,2,3,4,5]; $sdate = timelocal(0,0,0,1,$mon,$year); \' + what.recur_fee.value', +  }, +    'flat_comission_cust' => {      'name' => 'Flat rate with recurring comission per active customer',      'fields' => { | 
