Index: APPS/Halux/common/BatchService.cls.xml
===================================================================
diff -u -r29059 -r38152
--- APPS/Halux/common/BatchService.cls.xml (.../BatchService.cls.xml) (revision 29059)
+++ APPS/Halux/common/BatchService.cls.xml (.../BatchService.cls.xml) (revision 38152)
@@ -16,6 +16,12 @@
APPS.Halux.common.Batch
+
+1
+BatchID:%Integer
+APPS.Halux.common.enu.ProductieGroep
+
+
1
GeplandOp:%Date,Categorie:APPS.Halux.common.enu.Categorie
Index: vhUnitTest/APPS/Halux/common/impl/SequentieService/MaakSequentie/BatchService.cls.xml
===================================================================
diff -u -r29059 -r38152
--- vhUnitTest/APPS/Halux/common/impl/SequentieService/MaakSequentie/BatchService.cls.xml (.../BatchService.cls.xml) (revision 29059)
+++ vhUnitTest/APPS/Halux/common/impl/SequentieService/MaakSequentie/BatchService.cls.xml (.../BatchService.cls.xml) (revision 38152)
@@ -20,7 +20,13 @@
Do ##class(TECH.ExceptionHandler).Throw(##class(TECH.Exceptions.BaseException).%New(Batch_" wordt niet herkend door "_..%ClassName(1)))
}
- #dim ProductieGroep As APPS.Halux.common.enu.ProductieGroep = ..GeefProductieGroep(BatchID)
+ #dim ProductieGroep As APPS.Halux.common.enu.ProductieGroep
+ If BatchID [ "VHOSS" {
+ Set ProductieGroep = ##class(APPS.Halux.common.enu.ProductieGroep).Kast()
+ }Else{
+ Set ProductieGroep = ##class(APPS.Halux.common.enu.ProductieGroep).Pallet()
+ }
+
If ProductieGroep = ##class(APPS.Halux.common.enu.ProductieGroep).Kast() {
Do Batch.IndienMethodCall("GeefToeleveringIterator").DanReturn(..GeefToeleveringVHossIt(Categorie))
}Else{
@@ -74,21 +80,6 @@
Quit Categorie
]]>
-
-
-BatchID:%String
-1
-APPS.Halux.common.enu.ProductieGroep
-
-
Index: vhTest/Mock/APPS/Halux/common/BatchService.cls.xml
===================================================================
diff -u -r29059 -r38152
--- vhTest/Mock/APPS/Halux/common/BatchService.cls.xml (.../BatchService.cls.xml) (revision 29059)
+++ vhTest/Mock/APPS/Halux/common/BatchService.cls.xml (.../BatchService.cls.xml) (revision 38152)
@@ -50,6 +50,13 @@
]]>
+
+BatchID:%Integer
+APPS.Halux.common.enu.ProductieGroep
+
+
+
GeplandOp:%Date,Categorie:APPS.Halux.common.enu.Categorie
APPS.Halux.common.Batch
Index: APPS/Halux/common/impl/BatchService.cls.xml
===================================================================
diff -u -r29059 -r38152
--- APPS/Halux/common/impl/BatchService.cls.xml (.../BatchService.cls.xml) (revision 29059)
+++ APPS/Halux/common/impl/BatchService.cls.xml (.../BatchService.cls.xml) (revision 38152)
@@ -19,6 +19,13 @@
]]>
+
+BatchID:%Integer
+APPS.Halux.common.enu.ProductieGroep
+
+
+
GeplandOp:%Date,Categorie:APPS.Halux.common.enu.Categorie
APPS.Halux.common.Batch
Index: vhUnitTest/APPS/Halux/common/TestBatchService.cls.xml
===================================================================
diff -u -r36313 -r38152
--- vhUnitTest/APPS/Halux/common/TestBatchService.cls.xml (.../TestBatchService.cls.xml) (revision 36313)
+++ vhUnitTest/APPS/Halux/common/TestBatchService.cls.xml (.../TestBatchService.cls.xml) (revision 38152)
@@ -114,6 +114,23 @@
do $$$AssertEquals(Batch.GeefCategorie(),##class(APPS.Halux.common.enu.Categorie).Kaderdeur())
]]>
+
+
+
+