/** 费用报销单添加“目标单据”“下游项目分摊单数” 费用明细分录添加“生成项目分摊单” **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_DAILYREIMBURSEBILL' AND KSQL_COL_NAME ='FTARBILLSTATUS') 
 ALTER TABLE T_ER_DAILYREIMBURSEBILL ADD (FTARBILLSTATUS VARCHAR(30) DEFAULT '0' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_DAILYREIMBURSEBILL' AND KSQL_COL_NAME ='FPROJECTSHARECOUNT') 
 ALTER TABLE T_ER_DAILYREIMBURSEBILL ADD (FPROJECTSHARECOUNT INT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_EXPENSEDETAIL' AND KSQL_COL_NAME ='FISCREATEPROJECTCOSTSHARE') 
 ALTER TABLE T_ER_EXPENSEDETAIL ADD (FISCREATEPROJECTCOSTSHARE CHAR(1) DEFAULT '0' NOT NULL );