Index: APPS/Halux/AAP/DnaCodeService.cls.xml =================================================================== diff -u -r63344 -r63349 --- APPS/Halux/AAP/DnaCodeService.cls.xml (.../DnaCodeService.cls.xml) (revision 63344) +++ APPS/Halux/AAP/DnaCodeService.cls.xml (.../DnaCodeService.cls.xml) (revision 63349) @@ -220,7 +220,17 @@ #dim ProductID As %String = ToeleveringLijn.GeefProductID() #dim Toelevering As DOM.AKP.Toelevering= ToeleveringLijn.GeefToelevering() Set DnaCode = ##class(DOM.Halux.AAP.DnaCode).%New() - Set DnaCode.ProductNummer = ##class(DOM.PM.Maatwerk.enu.GenerischProductID).LBXSSTV1() + If ..ProductTypeAPI.IsLegraboxProduct(ProductID) { + Set DnaCode.ProductNummer = ##class(DOM.PM.Maatwerk.enu.GenerischProductID).LBXSSTV1() + } + ElseIf ..ProductTypeAPI.IsTandemboxProduct(ProductID) { + Set DnaCode.ProductNummer = ##class(DOM.PM.Maatwerk.enu.GenerischProductID).TBXSSTV1() + } + ElseIf ..ProductTypeAPI.IsTAORboxProduct(ProductID) { + Set DnaCode.ProductNummer = ##class(DOM.PM.Maatwerk.enu.GenerischProductID).TAORSSTV1() + } Else { + Do ##class(TECH.ExceptionHandler).Throw(##class(TECH.Exceptions.UnimplementedException).%New("SpaceStep voor MVX genereert nog geen DnaCodes!")) + } Set DnaCode.DnaCode = ..DnaCodeGenerator.GenereerDnaCode("O") Set DnaCode.Toelevering = Toelevering.GeefID() Set DnaCode.KlantNummer = Toelevering.GeefKlantID()