/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\GL_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_AI_VCHTEMPLATE' AND KSQL_COL_NAME ='FACCTORGID') 
 ALTER TABLE T_AI_VCHTEMPLATE ADD (FACCTORGID NVARCHAR(100) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_AI_VCHTEMPLATE' AND KSQL_COL_NAME ='FVOUCHERDATEDESC') 
 ALTER TABLE T_AI_VCHTEMPLATE ADD (FVOUCHERDATEDESC NVARCHAR(500) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_AI_VCHTEMPLATE' AND KSQL_COL_NAME ='FVCHTYPEDESC') 
 ALTER TABLE T_AI_VCHTEMPLATE ADD (FVCHTYPEDESC NVARCHAR(500) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_AI_VCHTEMPLATE' AND KSQL_COL_NAME ='FBIZDATEDESC') 
 ALTER TABLE T_AI_VCHTEMPLATE ADD (FBIZDATEDESC NVARCHAR(500) DEFAULT ' ' NOT NULL );

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