/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\ER_table.sql **/
/* 增加"来源"字段  wenyue_chi**/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_REIMBURSEENTRY' AND KSQL_COL_NAME IN ('FITEMFROM')) 
 ALTER TABLE T_ER_REIMBURSEENTRY ADD (FITEMFROM VARCHAR(2) DEFAULT '0' NOT NULL );

/*差旅项目二级分录, 增加发票类型字段*/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_REIMBURSEENTRY' AND KSQL_COL_NAME IN ('FINVOICETYPEITEM')) 
 ALTER TABLE T_ER_REIMBURSEENTRY ADD (FINVOICETYPEITEM VARCHAR(2) DEFAULT '0' NOT NULL );
/**End E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\ER_table.sql **/
