-- 业务类型 普通委外加入委外入库单 sys
delete FROM t_sbd_biztypebillentity WHERE FENTRYID = '989775252026557440' ;
insert into t_sbd_biztypebillentity (FID, FENTRYID, FSEQ, FBILLFORM)
values ('966651870204521472', '989775252026557440', '2', 'im_mdc_ominbill');
--普通委外退货增加委外入库单
delete FROM t_sbd_biztypebillentity WHERE FENTRYID = '991196353004876800' ;
insert into t_sbd_biztypebillentity (FID, FENTRYID, FSEQ, FBILLFORM)
values ('990500657985463296', '991196353004876800', '2', 'im_mdc_ominbill');

--单据类型 增加委外入库单 单据类型 sys
DELETE FROM T_BAS_BILLTYPE WHERE FID = 989772873411359744;
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 (989772873411359744, 'im_mdc_ominbill_BT_S', 'im_mdc_ominbill', '1', ' ', 1, {ts '2020-06-23 11:07:47'}, 1, {ts '2020-06-23 11:07:47'}, '0', 1, '1', '0', ' ', '0', '129RQZ42Z6+9', null, 'C', '1', 989772873411359744, null, ' ');

--单据类型 委外入库单单据类型多语言 sys
DELETE FROM T_BAS_BILLTYPE_l WHERE FPKID = '12JWT+DE8AD4';
insert into T_BAS_BILLTYPE_l (FPKID, FID, FLOCALEID, FNAME, FDESCRIPTION)
values ('12JWT+DE8AD4', '989772873411359744', 'zh_CN', '标准委外入库单', '标准委外入库单'); 

DELETE FROM T_BAS_BILLTYPE_l WHERE FPKID = '12JWT+DE8AD5';
insert into T_BAS_BILLTYPE_l (FPKID, FID, FLOCALEID, FNAME, FDESCRIPTION)
values ('12JWT+DE8AD5', '989772873411359744', 'zh_TW', '標準委外入庫單', '標準委外入庫單');

--单据类型 委外入库单 单据类型 参数 sys
DELETE FROM T_BAS_BILLTYPEPARAMETER WHERE FBILLTYPEID = 989772873411359744;
insert into T_BAS_BILLTYPEPARAMETER (FFORMID, FBILLTYPEID, FDATA)
values ('im_mdc_ominbill', 989772873411359744, '{"biztype":{"number":"4011","masterid":966651870204521472,"_Type_":"bd_biztype","multilanguagetext":[{"_Type_":"locale","pkid":"1/Q3QMIUP=+F","name":"普通委外","description":"普通委外","localeid":"zh_CN"},{"_Type_":"locale","pkid":"1/Q3QMIUP=+G","name":"普通委外","description":"普通委外","localeid":"zh_TW"}],"name":{"zh_TW":"普通委外","zh_CN":"普通委外"},"id":966651870204521472},"_Type_":"im_purbilltypeparam","biztype_id":966651870204521472}');

-- 序列号注册 批量序号业务日期添加 sys库
delete from t_bd_lotcodeitementry where FENTRYID ='990341908511482880';
insert into t_bd_lotcodeitementry (FID, FENTRYID, FSEQ, FAPPBILLID, FENTRYENTITYID, FBILLFIELDNAME, FBILLFIELDID)
values ('621746542658810880', '990341908511482880', '25', 'im_mdc_ominbill', ' ', '单据头.业务日期', 'biztime');

