Index: AXimpl/Admin/Common/HerverpakteSoprService.cls.xml
===================================================================
diff -u -r50979 -r50991
--- AXimpl/Admin/Common/HerverpakteSoprService.cls.xml (.../HerverpakteSoprService.cls.xml) (revision 50979)
+++ AXimpl/Admin/Common/HerverpakteSoprService.cls.xml (.../HerverpakteSoprService.cls.xml) (revision 50991)
@@ -8,6 +8,11 @@
1
+
+AXimpl.Admin.Common.HerverpakteSoprService.KindProductService
+1
+
+
DOM.PM.ProductAPI
1
@@ -18,21 +23,16 @@
1
-
-AX.Uitgaand.PM.impl.Convertor.Sopr.ProductConvertor
-1
-
-
-ProductApi:DOM.PM.ProductAPI,ProductRolApi:DOM.PM.ProductRolAPI,SoprProductConverter:AX.Uitgaand.PM.impl.Convertor.Sopr.ProductConvertor
+ProductApi:DOM.PM.ProductAPI,ProductRolApi:DOM.PM.ProductRolAPI,KindProductService:AXimpl.Admin.Common.HerverpakteSoprService.KindProductService
1
1
%Status
1
@@ -51,9 +51,9 @@
If (..ProductRolApi.BestaatAdministratiefProduct(ProductId)) {
If (..ProductRolApi.IsSamengesteldProduct(ProductId)) {
If (..ProductRolApi.GeefSamengesteldProduct(ProductId).IsStockOverKinderen()) {
- Set KindSoprProductId = ..GeefKindProductId(ProductId, $$$False, "Sopr")
+ Set KindSoprProductId = ..KindProductService.GeefKindProductId(ProductId, $$$False, "Sopr")
If (($$$HasLength(KindSoprProductId)) && (..ProductRolApi.IsSamengesteldProduct(KindSoprProductId))) {
- Set SoprKindProductId = ..GeefKindProductId(KindSoprProductId, $$$True, "SoprKind")
+ Set SoprKindProductId = ..KindProductService.GeefKindProductId(KindSoprProductId, $$$True, "SoprKind")
If $$$HasLength(SoprKindProductId) {
Set ..KindSoprProductId = KindSoprProductId
}
@@ -120,39 +120,6 @@
-
-
-
-OPGELET: Dit gaat ervan uit dat er slechts 1 kind mag zijn (dat een Sopr moet zijn die een SoprKind heeft), wat volgens de huidige business-logic het geval is.
-ProductId:%Integer,MagMeerdereKinderenHebben:%Boolean,ZoekenOpSoprOfSoprKind:%String
-1
-%String
-
-