From 3c1d2f30791126fd586d31eeed57de809766353c Mon Sep 17 00:00:00 2001
From: xiaoding721 <33130084+xiaoding721@users.noreply.github.com>
Date: 星期四, 02 一月 2025 19:39:50 +0800
Subject: [PATCH] Merge branch 'dev' of http://47.101.211.7:10101/r/VWED into dev
---
_Main/BL/Type_InventoryInterfaceData/StaticMethod_Generate.qbl | 15 ++++++++-------
1 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/_Main/BL/Type_InventoryInterfaceData/StaticMethod_Generate.qbl b/_Main/BL/Type_InventoryInterfaceData/StaticMethod_Generate.qbl
index 6f4953b..8943020 100644
--- a/_Main/BL/Type_InventoryInterfaceData/StaticMethod_Generate.qbl
+++ b/_Main/BL/Type_InventoryInterfaceData/StaticMethod_Generate.qbl
@@ -8,24 +8,25 @@
String inventory,
String fac,
Number quantitiy
-)
+) as InventoryInterfaceDataDetail
{
TextBody:
[*
// 鐢勫叞楦� Jul-26-2024 (created)
- iid := selectobject( interfaceDataset, InventoryInterfaceData, iid, iid.Date() = date and iid.PartNumber() = partno );
+ iid := selectobject( interfaceDataset, InventoryInterfaceData, iid, iid.Date() = date and iid.PartNumber() = partno );
if( isnull( iid ) ){
- iid := interfaceDataset.InventoryInterfaceData( relnew, Date := date, PartNumber := partno );
+ iid := interfaceDataset.InventoryInterfaceData( relnew, Date := date, PartNumber := partno );
}
- product := selectobject( macroplan, Product_MP, product, product.ID() = partno );
+ product := selectobject( macroplan, Product_MP, product, product.ID() = partno );
if( not isnull( product ) and exists( product.GetAllParent(), Elements, proparent, proparent.ID() = 'PL' ) ){
quantitiy := floor( [Real]quantitiy / 4 );
}
- iidl := selectobject( iid, InventoryInterfaceDataDetail, detail, detail.InventoryPoint() = inventory and detail.Fac() = fac );
+ 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;
*]
}
--
Gitblit v1.9.3