hongji.li
2023-09-14 54b30ae99f210572c008518d28262db44a49422e
物料标签同步库存规范优化
已修改1个文件
6 ■■■■■ 文件已修改
_Main/BL/Type_MatAttrSettingAndPlanningStrategy/StaticMethod_SynchronizeInventoryTargets.qbl 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_MatAttrSettingAndPlanningStrategy/StaticMethod_SynchronizeInventoryTargets.qbl
@@ -12,6 +12,12 @@
      product_MP := select( macroPlan, Product_MP, tempPMP, tempPMP.ID() = masaps.MatCode() );
      if ( not isnull( product_MP ) ) {
        traverse ( product_MP, ProductInStockingPoint_MP, pispmp ) {
          targetInventorySpecification := select( product_MP, InventorySpecification, tempIS, tempIS.ProductID() = product_MP.ID() and
                                                              tempIS.StockingPointID() = pispmp.StockingPointID() and
                                                              tempIS.Start()           = macroPlan.StartOfPlanning().Date() );
          if ( not isnull( targetInventorySpecification ) ) {
            targetInventorySpecification.Delete();
          }
          InventorySpecification::Create( product_MP,
                                          pispmp.StockingPoint_MP(),
                                          macroPlan.StartOfPlanning().Date(),