-- 新增形态转换单的单据类型 2019-09-27
-- t_bas_billtype
IF NOT EXISTS (SELECT 1 FROM t_bas_billtype WHERE FID = 721675267608688640)
insert into t_bas_billtype (FID, FNUMBER, FBILLFORMID, FISDEFAULT, FBILLCODERULEID, FCREATORID, FCREATETIME, FMODIFIERID, FMODIFYTIME, FCONTROLPRINTCOUNT, FMAXPRINTCOUNT, FPRINTAFTERAUDIT, FDOCUMENTSTATUS, FDEFPRINTTEMPLATE, FISSYSPRESET, FLAYOUTSOLUTION, FDEFWNREPORTTEMPLATE, FSTATUS, FENABLE, FMASTERID, FPARASETTINGXML, FBILLINITSETTING)
values (721675267608688640, 'im_Adjustbill_STD_BT_S', 'im_adjustbill', '1', ' ', 1, {ts'2019-09-27 10:08:00'}, 1, {ts'2019-09-27 10:08:00'}, '0', '1', '1', '0', ' ', '0', '08MD5GHP0S3Q', null, 'C', '1', 721675267608688640, ' ', ' ');

-- t_bas_billtype_l
IF NOT EXISTS (SELECT 1 FROM t_bas_billtype_l WHERE FPKID = '08MFXA=5A3V3')
insert into t_bas_billtype_l (FPKID, FID, FLOCALEID, FNAME, FDESCRIPTION)
values ('08MFXA=5A3V3', 721675267608688640, 'zh_CN', '标准形态转换单', ' ');
IF NOT EXISTS (SELECT 1 FROM t_bas_billtype_l WHERE FPKID = '08MFXA=5A3V4')
insert into t_bas_billtype_l (FPKID, FID, FLOCALEID, FNAME, FDESCRIPTION)
values ('08MFXA=5A3V4', 721675267608688640, 'zh_TW', '標準形態轉換單', ' ');

-- t_bas_billtypeparameter
IF NOT EXISTS (SELECT 1 FROM t_bas_billtypeparameter WHERE FBILLTYPEID = 721675267608688640)
insert into t_bas_billtypeparameter (FFORMID, FBILLTYPEID, FDATA) 
values ('im_adjustbill', 721675267608688640, '{"biztype":{"number":"510","masterid":688869505400892416,"_Type_":"bd_biztype","multilanguagetext":[{"_Type_":"locale","pkid":"04L===397MPB","name":"物料转换","description":"","localeid":"zh_CN"},{"_Type_":"locale","pkid":"04L===397MPC","name":"物料轉換","description":"","localeid":"zh_TW"}],"name":{"zh_TW":"物料轉換","zh_CN":"物料转换"},"id":688869505400892416},"_Type_":"im_salbilltypeparam","biztype_id":688869505400892416}');