-- 新增生产入库库存事务分组
IF NOT EXISTS(SELECT 1 FROM T_IM_INVSCHEMEGROUP WHERE FID = 697662622094401536)
INSERT INTO T_IM_INVSCHEMEGROUP (FID, FNUMBER, FPARENTID, FLEVEL, FLONGNUMBER, FISLEAF, FENABLE, FSTATUS, FCREATORID, FCREATETIME, FMODIFIERID, FMODIFYTIME, FDISABLERID, FDISABLEDATE, FMASTERID) VALUES(697662622094401536, 'productIn', 0, 1, 'productIn', '1', '1', 'C', 1,  {ts'2019-08-21 14:10:51'}, 1,  {ts'2019-08-21 14:11:05'}, 0, NULL, 697662622094401536);

IF NOT EXISTS(SELECT 1 FROM T_IM_INVSCHEMEGROUP_L WHERE FPKID='05OE8KI+LQH=')
INSERT INTO T_IM_INVSCHEMEGROUP_L (FPKID, FID, FLOCALEID, FNAME, FFULLNAME) VALUES('05OE8KI+LQH=', 697662622094401536, 'zh_CN', '生产入库单', '生产入库单');
IF NOT EXISTS(SELECT 1 FROM T_IM_INVSCHEMEGROUP_L WHERE FPKID='05OE8KI+LQHA')
INSERT INTO T_IM_INVSCHEMEGROUP_L (FPKID, FID, FLOCALEID, FNAME, FFULLNAME) VALUES('05OE8KI+LQHA', 697662622094401536, 'zh_TW', '生產入庫單', ' ');


-- 新增领料出库库存事务分组
IF NOT EXISTS(SELECT 1 FROM T_IM_INVSCHEMEGROUP WHERE FID=699723998116028416)
INSERT INTO T_IM_INVSCHEMEGROUP (FID, FNUMBER, FPARENTID, FLEVEL, FLONGNUMBER, FISLEAF, FENABLE, FSTATUS, FCREATORID, FCREATETIME, FMODIFIERID, FMODIFYTIME, FDISABLERID, FDISABLEDATE, FMASTERID) VALUES(699723998116028416, 'materialOut', 0, 1, 'materialOut', '1', '1', 'C', 1,  {ts'2019-08-24 10:24:40'}, 1,  {ts'2019-08-24 10:26:40'}, 0, NULL, 699723998116028416);

IF NOT EXISTS(SELECT 1 FROM T_IM_INVSCHEMEGROUP_L WHERE FPKID='05Y=DSS2TI9R')
INSERT INTO T_IM_INVSCHEMEGROUP_L (FPKID, FID, FLOCALEID, FNAME, FFULLNAME) VALUES('05Y=DSS2TI9R', 699723998116028416, 'zh_CN', '领料出库单', '领料出库单');
IF NOT EXISTS(SELECT 1 FROM T_IM_INVSCHEMEGROUP_L WHERE FPKID='05Y=DSS2TI9S')
INSERT INTO T_IM_INVSCHEMEGROUP_L (FPKID, FID, FLOCALEID, FNAME, FFULLNAME) VALUES('05Y=DSS2TI9S', 699723998116028416, 'zh_TW', '領料出庫單', ' ');

