[freeside-commits]
freeside/FS/FS Schema.pm, 1.33, 1.34 cust_main.pm, 1.249, 1.250
Jeff Finucane,420,,
jeff at wavetail.420.am
Tue Oct 24 11:26:40 PDT 2006
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail:/tmp/cvs-serv19847/FS/FS
Modified Files:
Schema.pm cust_main.pm
Log Message:
add customer signup date
Index: Schema.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/Schema.pm,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -d -r1.33 -r1.34
--- Schema.pm 18 Oct 2006 23:07:06 -0000 1.33
+++ Schema.pm 24 Oct 2006 18:26:37 -0000 1.34
@@ -408,7 +408,8 @@
# 'middle', 'varchar', 'NULL', $char_d, '', '',
'first', 'varchar', '', $char_d, '', '',
'ss', 'varchar', 'NULL', 11, '', '',
- 'birthdate', at date_type, '', '',
+ 'birthdate' , at date_type, '', '',
+ 'signupdate', at date_type, '', '',
'company', 'varchar', 'NULL', $char_d, '', '',
'address1', 'varchar', '', $char_d, '', '',
'address2', 'varchar', 'NULL', $char_d, '', '',
Index: cust_main.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_main.pm,v
retrieving revision 1.249
retrieving revision 1.250
diff -u -d -r1.249 -r1.250
--- cust_main.pm 23 Oct 2006 09:24:36 -0000 1.249
+++ cust_main.pm 24 Oct 2006 18:26:37 -0000 1.250
@@ -397,6 +397,8 @@
warn " inserting $self\n"
if $DEBUG > 1;
+ $self->signupdate(time) unless $self->signupdate;
+
my $error = $self->SUPER::insert;
if ( $error ) {
$dbh->rollback if $oldAutoCommit;
@@ -1210,6 +1212,7 @@
|| $self->ut_name('last')
|| $self->ut_name('first')
|| $self->ut_snumbern('birthdate')
+ || $self->ut_snumbern('signupdate')
|| $self->ut_textn('company')
|| $self->ut_text('address1')
|| $self->ut_textn('address2')
More information about the freeside-commits
mailing list