[freeside-commits] freeside/FS/FS Schema.pm, 1.324, 1.325 part_pkg.pm, 1.126, 1.127
Ivan,,,
ivan at wavetail.420.am
Wed Sep 14 12:24:03 PDT 2011
- Previous message: [freeside-commits] freeside/fs_selfservice/php freeside.login_example.php, 1.1, NONE freeside_agent_login_example.php, NONE, 1.1 freeside_agent_new_customer_example.php, NONE, 1.1 freeside_agent_signup_example.php, NONE, 1.1 freeside_login_example.php, NONE, 1.1 process_login.php, 1.1, 1.2
- Next message: [freeside-commits] freeside/FS/FS Schema.pm,1.325,1.326
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv28929
Modified Files:
Schema.pm part_pkg.pm
Log Message:
removing legacy part_pkg fields
Index: Schema.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/Schema.pm,v
retrieving revision 1.324
retrieving revision 1.325
diff -u -w -d -r1.324 -r1.325
--- Schema.pm 12 Sep 2011 21:12:08 -0000 1.324
+++ Schema.pm 14 Sep 2011 19:24:00 -0000 1.325
@@ -576,7 +576,6 @@
'seconds', 'int', 'NULL', '', '', '',
'weight', 'int', '', '', '', '',
'plan', 'varchar', 'NULL', $char_d, '', '',
- 'plandata', 'text', 'NULL', '', '', '',
'reason', 'int', 'NULL', '', '', '',
'disabled', 'char', 'NULL', 1, '', '',
],
Index: part_pkg.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_pkg.pm,v
retrieving revision 1.126
retrieving revision 1.127
diff -u -w -d -r1.126 -r1.127
--- part_pkg.pm 8 Sep 2011 22:04:05 -0000 1.126
+++ part_pkg.pm 14 Sep 2011 19:24:01 -0000 1.127
@@ -1362,8 +1362,6 @@
my @part_pkg = qsearch({
'table' => 'part_pkg',
'extra_sql' => "WHERE ". join(' OR ',
- ( map "($_ IS NOT NULL AND $_ != '' )",
- qw( plandata setup recur ) ),
'plan IS NULL', "plan = '' ",
),
});
@@ -1374,43 +1372,7 @@
$part_pkg->plan('flat');
}
- if ( length($part_pkg->option('setup_fee')) == 0
- && $part_pkg->setup =~ /^\s*([\d\.]+)\s*$/ ) {
-
- my $opt = new FS::part_pkg_option {
- 'pkgpart' => $part_pkg->pkgpart,
- 'optionname' => 'setup_fee',
- 'optionvalue' => $1,
- };
- my $error = $opt->insert;
- die $error if $error;
-
-
- #} else {
- # die "Can't parse part_pkg.setup for fee; convert pkgnum ".
- # $part_pkg->pkgnum. " manually: ". $part_pkg->setup. "\n";
- }
- $part_pkg->setup('');
-
- if ( length($part_pkg->option('recur_fee')) == 0
- && $part_pkg->recur =~ /^\s*([\d\.]+)\s*$/ ) {
-
- my $opt = new FS::part_pkg_option {
- 'pkgpart' => $part_pkg->pkgpart,
- 'optionname' => 'recur_fee',
- 'optionvalue' => $1,
- };
- my $error = $opt->insert;
- die $error if $error;
-
-
- #} else {
- # die "Can't parse part_pkg.setup for fee; convert pkgnum ".
- # $part_pkg->pkgnum. " manually: ". $part_pkg->setup. "\n";
- }
- $part_pkg->recur('');
-
- $part_pkg->replace; #this should take care of plandata, right?
+ $part_pkg->replace;
}
- Previous message: [freeside-commits] freeside/fs_selfservice/php freeside.login_example.php, 1.1, NONE freeside_agent_login_example.php, NONE, 1.1 freeside_agent_new_customer_example.php, NONE, 1.1 freeside_agent_signup_example.php, NONE, 1.1 freeside_login_example.php, NONE, 1.1 process_login.php, 1.1, 1.2
- Next message: [freeside-commits] freeside/FS/FS Schema.pm,1.325,1.326
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the freeside-commits
mailing list