From: ivan Date: Sat, 1 Sep 2001 23:41:51 +0000 (+0000) Subject: cust_bill_pay and cust_credit_refund X-Git-Tag: freeside_1_4_0pre11~389 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=98ddc878969bb39e576e3bd316f96ff7eeedb750 cust_bill_pay and cust_credit_refund --- diff --git a/httemplate/docs/upgrade8.html b/httemplate/docs/upgrade8.html index 765c2b8d5..1e4064e8d 100644 --- a/httemplate/docs/upgrade8.html +++ b/httemplate/docs/upgrade8.html @@ -72,12 +72,30 @@ CREATE TABLE svc_forward ( ); CREATE TABLE cust_credit_bill ( + creditbillnum int primary key, crednum int not null, invnum int not null, - _date timestamp not null, + _date int not null, amount decimal(10,2) not null ); +CREATE TABLE cust_bill_pay ( + billpaynum int primary key, + invnum int not null, + paynum int not null, + _date int not null, + amount decimal(10,2) not null +); + +CREATE TABLE cust_credit_refund ( + creditrefundnum int primary key, + crednum int not null, + refundnum int not null, + _date int not null, + amount decimal(10,2) not null +); + + ALTER TABLE svc_acct ADD domsvc integer NOT NULL; ALTER TABLE svc_domain ADD catchall integer NULL; ALTER TABLE part_svc ADD svc_acct__domsvc integer NULL; @@ -94,6 +112,10 @@ ALTER TABLE cust_main ADD referral_custnum integer NULL; CREATE INDEX cust_main3 ON cust_main ( referral_custnum ); CREATE INDEX cust_credit_bill1 ON cust_credit_bill ( crednum ); CREATE INDEX cust_credit_bill2 ON cust_credit_bill ( invnum ); +CREATE INDEX cust_bill_pay1 ON cust_bill_pay ( invnum ); +CREATE INDEX cust_bill_pay2 ON cust_bill_pay ( paynum ); +CREATE INDEX cust_credit_refund1 ON cust_credit_refund ( crednum ); +CREATE INDEX cust_credit_refund2 ON cust_credit_refund ( refundnum );
  • If you are using PostgreSQL, apply the following changes to your database: @@ -152,5 +174,6 @@ ALTER TABLE cust_main ADD COLUMN comments varchar NULL;
  • Run bin/dbdef-create.
  • create a service based on svc_forward
  • Run bin/fs-migrate-svc_acct_sm +
  • Run bin/fs-migrate-payref
  • create the conf.dbsrc/user_policy as appropriate for your site