-- 费用销售订单 单据类型
IF NOT EXISTS (SELECT 1 FROM t_bas_billtype WHERE FID = 696978889204833280)
INSERT INTO t_bas_billtype (FID, FNUMBER, FBILLFORMID, FISDEFAULT, FBILLCODERULEID, FCREATORID, FCREATETIME, FMODIFIERID, FMODIFYTIME, FCONTROLPRINTCOUNT, FMAXPRINTCOUNT, FPRINTAFTERAUDIT, FDOCUMENTSTATUS, FDEFPRINTTEMPLATE, FISSYSPRESET, FPARASETTINGXML, FLAYOUTSOLUTION, FDEFWNREPORTTEMPLATE, FSTATUS, FENABLE, FBILLINITSETTING, FMASTERID) VALUES (739747614202823680, 'sm_SalesOrder_Cost_BT_S', 'sm_salorder', '0', ' ', 1, {ts'2018-08-08 18:08:00'}, 1, {ts'2018-08-08 18:08:00'}, '0', 1, '1', '0', ' ', '0', NULL, '/S6F8QA39CS6', NULL, 'C', '1', ' ', 739747614202823680);

IF NOT EXISTS (SELECT 1 FROM t_bas_billtype WHERE FID = 696978889204833280)
INSERT INTO t_bas_billtype_l (FPKID, FID, FLOCALEID, FNAME, FDESCRIPTION) VALUES ('0=V0N6KE81ZW', 739747614202823680, 'zh_CN', '费用销售订单', ' ');
IF NOT EXISTS (SELECT 1 FROM t_bas_billtype WHERE FID = 696978889204833280)
INSERT INTO t_bas_billtype_l (FPKID, FID, FLOCALEID, FNAME, FDESCRIPTION) VALUES ('0=V0N6KE81ZX', 739747614202823680, 'zh_TW', '費用銷售訂單', ' ');

IF NOT EXISTS (SELECT 1 FROM t_bas_billtype WHERE FID = 696978889204833280)
INSERT INTO t_bas_billtypeparameter (FFORMID, FBILLTYPEID, FDATA) VALUES ('sm_salorder', 739747614202823680, '{"biztype":{"number":"218","masterid":691917066026067968,"_Type_":"bd_biztype","multilanguagetext":[{"_Type_":"locale","pkid":"04ZWPTGE397L","name":"服务/费用类销售","description":"","localeid":"zh_CN"},{"_Type_":"locale","pkid":"04ZWPTGE397M","name":"服務/費用類銷售","description":"","localeid":"zh_TW"}],"name":{"zh_TW":"服務/費用類銷售","zh_CN":"服务/费用类销售"},"id":691917066026067968},"_Type_":"sm_billtypeparam","biztype_id":691917066026067968,"bizcategory":"FY"}');
