From: ivan Date: Wed, 27 Feb 2002 22:39:14 +0000 (+0000) Subject: add status and statustext fields to cust_bill_event X-Git-Tag: freeside_1_4_0_pre12~180 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=6a37289c12238d48ea864b8177216ca276b33a40 add status and statustext fields to cust_bill_event --- diff --git a/FS/FS/cust_bill_event.pm b/FS/FS/cust_bill_event.pm index cc9ce7cb8..242b39e26 100644 --- a/FS/FS/cust_bill_event.pm +++ b/FS/FS/cust_bill_event.pm @@ -107,6 +107,8 @@ sub check { || $self->ut_number('invnum') || $self->ut_number('eventpart') || $self->ut_number('_date') + || $self->ut_enum('status', [qw( done failed )] + || $self->ut_textn('statustext'); ; return "Unknown invnum" diff --git a/README.1.4.0pre12 b/README.1.4.0pre12 new file mode 100644 index 000000000..3f30aa48c --- /dev/null +++ b/README.1.4.0pre12 @@ -0,0 +1,19 @@ +the following is necessary to upgrade from 1.4.0pre11 to 1.4.0pre12 + +if you're upgrading from before 1.4.0pre12 see README.1.4.0pre11 first! + +if you're upgrading from 1.3.1 follow the instructions in +httemplate/docs/upgrade8.html instead + +---- + +install the FS perl modules and httemplate as per install.html or upgrade8.html + +ALTER TABLE cust_bill_event ADD status varchar(80); +ALTER TABLE cust_bill_event ADD statustext text NULL; +UPDATE cust_bill_event SET status = 'done'; + +Run bin/dbdef-create + +Restart Apache and freeside-queued + diff --git a/bin/fs-setup b/bin/fs-setup index 3ad0bbdf6..62c2cd490 100755 --- a/bin/fs-setup +++ b/bin/fs-setup @@ -1,6 +1,6 @@ #!/usr/bin/perl -Tw # -# $Id: fs-setup,v 1.81 2002-02-22 07:50:19 ivan Exp $ +# $Id: fs-setup,v 1.82 2002-02-27 22:39:14 ivan Exp $ #to delay loading dbdef until we're ready BEGIN { $FS::Record::setup_hack = 1; } @@ -329,10 +329,12 @@ sub tables_hash_hack { 'invnum', 'int', '', '', 'eventpart', 'int', '', '', '_date', @date_type, + 'status', 'varchar', '', $char_d, + 'statustext', 'text', 'NULL', '', ], 'primary_key' => 'eventnum', 'unique' => [ [ 'eventpart', 'invnum' ] ], - 'index' => [ ['invnum'] ], + 'index' => [ ['invnum'], ['status'] ], }, 'part_bill_event' => { diff --git a/httemplate/docs/schema.html b/httemplate/docs/schema.html index 8420161bf..b828213ff 100644 --- a/httemplate/docs/schema.html +++ b/httemplate/docs/schema.html @@ -32,6 +32,8 @@
  • invnum - invoice
  • eventpart - event definition
  • _date +
  • status +
  • statustext
  • part_bill_event - Invoice event definitions