From e8be76a40ae0b3cb1d37a6e91e25c1284a50347f Mon Sep 17 00:00:00 2001
From: Administrator <renhui.hao@capgemini.com>
Date: 星期四, 21 九月 2023 20:59:42 +0800
Subject: [PATCH] Merge remote-tracking branch 'refs/remotes/origin/dev'

---
 _Main/BL/Type_MappingSaleBudge/StaticMethod_GetSheetBySeason.qbl |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)

diff --git a/_Main/BL/Type_MappingSaleBudge/StaticMethod_GetSheetBySeason.qbl b/_Main/BL/Type_MappingSaleBudge/StaticMethod_GetSheetBySeason.qbl
index 3426e30..db1803a 100644
--- a/_Main/BL/Type_MappingSaleBudge/StaticMethod_GetSheetBySeason.qbl
+++ b/_Main/BL/Type_MappingSaleBudge/StaticMethod_GetSheetBySeason.qbl
@@ -11,15 +11,10 @@
   TextBody:
   [*
     // yypsybs Sep-18-2023 (created)
-    
-    list := selectset( parent, 
-                       MappingCapacityAndSaleBudge, 
-                       item, 
-                       productNo.Find( item.ProductCode() ) > -1 );
     result := sum( parent, 
                    MappingCapacityAndSaleBudge, 
                    item, 
-                   productNo.Find( item.ProductCode() ) > -1,
+                   item.YearNo() = yearNo and productNo.Find( item.ProductCode() ) > -1,
                    item.GetCapacityInSheetInSeason( seasonNo ) );
     return result;
   *]

--
Gitblit v1.9.3