From f0b5a93331432794466e54d10d77f837a61d37fa Mon Sep 17 00:00:00 2001
From: admin <admin@admin.com>
Date: 星期三, 23 十月 2024 19:02:20 +0800
Subject: [PATCH] 大连料架报表优化

---
 _Main/BL/Type_DL_EngineRackCell/StaticMethod_CreateData.qbl |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/_Main/BL/Type_DL_EngineRackCell/StaticMethod_CreateData.qbl b/_Main/BL/Type_DL_EngineRackCell/StaticMethod_CreateData.qbl
index 22afbd5..40e0407 100644
--- a/_Main/BL/Type_DL_EngineRackCell/StaticMethod_CreateData.qbl
+++ b/_Main/BL/Type_DL_EngineRackCell/StaticMethod_CreateData.qbl
@@ -130,6 +130,16 @@
                                   tempPISPIP.PlannedInventoryLevelEnd() );
         cell.DLRentalWarehouseStorageFees( [Number] ( guard( ( cell.TotalQuantityOfMaterialRacks() - plannedInventory1 ) / lce.PackagingCapacity(), 0 ) * guard( lcmr.StoragePrice(), 1 ) ) );
         
+        // CC澶栫搴撴竻娲楄垂鐢細鍙戝姩鏈哄叆搴撻噺 / 鍖呰瀹归噺 * 鏂欐灦娓呮礂鍗曚环銆傚彂鍔ㄦ満鍏ュ簱閲忓彇鍙戝姩鏈洪攢閲忥紝鍖呰瀹归噺鍙栬嚜鍙戝姩鏈烘垚鏈〃銆傛枡鏋舵竻娲楀崟浠峰彇鏂欐灦鎴愭湰琛ㄣ��
+        clearnQuantity := sum( macroPlan, SalesDemand.astype( Forecast ), tempF, 
+                               tempF.Product_MP().Generation()         =  dlerr.Generation()       and
+                               tempF.Product_MP().MQBMLB()             =  dlerr.MLB_MQB()          and
+                               tempF.StockingPointID()                 =  "澶ц繛鍙戝姩鏈虹殑闀挎槬澶栫搴�" and
+                               ( tempF.StartDate() - 2 ).Year()        = dlerc.StartDate().Year()  and
+                               ( tempF.StartDate() - 2 ).Month()       = dlerc.StartDate().Month(),
+                               tempF.FulfilledQuantity() );
+        cell.CleaningCost( [Number] ( guard( clearnQuantity / lce.PackagingCapacity(), 0 ) * guard( lcmr.CleanPrice(), 1 ) ) );
+        
         // DL澶栫搴撴竻娲楄垂鐢細鍙戝姩鏈哄叆搴撻噺 / 鍖呰瀹归噺 * 鏂欐灦娓呮礂鍗曚环銆傚彂鍔ㄦ満鍏ュ簱閲忓彇鍙戝姩鏈洪攢閲忥紝鍖呰瀹归噺鍙栬嚜鍙戝姩鏈烘垚鏈〃銆傛枡鏋舵竻娲楀崟浠峰彇鏂欐灦鎴愭湰琛ㄣ��
         cell.CleaningCost( [Number] ( guard( outboundQuantity / lce.PackagingCapacity(), 0 ) * guard( lcmr.CleanPrice(), 1 ) ) );
         

--
Gitblit v1.9.3