/** 更新 期初坏账准备.源单标识 add by bjkai_wang */
IF EXISTS(SELECT 1 FROM T_AR_BaddebtReserveBill WHERE FSourceBillType = ' ')
update T_AR_BaddebtReserveBill set FSourceBillType = 'ar_finarbill' 
where FSourceTypeID IN (select FID from t_ar_sourcetype where FIsDefault = '1');