Index: vhUnitTest/APPS/Halux/PPS/Document/impl/common/BatchNaarObjective/OptieGenerator/ProductOptiesGenerator/GenereerOptiesVoorLade/Test.cls.xml
===================================================================
diff -u -r71572 -r71573
--- vhUnitTest/APPS/Halux/PPS/Document/impl/common/BatchNaarObjective/OptieGenerator/ProductOptiesGenerator/GenereerOptiesVoorLade/Test.cls.xml (.../Test.cls.xml) (revision 71572)
+++ vhUnitTest/APPS/Halux/PPS/Document/impl/common/BatchNaarObjective/OptieGenerator/ProductOptiesGenerator/GenereerOptiesVoorLade/Test.cls.xml (.../Test.cls.xml) (revision 71573)
@@ -23,7 +23,7 @@
111111
-
+
+
+
+
+
+
+
+
+
1
APPS.Halux.PPS.Activiteit.impl.common.dto.BatchNaarObjectiveUitvoeringInfo
Index: APPS/Halux/PPS/Document/impl/common/BatchNaarObjective/OptieGenerator/ProductOptiesGenerator.cls.xml
===================================================================
diff -u -r71572 -r71573
--- APPS/Halux/PPS/Document/impl/common/BatchNaarObjective/OptieGenerator/ProductOptiesGenerator.cls.xml (.../ProductOptiesGenerator.cls.xml) (revision 71572)
+++ APPS/Halux/PPS/Document/impl/common/BatchNaarObjective/OptieGenerator/ProductOptiesGenerator.cls.xml (.../ProductOptiesGenerator.cls.xml) (revision 71573)
@@ -72,6 +72,12 @@
#dim DnaCodeObject As DOM.Halux.AAP.DnaCode = DnaCodeLijst.GetAt(1)
Set DnaCode = DnaCodeObject.DnaCode
Set DnaCodeIngekort = $Extract(DnaCode, $Length(DnaCode) - 2, $Length(DnaCode))
+ } ElseIf (DnaCodeLijst.Size = 0) {
+ Set Exception = ##class(TECH.Exceptions.DataNotFoundException).%New("Geen Dnacode gevonden voor toelevering '" _ ToeleveringId _ "', product '" _ ProductId _ "' en sequentienummer '" _ SequentieNummerBinnenBatch _ "'.")
+ do ##class(TECH.ExceptionHandler).Throw(Exception)
+ } ElseIf (DnaCodeLijst.Size > 1) {
+ Set Exception = ##class(TECH.Exceptions.DataCorruptException).%New("Meerdere dnacodes gevonden voor toelevering '" _ ToeleveringId _ "', product '" _ ProductId _ "' en sequentienummer '" _ SequentieNummerBinnenBatch _ "'.")
+ do ##class(TECH.ExceptionHandler).Throw(Exception)
}
Do LijstOpties.Insert(..GeefOptieVoorLade(SequentieNummerBinnenToelevering, "-" _ "DNA-code", DnaCode))