From 688d2094d1fc55d80f48e8b9887386f0df75b2ce Mon Sep 17 00:00:00 2001
From: lazhen <17772815105@139.com>
Date: 星期二, 24 九月 2024 17:43:16 +0800
Subject: [PATCH] 发动机成品库存接口同步数据找不到对应产品
---
 _Main/BL/Type_InventoryInterfaceData/StaticMethod_SynchronizeInventory#575.qbl |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
diff --git "a/_Main/BL/Type_InventoryInterfaceData/StaticMethod_SynchronizeInventory\043575.qbl" "b/_Main/BL/Type_InventoryInterfaceData/StaticMethod_SynchronizeInventory\043575.qbl"
index b3ccbaf..2943776 100644
--- "a/_Main/BL/Type_InventoryInterfaceData/StaticMethod_SynchronizeInventory\043575.qbl"
+++ "b/_Main/BL/Type_InventoryInterfaceData/StaticMethod_SynchronizeInventory\043575.qbl"
@@ -18,7 +18,9 @@
     //鍙戝姩鏈烘垚鍝佸簱瀛�
     traverse( inventorys, Elements, inventory ){
       product    := select( macroplan, Product_MP, product, product.Notes() = inventory.FourCode() );
-      InventoryInterfaceData::Generate( owner, inventory.DDay(), product.ID(), inventory.BIPlace(), [Number]inventory.Total() );
+      if(  not isnull( product ) ){
+        InventoryInterfaceData::Generate( owner, inventory.DDay(), product.ID(), inventory.BIPlace(), [Number]inventory.Total() );
+      }
     }
   *]
 }
--
Gitblit v1.9.3