-- 删除没用的元数据
-- 1、坏账初始化
DELETE FROM T_META_ENTITY WHERE FNUMBER = 'ar_initbaddebt';
DELETE FROM T_META_ENTITYDESIGN WHERE FNUMBER = 'ar_initbaddebt';
DELETE FROM T_META_ENTITYDESIGN_L WHERE FNUMBER = 'ar_initbaddebt';
DELETE FROM T_META_ENTITYINFO WHERE FID = 'ar_initbaddebt';
DELETE FROM T_META_FORM WHERE FNUMBER = 'ar_initbaddebt';
DELETE FROM T_META_FORMDESIGN WHERE FNUMBER = 'ar_initbaddebt';
DELETE FROM T_META_FORMDESIGN_L WHERE FNUMBER = 'ar_initbaddebt';
DELETE FROM T_META_MAINENTITYINFO WHERE FID = 'ar_initbaddebt';
DELETE FROM T_META_MAINENTITYINFO_L WHERE FID = 'ar_initbaddebt';

-- 2、初始化设置
DELETE FROM T_META_ENTITY WHERE FNUMBER = 'ar_initsettings';
DELETE FROM T_META_ENTITYDESIGN WHERE FNUMBER = 'ar_initsettings';
DELETE FROM T_META_ENTITYDESIGN_L WHERE FNUMBER = 'ar_initsettings';
DELETE FROM T_META_ENTITYINFO WHERE FID = 'ar_initsettings';
DELETE FROM T_META_FORM WHERE FNUMBER = 'ar_initsettings';
DELETE FROM T_META_FORMDESIGN WHERE FNUMBER = 'ar_initsettings';
DELETE FROM T_META_FORMDESIGN_L WHERE FNUMBER = 'ar_initsettings';
DELETE FROM T_META_MAINENTITYINFO WHERE FID = 'ar_initsettings';
DELETE FROM T_META_MAINENTITYINFO_L WHERE FID = 'ar_initsettings';

-- 3、计提坏账准备
DELETE FROM T_META_ENTITY WHERE FNUMBER = 'ar_accrualreserve';
DELETE FROM T_META_ENTITYDESIGN WHERE FNUMBER = 'ar_accrualreserve';
DELETE FROM T_META_ENTITYDESIGN_L WHERE FNUMBER = 'ar_accrualreserve';
DELETE FROM T_META_ENTITYINFO WHERE FID = 'ar_accrualreserve';
DELETE FROM T_META_FORM WHERE FNUMBER = 'ar_accrualreserve';
DELETE FROM T_META_FORMDESIGN WHERE FNUMBER = 'ar_accrualreserve';
DELETE FROM T_META_FORMDESIGN_L WHERE FNUMBER = 'ar_accrualreserve';
DELETE FROM T_META_MAINENTITYINFO WHERE FID = 'ar_accrualreserve';
DELETE FROM T_META_MAINENTITYINFO_L WHERE FID = 'ar_accrualreserve';

-- 4、期初坏账
DELETE FROM T_META_ENTITY WHERE FNUMBER = 'ar_baddebtbill';
DELETE FROM T_META_ENTITYDESIGN WHERE FNUMBER = 'ar_baddebtbill';
DELETE FROM T_META_ENTITYDESIGN_L WHERE FNUMBER = 'ar_baddebtbill';
DELETE FROM T_META_ENTITYINFO WHERE FID = 'ar_baddebtbill';
DELETE FROM T_META_FORM WHERE FNUMBER = 'ar_baddebtbill';
DELETE FROM T_META_FORMDESIGN WHERE FNUMBER = 'ar_baddebtbill';
DELETE FROM T_META_FORMDESIGN_L WHERE FNUMBER = 'ar_baddebtbill';
DELETE FROM T_META_MAINENTITYINFO WHERE FID = 'ar_baddebtbill';
DELETE FROM T_META_MAINENTITYINFO_L WHERE FID = 'ar_baddebtbill';