/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\PUR_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_PUR_COMPARENTRY_A' AND KSQL_COL_NAME ='FHISMINPRICE') 
 ALTER TABLE T_PUR_COMPARENTRY_A ADD (FHISMINPRICE DECIMAL(19,6) DEFAULT 0 NOT NULL );
 EXEC p_AlterColumn 'T_PUR_SUPPLIERCHGENTRY', 'FSRCBILLID', 'VARCHAR(255)', 'NOT NULL', '0100', ''' ''';

IF NOT EXISTS (SELECT 1 FROM KSQL_USERTABLES WHERE KSQL_TABNAME = 'T_PUR_SAMENTRY_ATT') 
 CREATE TABLE T_PUR_SAMENTRY_ATT (
FPKID BIGINT DEFAULT 0 NOT NULL,
FENTRYID BIGINT DEFAULT 0 NOT NULL,
FBASEDATAID BIGINT DEFAULT 0 NOT NULL
);



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