/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\AR_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_AR_SETTLESCHERULEENTRY' AND KSQL_COL_NAME ='FMAINFILTER') 
 ALTER TABLE T_AR_SETTLESCHERULEENTRY ADD (FMAINFILTER NVARCHAR(255) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_AR_SETTLESCHERULEENTRY' AND KSQL_COL_NAME ='FMAINFILTER_TAG') 
 ALTER TABLE T_AR_SETTLESCHERULEENTRY ADD (FMAINFILTER_TAG NCLOB );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_AR_SETTLESCHERULEENTRY' AND KSQL_COL_NAME ='FASSTFILTER') 
 ALTER TABLE T_AR_SETTLESCHERULEENTRY ADD (FASSTFILTER NVARCHAR(255) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_AR_SETTLESCHERULEENTRY' AND KSQL_COL_NAME ='FASSTFILTER_TAG') 
 ALTER TABLE T_AR_SETTLESCHERULEENTRY ADD (FASSTFILTER_TAG NCLOB );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_AR_INVOICE_E' AND KSQL_COL_NAME ='FISAMOUNT') 
 ALTER TABLE T_AR_INVOICE_E ADD (FISAMOUNT CHAR(1) DEFAULT '0' NOT NULL );

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