/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\CAS_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_CAS_MATCHINGRULE' AND KSQL_COL_NAME ='FISUPDATE') 
 ALTER TABLE T_CAS_MATCHINGRULE ADD (FISUPDATE CHAR(1) DEFAULT '0' NOT NULL );
 EXEC p_AlterColumn 'T_CAS_RECPAYRULE', 'FENABLE', 'VARCHAR(5)', 'NOT NULL', '1111', ''' ''';

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_CAS_RECEIVINGBILLENTRY' AND KSQL_COL_NAME ='FFEE') 
 ALTER TABLE T_CAS_RECEIVINGBILLENTRY ADD (FFEE DECIMAL(19,6) DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_CAS_RECEIVINGBILL_E' AND KSQL_COL_NAME ='FFEE') 
 ALTER TABLE T_CAS_RECEIVINGBILL_E ADD (FFEE DECIMAL(19,6) DEFAULT 0 NOT NULL );
 

/**End E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\CAS_table.sql **/
