/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\PUR_table.sql **/

 EXEC p_AlterColumn 'T_PUR_USER', 'FNUMBER', 'VARCHAR(50)', 'NOT NULL', '0100', ''' ''';
 
 IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_PUR_SALOUTSTOCKENTRY' AND KSQL_COL_NAME IN ('FREJECTQTY')) 
 ALTER TABLE T_PUR_SALOUTSTOCKENTRY ADD (FREJECTQTY DECIMAL(19,6) DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_PUR_SALOUTSTOCKENTRY' AND KSQL_COL_NAME IN ('FREJECTREASON')) 
 ALTER TABLE T_PUR_SALOUTSTOCKENTRY ADD (FREJECTREASON NVARCHAR(255) DEFAULT ' ' NOT NULL );


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