/**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_REV_VRRECORDENTRY' AND KSQL_COL_NAME ='FWRITTENOFFSRCID')
 ALTER TABLE T_AR_REV_VRRECORDENTRY ADD (FWRITTENOFFSRCID BIGINT DEFAULT 0 NOT NULL );

EXEC p_AlterColumn 'T_AR_GOODSLINKTAXTYPE', 'FSPECTYPE', 'VARCHAR(255)', 'NOT NULL', '0100', ''' ''';
/**End E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\AR_table.sql **/
