-- 库存管理单据类型编码调整 --
IF EXISTS (SELECT 1 FROM t_bas_billtype WHERE fid = 366341889567236096 AND FNUMBER = 'im_InitBill_Standard_s'	       )    UPDATE t_bas_billtype SET FNUMBER = 'im_InitBill_STD_BT_S'	      WHERE fid = 366341889567236096   ;
IF EXISTS (SELECT 1 FROM t_bas_billtype WHERE fid = 366342412236234752 AND FNUMBER = 'im_OtherInBill_Standard_s'     )    UPDATE t_bas_billtype SET FNUMBER = 'im_OtherInBill_STD_BT_S'     WHERE fid = 366342412236234752 ;
IF EXISTS (SELECT 1 FROM t_bas_billtype WHERE fid = 366344074757678080 AND FNUMBER = 'im_OtherOutBill_Standard_s'    )    UPDATE t_bas_billtype SET FNUMBER = 'im_OtherOutBill_STD_BT_S'    WHERE fid = 366344074757678080  ;
IF EXISTS (SELECT 1 FROM t_bas_billtype WHERE fid = 366344669728089088 AND FNUMBER = 'im_OtherOutBill_Asset_s'       )    UPDATE t_bas_billtype SET FNUMBER = 'im_OtherOutBill_Asset_BT_S'  WHERE fid = 366344669728089088     ;
IF EXISTS (SELECT 1 FROM t_bas_billtype WHERE fid = 366348248593474560 AND FNUMBER = 'im_PurInBill_Standard_s'       )    UPDATE t_bas_billtype SET FNUMBER = 'im_PurInBill_STD_BT_S'       WHERE fid = 366348248593474560  ;
IF EXISTS (SELECT 1 FROM t_bas_billtype WHERE fid = 366351325157400576 AND FNUMBER = 'im_PurInBill_Asset_s'          )    UPDATE t_bas_billtype SET FNUMBER = 'im_PurInBill_Asset_BT_S'     WHERE fid = 366351325157400576     ;
IF EXISTS (SELECT 1 FROM t_bas_billtype WHERE fid = 366353457608663040 AND FNUMBER = 'im_PurInBill_Cost_s'           )    UPDATE t_bas_billtype SET FNUMBER = 'im_PurInBill_Cost_BT_S'      WHERE fid = 366353457608663040     ;
IF EXISTS (SELECT 1 FROM t_bas_billtype WHERE fid = 452682831861140480 AND FNUMBER = 'im_SalOutBill_Standard_s'      )    UPDATE t_bas_billtype SET FNUMBER = 'im_SalOutBill_STD_BT_S'      WHERE fid = 452682831861140480  ;
IF EXISTS (SELECT 1 FROM t_bas_billtype WHERE fid = 453393238762473472 AND FNUMBER = 'im_PurReturnBill_Standard_s'   )    UPDATE t_bas_billtype SET FNUMBER = 'im_PurReturnBill_STD_BT_S'   WHERE fid = 453393238762473472  ;
IF EXISTS (SELECT 1 FROM t_bas_billtype WHERE fid = 453521987453609984 AND FNUMBER = 'im_SalReturnBill_Standard_s'   )    UPDATE t_bas_billtype SET FNUMBER = 'im_SalReturnBill_STD_BT_S'   WHERE fid = 453521987453609984  ;
IF EXISTS (SELECT 1 FROM t_bas_billtype WHERE fid = 469455278694242304 AND FNUMBER = 'im_AdjStatusBill_s'            )    UPDATE t_bas_billtype SET FNUMBER = 'im_AdjStatusBill_BT_S'       WHERE fid = 469455278694242304     ;
IF EXISTS (SELECT 1 FROM t_bas_billtype WHERE fid = 469455737534323712 AND FNUMBER = 'im_AdjTypeBill_s'              )    UPDATE t_bas_billtype SET FNUMBER = 'im_AdjTypeBill_BT_S'         WHERE fid = 469455737534323712     ;
IF EXISTS (SELECT 1 FROM t_bas_billtype WHERE fid = 474446067409107968 AND FNUMBER = 'im_AllotInBill_Standard_s'     )    UPDATE t_bas_billtype SET FNUMBER = 'im_AllotInBill_STD_BT_S'     WHERE fid = 474446067409107968  ;
IF EXISTS (SELECT 1 FROM t_bas_billtype WHERE fid = 508388728129990656 AND FNUMBER = 'im_AllotDirectBill_Standard_s' )    UPDATE t_bas_billtype SET FNUMBER = 'im_AllotDirectBill_STD_BT_S' WHERE fid = 508388728129990656  ;
IF EXISTS (SELECT 1 FROM t_bas_billtype WHERE fid = 508390081774497792 AND FNUMBER = 'im_AllotOutBill_Standard_s'    )    UPDATE t_bas_billtype SET FNUMBER = 'im_AllotOutBill_STD_BT_S'    WHERE fid = 508390081774497792  ;
IF EXISTS (SELECT 1 FROM t_bas_billtype WHERE fid = 509136896182465536 AND FNUMBER = 'im_AllotApplyBill_Standard_s'  )    UPDATE t_bas_billtype SET FNUMBER = 'im_AllotApplyBill_STD_BT_S'  WHERE fid = 509136896182465536  ;
IF EXISTS (SELECT 1 FROM t_bas_billtype WHERE fid = 533937584401875968 AND FNUMBER = 'im_PurReturnBill_Asset_s'      )    UPDATE t_bas_billtype SET FNUMBER = 'im_PurReturnBill_Asset_BT_S' WHERE fid = 533937584401875968  ;
IF EXISTS (SELECT 1 FROM t_bas_billtype WHERE fid = 533942784952909824 AND FNUMBER = 'im_PurReturnBill_Cost_s'       )    UPDATE t_bas_billtype SET FNUMBER = 'im_PurReturnBill_Cost_BT_S'  WHERE fid = 533942784952909824  ;
IF EXISTS (SELECT 1 FROM t_bas_billtype WHERE fid = 533969567890894848 AND FNUMBER = 'im_AdjLotBill_s'               )    UPDATE t_bas_billtype SET FNUMBER = 'im_AdjLotBill_BT_S'          WHERE fid = 533969567890894848     ;
IF EXISTS (SELECT 1 FROM t_bas_billtype WHERE fid = 546480151634945024 AND FNUMBER = 'im_InvCheckOperate_Standard_s' )    UPDATE t_bas_billtype SET FNUMBER = 'im_InvCheckOperate_STD_BT_S' WHERE fid = 546480151634945024  ;
IF EXISTS (SELECT 1 FROM t_bas_billtype WHERE fid = 546484083341959168 AND FNUMBER = 'im_InvCheckList_Standard_s'    )    UPDATE t_bas_billtype SET FNUMBER = 'im_InvCheckList_STD_BT_S'    WHERE fid = 546484083341959168  ;
IF EXISTS (SELECT 1 FROM t_bas_billtype WHERE fid = 546484973549429760 AND FNUMBER = 'im_InvCheckIn_Standard_s'      )    UPDATE t_bas_billtype SET FNUMBER = 'im_InvCheckIn_STD_BT_S'      WHERE fid = 546484973549429760  ;
IF EXISTS (SELECT 1 FROM t_bas_billtype WHERE fid = 546485264516686848 AND FNUMBER = 'im_InvCheckOut_Standard_s'     )    UPDATE t_bas_billtype SET FNUMBER = 'im_InvCheckOut_STD_BT_S'     WHERE fid = 546485264516686848  ;
IF EXISTS (SELECT 1 FROM t_bas_billtype WHERE fid = 631624048106832896 AND FNUMBER = 'im_purreceivebill_Standard_s'  )    UPDATE t_bas_billtype SET FNUMBER = 'im_purreceivebill_STD_BT_S'  WHERE fid = 631624048106832896     ;
