Index: vhUnitTest/DOM/AKP/ToeleveringService/GeefKlant/Test.cls.xml
===================================================================
diff -u
--- vhUnitTest/DOM/AKP/ToeleveringService/GeefKlant/Test.cls.xml (revision 0)
+++ vhUnitTest/DOM/AKP/ToeleveringService/GeefKlant/Test.cls.xml (revision 33209)
@@ -0,0 +1,42 @@
+
+
+
+vhUnitTest.TestCase
+
+
+
+
+
+
+
+
Index: BL/PPS/TBX/DocsV1.cls.xml
===================================================================
diff -u -r32897 -r33209
--- BL/PPS/TBX/DocsV1.cls.xml (.../DocsV1.cls.xml) (revision 32897)
+++ BL/PPS/TBX/DocsV1.cls.xml (.../DocsV1.cls.xml) (revision 33209)
@@ -66,6 +66,11 @@
1
+
+DOM.AKP.ToeleveringService
+1
+
+
%String
@@ -137,7 +142,7 @@
-LabelPrinter:BL.Sys.LabelPrinter="",BatchService:APPS.Halux.common.BatchService="",ProductieSequentieRepository:APPS.Halux.common.ProductieSequentieRepository=""
+LabelPrinter:BL.Sys.LabelPrinter="",BatchService:APPS.Halux.common.BatchService="",ProductieSequentieRepository:APPS.Halux.common.ProductieSequentieRepository="",ToeleveringService:DOM.AKP.ToeleveringService
1
1
%Status
@@ -146,6 +151,7 @@
Set ..blLabelPrinter = $$$Implementation(LabelPrinter, ##class(BL.Sys.LabelPrinter).%New())
Set ..BatchService = $$$Implementation(BatchService, ##class(APPS.Halux.common.impl.BatchService).%New())
Set ..ProductieSequentieRepository = $$$Implementation(ProductieSequentieRepository, ##class(APPS.Halux.common.impl.ProductieSequentieRepository).%New())
+ Set ..ToeleveringService = $$$Inject(ToeleveringService,##class(DOM.AKP.impl.ToeleveringService).%New())
Quit $$$OK
]]>
@@ -1544,18 +1550,15 @@
#dim Toelevering As DOM.AKP.Toelevering = ##class(DOM.DomeinContext).Instance().GeefToeleveringAPI().GeefToelevering(TOENr)
#dim OrderID As %String = Toelevering.GeefOrderID()
- #dim Order As DOM.VKP.Order = ##class(DOM.DomeinContext).Instance().GeefOrderAPI().GeefOrder(OrderID)
- #dim KlantID As DOM.VKP.VanHoeckeKlantID = Order.GeefKlantID()
- #dim KlantNr As %String = ##class(DOM.DomeinContext).Instance().GeefLegacyPartijAPI().GeefKlantNummerVoorPartijID(KlantID)
- #dim Klant As DOM.VKP.VanHoeckeKlant = ##class(DOM.DomeinContext).Instance().GeefVerkoopAPI().GeefKlant(KlantID)
+ #dim Klant As DOM.VKP.VanHoeckeKlant = ..ToeleveringService.GeefKlant(TOENr)
Set pxLabel=##class(BL.PPS.TBX.sub.pxCommissie).%New()
Set pxLabel.Device = ..#LabelPrinter
Set pxLabel.Layout =..#LabelExtraCommissie
- Set:(KlantID'="K||4875")&&(KlantID'="K||2671") pxLabel.Logo = "logo\Logo VHZwart.svg"
+ Set:(Klant.GeefID()'="K||4875")&&(Klant.GeefID()'="K||2671") pxLabel.Logo = "logo\Logo VHZwart.svg"
Set pxLabel.KlantNaam = Klant.GeefNaam()
- Set pxLabel.CommissieRef = ..CommissieRef(KlantNr,OrderID)
+ Set pxLabel.CommissieRef = ..CommissieRef(Klant.GeefCode(),OrderID)
Set pxLabel.OrderNr = OrderID
Set pxLabel.TOENr = TOENr
Set pxLabel.Aantal = Aantal
Index: vhTest/Fake/DOM/VKP/VanHoeckeKlant.cls.xml
===================================================================
diff -u -r29059 -r33209
--- vhTest/Fake/DOM/VKP/VanHoeckeKlant.cls.xml (.../VanHoeckeKlant.cls.xml) (revision 29059)
+++ vhTest/Fake/DOM/VKP/VanHoeckeKlant.cls.xml (.../VanHoeckeKlant.cls.xml) (revision 33209)
@@ -9,6 +9,29 @@
1
+
+%String
+1
+
+
+
+KlantID:%String="K||1234"
+1
+1
+%Status
+1
+
+
+
+
+DOM.common.PartijID
+
+
+
DOM.VKP.LeverAdresList
%ListOfDataTypes
ELEMENTTYPE="DOM.PM.enu.ProductType"
+
+
+1
+ToeleveringID:%String
+DOM.VKP.VanHoeckeKlant
+
Index: vhTest/Mock/DOM/AKP/ToeleveringService.cls.xml
===================================================================
diff -u -r29059 -r33209
--- vhTest/Mock/DOM/AKP/ToeleveringService.cls.xml (.../ToeleveringService.cls.xml) (revision 29059)
+++ vhTest/Mock/DOM/AKP/ToeleveringService.cls.xml (.../ToeleveringService.cls.xml) (revision 33209)
@@ -8,6 +8,13 @@
1
DOM.AKP.ToeleveringService,Tools.Mock.MockClassBase
+
+ToeleveringID:%String
+DOM.VKP.VanHoeckeKlant
+
+
+
ToeleveringID:%String
%ListOfDataTypes
Index: vhUnitTest/APPS/OV/TestOrderInstellingenService.cls.xml
===================================================================
diff -u -r29059 -r33209
--- vhUnitTest/APPS/OV/TestOrderInstellingenService.cls.xml (.../TestOrderInstellingenService.cls.xml) (revision 29059)
+++ vhUnitTest/APPS/OV/TestOrderInstellingenService.cls.xml (.../TestOrderInstellingenService.cls.xml) (revision 33209)
@@ -29,8 +29,7 @@
Set OrderInstellingenService = ##class(APPS.OV.impl.OrderInstellingenService).%New()
Set Rekening = ##class(APPS.OV.impl.data.VoorkeuzeBoekhoudkundigeRekening).%New(800000,"GeenBoekhoudkundigeRekening")
Do Rekening.Save()
- }Catch Exception
- {
+ } Catch {
#dim E As TECH.Exceptions.Exception = ##class(TECH.ExceptionHandler).Catch()
Do $$$AssertEquals(E.GeefOmschrijving(),"Geen correcte boekhoudkundige rekening : 800000 : GeenBoekhoudkundigeRekening","Correcte foutmelding voor niet boekhoudkundige rekening.")
Set FoutGeraised = 1
Index: vhUnitTest/BL/PPS/TBX/DocsV1/EtikettenCommissieOne/Test.cls.xml
===================================================================
diff -u -r32923 -r33209
--- vhUnitTest/BL/PPS/TBX/DocsV1/EtikettenCommissieOne/Test.cls.xml (.../Test.cls.xml) (revision 32923)
+++ vhUnitTest/BL/PPS/TBX/DocsV1/EtikettenCommissieOne/Test.cls.xml (.../Test.cls.xml) (revision 33209)
@@ -5,58 +5,54 @@
-KlantID:%String
+KlantID:%String,ToeleveringId:%String
1
+DOM.AKP.ToeleveringService
Index: DOM/AKP/impl/ToeleveringService.cls.xml
===================================================================
diff -u -r29059 -r33209
--- DOM/AKP/impl/ToeleveringService.cls.xml (.../ToeleveringService.cls.xml) (revision 29059)
+++ DOM/AKP/impl/ToeleveringService.cls.xml (.../ToeleveringService.cls.xml) (revision 33209)
@@ -43,6 +43,20 @@
+
+
+ToeleveringID:%String
+DOM.VKP.VanHoeckeKlant
+
+