-- 清理单元数据（增加“终止租赁负债原值”、“终止租赁负债现值”、“终止未确认融资费用”3个字段）
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_FA_CLRBILLENTRY_D' AND KSQL_COL_NAME ='FLEASEDEBTPRESENT') 
 ALTER TABLE T_FA_CLRBILLENTRY_D ADD (FLEASEDEBTPRESENT DECIMAL(23,10) DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_FA_CLRBILLENTRY_D' AND KSQL_COL_NAME ='FNOCONFIRMFINCOST') 
 ALTER TABLE T_FA_CLRBILLENTRY_D ADD (FNOCONFIRMFINCOST DECIMAL(23,10) DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_FA_CLRBILLENTRY_D' AND KSQL_COL_NAME ='FLEASEDEBTORIGIN') 
 ALTER TABLE T_FA_CLRBILLENTRY_D ADD (FLEASEDEBTORIGIN DECIMAL(23,10) DEFAULT 0 NOT NULL );
