/**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_INVOICE_E' AND KSQL_COL_NAME ='FREOPEN') 
 ALTER TABLE T_AR_INVOICE_E ADD (FREOPEN VARCHAR(30) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_AR_INVOICE_E' AND KSQL_COL_NAME ='FCARDBAGURL') 
 ALTER TABLE T_AR_INVOICE_E ADD (FCARDBAGURL NVARCHAR(255) DEFAULT ' ' NOT NULL );
 EXEC p_AlterColumn 'T_AR_CLOSEFAILEDENTRY', 'FFAILEDMESSAGE', 'NVARCHAR(1000)', 'NOT NULL', '0100', ''' ''';


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