lazhen
2025-01-02 36591e37383ae4bbb4cc2d3a3c98a35ab0a321dc
发动机库存同步时同步DType字段
已修改2个文件
10 ■■■■■ 文件已修改
_Main/BL/Type_InventoryInterfaceData/StaticMethod_Generate.qbl 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_InventoryInterfaceData/StaticMethod_SynchronizeInventory#575.qbl 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_InventoryInterfaceData/StaticMethod_Generate.qbl
@@ -8,7 +8,7 @@
  String inventory,
  String fac,
  Number quantitiy
)
) as InventoryInterfaceDataDetail
{
  TextBody:
  [*
@@ -23,9 +23,10 @@
    }
    iidl := selectobject( iid, InventoryInterfaceDataDetail, detail, detail.InventoryPoint() = inventory and detail.Fac() = fac );
    if( isnull( iidl ) ){
      iid.InventoryInterfaceDataDetail( relnew, Date := date, PartNumber := partno, InventoryPoint := inventory, Fac := fac, Quantity := quantitiy );
      iidl        := iid.InventoryInterfaceDataDetail( relnew, Date := date, PartNumber := partno, InventoryPoint := inventory, Fac := fac, Quantity := quantitiy );
    }else{
      iidl.Quantity( );
      iidl.Quantity( quantitiy );
    }
    return iidl;
  *]
}
_Main/BL/Type_InventoryInterfaceData/StaticMethod_SynchronizeInventory#575.qbl
@@ -17,7 +17,8 @@
    // 获取指定日期库存接口数据
    //发动机成品库存
    traverse( inventorys, Elements, inventory ){
      InventoryInterfaceData::Generate( macroplan, owner, inventory.DDay(), inventory.FourCode(), inventory.BIPlace(), inventory.Fac(), [Number]inventory.Total() );
      iidl              := InventoryInterfaceData::Generate( macroplan, owner, inventory.DDay(), inventory.FourCode(), inventory.BIPlace(), inventory.Fac(), [Number]inventory.Total() );
      iidl.Dtype( inventory.DType() );
    }
  *]
}