Index: vhUnitTest/APPS/Halux/Planning/impl/BatchService/GeefInitieleLijnVoorToelevering/Test.cls.xml =================================================================== diff -u -r31187 -r31189 --- vhUnitTest/APPS/Halux/Planning/impl/BatchService/GeefInitieleLijnVoorToelevering/Test.cls.xml (.../Test.cls.xml) (revision 31187) +++ vhUnitTest/APPS/Halux/Planning/impl/BatchService/GeefInitieleLijnVoorToelevering/Test.cls.xml (.../Test.cls.xml) (revision 31189) @@ -3,6 +3,25 @@ vhUnitTest.TestCase + + + + + + + + Index: APPS/Halux/Planning/impl/BatchService.cls.xml =================================================================== diff -u -r31179 -r31189 --- APPS/Halux/Planning/impl/BatchService.cls.xml (.../BatchService.cls.xml) (revision 31179) +++ APPS/Halux/Planning/impl/BatchService.cls.xml (.../BatchService.cls.xml) (revision 31189) @@ -211,23 +211,76 @@ if (Lijnen.Count() = 1) { set Lijn = Lijnen.GetAt(1) - } elseif (##class(TECH.StringUtils).Equals(Categorie, ##class(APPS.Halux.common.enu.Categorie).Tandembox(), ##class(APPS.Halux.common.enu.Categorie).Legrabox(), ##class(APPS.Halux.common.enu.Categorie).TAORbox())) { + } else { #dim ProductLijn As DOM.AKP.ProductToeleveringLijn = Toelevering.GeefTypeToeleveringLijnIterator(##class(DOM.AKP.enu.ToeleveringLijnType).Product()).Next() #dim ProductieGroep As APPS.Halux.common.enu.ProductieGroep = ..ProductieService.GeefProductieGroep(Toelevering.GeefKlantID(), ProductLijn.GeefProductID()) - - if (##class(TECH.StringUtils).Equals(ProductieGroep, ##class(APPS.Halux.common.enu.ProductieGroep).Stuk(), ##class(APPS.Halux.common.enu.ProductieGroep).Kast())) { - set Lijn = ##class(APPS.Halux.common.enu.ProductieLijn).Een() - } elseif ##class(TECH.StringUtils).Equals(ProductieGroep, ##class(APPS.Halux.common.enu.ProductieGroep).LosseComponenten(), ##class(APPS.Halux.common.enu.ProductieGroep).BulkPerOnderdeelGegroepeerd()) { - set Lijn = ##class(APPS.Halux.common.enu.ProductieLijn).Drie() - } else { - set Lijn = ##class(APPS.Halux.common.enu.ProductieLijn).Twee() + + if (Categorie = ##class(APPS.Halux.common.enu.Categorie).Legrabox()) { + set Lijn = ..BepaalLijnVoorLBX(ProductieGroep) + } elseif (Categorie = ##class(APPS.Halux.common.enu.Categorie).TAORbox()) { + set Lijn = ..BepaalLijnVoorTAX(ProductieGroep) + } elseif (Categorie = ##class(APPS.Halux.common.enu.Categorie).Tandembox()) { + set Lijn = ..BepaalLijnVoorTBX(ProductieGroep) } } + + quit Lijn +]]> + + + +ProductieGroep:APPS.Halux.common.enu.ProductieLijn +1 +TECH.String + + +ProductieGroep:APPS.Halux.common.enu.ProductieLijn +1 +TECH.String + + + + +ProductieGroep:APPS.Halux.common.enu.ProductieLijn +1 +TECH.String + + + Toelevering:DOM.AKP.Toelevering,MaatwerkBatch:APPS.Halux.Planning.dto.MaatwerkBatch 1