From 14f01dcdb7ab31794c418c3b16600eb70a061f01 Mon Sep 17 00:00:00 2001
From: lazhen <17772815105@139.com>
Date: 星期一, 30 九月 2024 17:27:26 +0800
Subject: [PATCH] 发动机物流成本报表查询费用失败
---
_Main/BL/Type_CCEngineLogisticsCostReport/StaticMethod_Initialize.qbl | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/_Main/BL/Type_CCEngineLogisticsCostReport/StaticMethod_Initialize.qbl b/_Main/BL/Type_CCEngineLogisticsCostReport/StaticMethod_Initialize.qbl
index 1fadf1f..25ae29f 100644
--- a/_Main/BL/Type_CCEngineLogisticsCostReport/StaticMethod_Initialize.qbl
+++ b/_Main/BL/Type_CCEngineLogisticsCostReport/StaticMethod_Initialize.qbl
@@ -11,6 +11,7 @@
produtparent := CCEngineLogisticsCostReport::GetDefaultProductParent();
name := CCEngineLogisticsCostReport::GetDefaultName();
allunit := CCEngineLogisticsCostReport::GetDefaultAllUnit();
+ ccfactory := CCEngineLogisticsCostReport::GetCCFactory();
ccunit := CCEngineLogisticsCostReport::GetDefaultCCUnit();
ccline := CCEngineLogisticsCostReport::GetStockingPointCCLine();
ccrent := CCEngineLogisticsCostReport::GetStockingPointCCRent();
@@ -36,7 +37,7 @@
//鏌ヨ瀵瑰簲鐨勫彂鍔ㄦ満鎴愭湰
enginecosts := selectset( owner, LogisticsCostEngine, engine, engine.Generation().ToLower() = product.Generation().ToLower()
and engine.MLB_MQB() = product.MQBMLB()
- and engine.Factory() = ccunit );
+ and engine.Factory() = ccfactory );//ccunit
if( not isnull( enginecosts ) and enginecosts.Size() > 0 ){
ccrow := table.GetRow( row.Name() );
products.Add( product );
@@ -66,7 +67,7 @@
//鏌ヨ瀵瑰簲鐨勫彂鍔ㄦ満鎴愭湰
enginecosts := selectset( owner, LogisticsCostEngine, engine, engine.Generation().ToLower() = product.Generation().ToLower()
and engine.MLB_MQB() = product.MQBMLB()
- and engine.Factory() = ccunit );
+ and engine.Factory() = ccfactory );
if( not isnull( enginecosts ) and enginecosts.Size() > 0 ){
ccrow := table.GetRow( row.Name() );
products.Add( product );
@@ -110,7 +111,7 @@
//鍦ㄥ彂鍔ㄦ満鎴愭湰鍙傛暟琛ㄦ壘鍒板搴旂殑鍖呰瀹归噺
enginecost := selectobject( enginecosts, Elements, engine, engine.Generation().ToLower() = product.Generation().ToLower()
and engine.MLB_MQB() = product.MQBMLB()
- and engine.Factory() = ccunit );
+ and engine.Factory() = ccfactory );
//鍦ㄨ繍杈撴垚鏈弬鏁拌〃閲屾壘鍒板彂鍔ㄦ満瀵瑰簲杩愯緭鍗曚环鍜岃杞藉閲�
transcost := selectobject( transcosts, Elements, trans, trans.Origin() = ccline
and trans.Destination() = ccrent
@@ -143,7 +144,7 @@
//鏌ヨ瀵瑰簲鐨勫彂鍔ㄦ満鎴愭湰
enginecosts := selectset( owner, LogisticsCostEngine, engine, engine.Generation().ToLower() = product.Generation().ToLower()
and engine.MLB_MQB() = product.MQBMLB()
- and engine.Factory() = ccunit );
+ and engine.Factory() = ccfactory );
if( not isnull( enginecosts ) and enginecosts.Size() > 0 ){
row := table.GetRow( pisp.ProductID() );
products.Add( product );
--
Gitblit v1.9.3