Index: APPS/Halux/PPS/Document/impl/common/BatchNaarObjective/OptieGenerator.cls.xml =================================================================== diff -u -r74214 -r74215 --- APPS/Halux/PPS/Document/impl/common/BatchNaarObjective/OptieGenerator.cls.xml (.../OptieGenerator.cls.xml) (revision 74214) +++ APPS/Halux/PPS/Document/impl/common/BatchNaarObjective/OptieGenerator.cls.xml (.../OptieGenerator.cls.xml) (revision 74215) @@ -155,6 +155,14 @@ } } + If (##class(TECH.StringUtils).Equals(RolNaam, "Opvullijst") && (HuidigeMesFase >= 2)) { + If HalffabItem.%Extends(##class(DOM.PM.Maatwerk.Calc.HF.BewerktHalffabItem).%ClassName(1)) { + Set RolNaam = "DistanceTrim.Processed" + } Else { + Set RolNaam = "DistanceTrim.Standard" + } + } + Quit RolNaam ]]> Index: APPS/Halux/PPS/Document/impl/common/BatchNaarObjective/OptieGenerator/ProductOptiesGenerator.cls.xml =================================================================== diff -u -r74214 -r74215 --- APPS/Halux/PPS/Document/impl/common/BatchNaarObjective/OptieGenerator/ProductOptiesGenerator.cls.xml (.../ProductOptiesGenerator.cls.xml) (revision 74214) +++ APPS/Halux/PPS/Document/impl/common/BatchNaarObjective/OptieGenerator/ProductOptiesGenerator.cls.xml (.../ProductOptiesGenerator.cls.xml) (revision 74215) @@ -60,6 +60,7 @@ #dim TOBSynchroLinkageLength As %Integer = ..GeefHalffabItemLengteInfo(UitvoeringInfo, "TiponBlumotionSynchronisatieStang") #dim SideStabiliserLength As %Integer = ..GeefHalffabItemLengteInfo(UitvoeringInfo, "Zijstabilisering") #dim DesignElementFrontLength As %Integer = ..GeefHalffabItemLengteInfo(UitvoeringInfo, "InschuifElementVoor") + #dim DistanceTrimLength As %Integer = ..GeefHalffabItemLengteInfo(UitvoeringInfo, "Opvullijst") #dim Product As DOM.PM.MaatwerkProduct = ..ProductApi.GeefProduct(UitvoeringInfo.ProductID) @@ -86,6 +87,10 @@ Do Opties.Insert(..GeefOptieVoorLade(..PrependNul(SequentieNummerLade), "-" _ "DesignElementFrontLength", DesignElementFrontLength)) } + If $$$Not(DistanceTrimLength = 0) { + Do Opties.Insert(..GeefOptieVoorLade(..PrependNul(SequentieNummerLade), "-" _ "DistanceTrimLength", DistanceTrimLength)) + } + Quit Opties ]]> Index: vhUnitTest/APPS/Halux/PPS/Document/impl/common/BatchNaarObjective/OptieGenerator/ProductOptiesGenerator/GenereerOptiesVoorLade/Test.cls.xml =================================================================== diff -u -r74214 -r74215 --- vhUnitTest/APPS/Halux/PPS/Document/impl/common/BatchNaarObjective/OptieGenerator/ProductOptiesGenerator/GenereerOptiesVoorLade/Test.cls.xml (.../Test.cls.xml) (revision 74214) +++ vhUnitTest/APPS/Halux/PPS/Document/impl/common/BatchNaarObjective/OptieGenerator/ProductOptiesGenerator/GenereerOptiesVoorLade/Test.cls.xml (.../Test.cls.xml) (revision 74215) @@ -88,9 +88,11 @@ Do HalffabItemsBoomMock.VerwachtMethodCall("BevatRol", "TiponBlumotionSynchronisatieStang").DanReturn($$$True) Do HalffabItemsBoomMock.VerwachtMethodCall("BevatRol", "Zijstabilisering").DanReturn($$$True) Do HalffabItemsBoomMock.VerwachtMethodCall("BevatRol", "InschuifElementVoor").DanReturn($$$True) + Do HalffabItemsBoomMock.VerwachtMethodCall("BevatRol", "Opvullijst").DanReturn($$$True) Do HalffabItemsBoomMock.VerwachtMethodCall("GeefHalffabItem", "TiponBlumotionSynchronisatieStang").DanReturn(##class(DOM.PM.Maatwerk.Calc.HF.BewerktHalffabItem).%New("", "Dummy", "")) Do HalffabItemsBoomMock.VerwachtMethodCall("GeefHalffabItem", "Zijstabilisering").DanReturn(##class(DOM.PM.Maatwerk.Calc.HF.BewerktHalffabItem).%New("", "Dummy", "")) Do HalffabItemsBoomMock.VerwachtMethodCall("GeefHalffabItem", "InschuifElementVoor").DanReturn(##class(DOM.PM.Maatwerk.Calc.HF.BewerktHalffabItem).%New("", "Dummy", "")) + Do HalffabItemsBoomMock.VerwachtMethodCall("GeefHalffabItem", "Opvullijst").DanReturn(##class(DOM.PM.Maatwerk.Calc.HF.BewerktHalffabItem).%New("", "Dummy", "")) Do ProductMock.VerwachtMethodCall("GeefHalffabItemsBoom", "").DanReturn(HalffabItemsBoomMock) Set ProductApiMock = ##class(vhTest.Mock.DOM.PM.ProductAPI).%New() @@ -106,7 +108,7 @@ Set Generator = ##class(APPS.Halux.PPS.Document.impl.common.BatchNaarObjective.OptieGenerator.ProductOptiesGenerator).%New(ProductApiMock, DnaCodeServiceMock, IngegevenKenmerkenSpaceStepHelperMock, , HoutCertificaatServiceMock) #dim Resultaat As %ListOfObjects = Generator.GenereerOptiesVoorLade(ToeleveringStub, ..UitvoeringInfo) - Do $$$AssertEquals(Resultaat.Size, 12) + Do $$$AssertEquals(Resultaat.Size, 13) Do ..AssertOptie(Resultaat.GetAt(1), "LADE 00" _ ..#SequentieNummerLade, "00" _ ..#SequentieNummerLade _ "-PIN", ..#DummyDnaCode) Do ..AssertOptie(Resultaat.GetAt(2), "LADE 00" _ ..#SequentieNummerLade, "00" _ ..#SequentieNummerLade _ "-SHORTPIN", "ode") Do ..AssertOptie(Resultaat.GetAt(3), "LADE 00" _ ..#SequentieNummerLade, "00" _ ..#SequentieNummerLade _ "-Inventtransid", ..#DummyInventTransId) @@ -118,7 +120,8 @@ Do ..AssertOptie(Resultaat.GetAt(9), "LADE 00" _ ..#SequentieNummerLade, "00" _ ..#SequentieNummerLade _ "-Vhoss-info", "null") Do ..AssertOptie(Resultaat.GetAt(10), "LADE 00" _ ..#SequentieNummerLade, "00" _ ..#SequentieNummerLade _ "-TOBSynchroLinkageLength", "null") Do ..AssertOptie(Resultaat.GetAt(11), "LADE 00" _ ..#SequentieNummerLade, "00" _ ..#SequentieNummerLade _ "-SideStabiliserLength", "null") - Do ..AssertOptie(Resultaat.GetAt(12), "LADE 00" _ ..#SequentieNummerLade, "00" _ ..#SequentieNummerLade _ "-DesignElementFrontLength", "null") + Do ..AssertOptie(Resultaat.GetAt(12), "LADE 00" _ ..#SequentieNummerLade, "00" _ ..#SequentieNummerLade _ "-DesignElementFrontLength", "null") + Do ..AssertOptie(Resultaat.GetAt(13), "LADE 00" _ ..#SequentieNummerLade, "00" _ ..#SequentieNummerLade _ "-DistanceTrimLength", "null") Do ProductMock.Verifieer() Do ProductApiMock.Verifieer() @@ -142,6 +145,7 @@ Do HalffabItemsBoomMock.VerwachtMethodCall("BevatRol", "TiponBlumotionSynchronisatieStang").DanReturn($$$False) Do HalffabItemsBoomMock.VerwachtMethodCall("BevatRol", "Zijstabilisering").DanReturn($$$False) Do HalffabItemsBoomMock.VerwachtMethodCall("BevatRol", "InschuifElementVoor").DanReturn($$$False) + Do HalffabItemsBoomMock.VerwachtMethodCall("BevatRol", "Opvullijst").DanReturn($$$False) Do ProductMock.VerwachtMethodCall("GeefHalffabItemsBoom", "").DanReturn(HalffabItemsBoomMock) Set ProductApiMock = ##class(vhTest.Mock.DOM.PM.ProductAPI).%New() @@ -174,6 +178,7 @@ Do HalffabItemsBoomMock.VerwachtMethodCall("BevatRol", "TiponBlumotionSynchronisatieStang").DanReturn($$$False) Do HalffabItemsBoomMock.VerwachtMethodCall("BevatRol", "Zijstabilisering").DanReturn($$$False) Do HalffabItemsBoomMock.VerwachtMethodCall("BevatRol", "InschuifElementVoor").DanReturn($$$False) + Do HalffabItemsBoomMock.VerwachtMethodCall("BevatRol", "Opvullijst").DanReturn($$$False) Do ProductMock.VerwachtMethodCall("GeefHalffabItemsBoom", "").DanReturn(HalffabItemsBoomMock) Set ProductApiMock = ##class(vhTest.Mock.DOM.PM.ProductAPI).%New() @@ -212,6 +217,7 @@ Do HalffabItemsBoomMock.VerwachtMethodCall("BevatRol", "TiponBlumotionSynchronisatieStang").DanReturn($$$False) Do HalffabItemsBoomMock.VerwachtMethodCall("BevatRol", "Zijstabilisering").DanReturn($$$False) Do HalffabItemsBoomMock.VerwachtMethodCall("BevatRol", "InschuifElementVoor").DanReturn($$$False) + Do HalffabItemsBoomMock.VerwachtMethodCall("BevatRol", "Opvullijst").DanReturn($$$False) Do ProductMock.VerwachtMethodCall("GeefHalffabItemsBoom", "").DanReturn(HalffabItemsBoomMock) Set ProductApiMock = ##class(vhTest.Mock.DOM.PM.ProductAPI).%New()