-- 2111委托代销退回库存事务出库更新、入库更新内容建议互换，具体见截图，否则委托代销与委托代销退出库存更新不平
DELETE FROM T_IM_INVSCHEMES WHERE FID=688859375443539968;
INSERT INTO T_IM_INVSCHEMES (FID, FNUMBER, FCREATORID, FMODIFIERID, FENABLE, FCREATETIME, FMODIFYTIME, FMASTERID, FGROUPID, FDISABLERID, FDISABLEDATE, FINVDC, FTRANSCEIVERTYPEID, FINVSTATUSID, FISOUTUPDATE, FOUTINVSTATUSID, FOWNERTYPE, FKEEPERTYPE, FOUTOWNERTYPE, FOUTKEEPERTYPE, FISINUPDATE, FISPRESET, FBILLFORMID, FISNOTUPDATE) VALUES(688859375443539968, '2111', 1, 13466739, '1',  {ts'2019-08-09 10:38:47'},  {ts'2020-02-17 09:29:50'}, 688859375443539968, 452663424212569088, 0, NULL, 'A', 687620499852974080, 691928582720825344, '1', 691928582720825344, 'bos_org', 'bd_customer', 'bos_org', 'bos_org', '1', '1', 'im_saloutbill', '0');

DELETE FROM T_IM_INVTYPEENTRY WHERE FENTRYID=827980548034035712;
INSERT INTO T_IM_INVTYPEENTRY (FID, FENTRYID, FSEQ, FISDEFAULT, FINVTYPEID) VALUES(688859375443539968, 827980548034035712, 1, '1', 688884427652393984);

DELETE FROM T_IM_INVTYPEENTRY WHERE FENTRYID in (688989159976761344,688989159976761345);


DELETE FROM T_IM_OUTINVTYPEENTRY WHERE FENTRYID=827980548034036736;
DELETE FROM T_IM_OUTINVTYPEENTRY WHERE FENTRYID=827980548034036737;
INSERT INTO T_IM_OUTINVTYPEENTRY (FID, FENTRYID, FSEQ, FISDEFAULT, FOUTINVTYPEID) VALUES(688859375443539968, 827980548034036736, 1, '1', 688884005529250816);
INSERT INTO T_IM_OUTINVTYPEENTRY (FID, FENTRYID, FSEQ, FISDEFAULT, FOUTINVTYPEID) VALUES(688859375443539968, 827980548034036737, 2, '0', 688884099724930048);

DELETE FROM T_IM_OUTINVTYPEENTRY WHERE FENTRYID=688989159976762368;




