[freeside-commits] freeside/FS/FS/part_pkg prepaid.pm,1.1,1.2
Ivan,,,
ivan at wavetail.420.am
Sat Oct 21 22:18:39 PDT 2006
Update of /home/cvs/cvsroot/freeside/FS/FS/part_pkg
In directory wavetail:/tmp/cvs-serv27322/FS/part_pkg
Modified Files:
prepaid.pm
Log Message:
add price plan option for prepaid packages to cancel instead of suspend
Index: prepaid.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_pkg/prepaid.pm,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- prepaid.pm 9 Jul 2005 10:36:43 -0000 1.1
+++ prepaid.pm 22 Oct 2006 05:18:37 -0000 1.2
@@ -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,
More information about the freeside-commits
mailing list