From 56c0e837d2caae5f6a9ecda085715d6e29757ece Mon Sep 17 00:00:00 2001
From: Kevin Kok Khah Whey <khahwhey.kok@3ds.com>
Date: 星期三, 27 九月 2023 18:45:27 +0800
Subject: [PATCH] Kevin: Added test method and modified GlobalOTDTable.SetIsLinkedWithFinishedGoodAttributes method.

---
 _Main/BL/Type_GlobalDTOTable/Method_SetIsLinkedWithFinishedGoodAttributes.qbl |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/_Main/BL/Type_GlobalDTOTable/Method_SetIsLinkedWithFinishedGoodAttributes.qbl b/_Main/BL/Type_GlobalDTOTable/Method_SetIsLinkedWithFinishedGoodAttributes.qbl
index 6aedc24..5a4ba17 100644
--- a/_Main/BL/Type_GlobalDTOTable/Method_SetIsLinkedWithFinishedGoodAttributes.qbl
+++ b/_Main/BL/Type_GlobalDTOTable/Method_SetIsLinkedWithFinishedGoodAttributes.qbl
@@ -30,12 +30,16 @@
     traverse( this, Global_MappingProduct_MP, product,
               product.ProductMajorType() = "鎴愬搧" )
     {
+      uniquebomids := construct( Strings );
+      product.IsLinkedWithFinishedGood( false );
       product.SetIsLinkedWithFinishedGoodAttributes_Recursive( 0, // depth
                                                                100, // maxdepth
                                                                productspool,
                                                                operationspool,
-                                                               operationbomspool );
-      
+                                                               operationbomspool,
+                                                               uniquebomids );
+      uniquebomids := uniquebomids.Unique();
+      product.BOMCount( uniquebomids.Size() );
     }
   *]
 }

--
Gitblit v1.9.3