Index: vhUnitTest/APPS/VKP/Maatwerk/LadeRegistratie/impl/CodeGenerator/Genereer/Test.cls.xml =================================================================== diff -u -r57991 -r58080 --- vhUnitTest/APPS/VKP/Maatwerk/LadeRegistratie/impl/CodeGenerator/Genereer/Test.cls.xml (.../Test.cls.xml) (revision 57991) +++ vhUnitTest/APPS/VKP/Maatwerk/LadeRegistratie/impl/CodeGenerator/Genereer/Test.cls.xml (.../Test.cls.xml) (revision 58080) @@ -81,8 +81,8 @@ Else { Do RepositoryMock.VerwachtMethodCall("Bewaar", $$$ElkeWaarde).ExactAantalKeer(Aantal).DanDoeNiks() } - - #dim BestandsNaam As %String = "c:\temp\LadeCode "_..#Beginwaarde_" tot "_(..#Beginwaarde + Aantal - 1)_".txt" + #dim Path As %String = ##class(TECH.Files).AppendSubPath(##class(TECH.Config.ConfigMgr).Instance().GeefString("DefaultExportDirectory"),"OrgaluxBarcode") + #dim BestandsNaam As %String = Path_"\LadeCode "_..#Beginwaarde_" tot "_(..#Beginwaarde + Aantal - 1)_".txt" Set FileWriterMock = ##class(vhTest.Mock.TECH.File.FileWriter).%New() Do FileWriterMock.VerwachtMethodCall("Open", BestandsNaam, 1).ExactAantalKeer(1).DanDoeNiks() Do FileWriterMock.VerwachtMethodCall("Close",).ExactAantalKeer(1).DanDoeNiks() Index: APPS/VKP/Maatwerk/LadeRegistratie/impl/CodeGenerator.cls.xml =================================================================== diff -u -r58079 -r58080 --- APPS/VKP/Maatwerk/LadeRegistratie/impl/CodeGenerator.cls.xml (.../CodeGenerator.cls.xml) (revision 58079) +++ APPS/VKP/Maatwerk/LadeRegistratie/impl/CodeGenerator.cls.xml (.../CodeGenerator.cls.xml) (revision 58080) @@ -46,6 +46,7 @@ Do FileWriter.WriteLine("CodeNr,CodeGeformateerd,CodeBarcode,Formaat") #dim CodeNr As %String + #dim AantalGegenereerdeCodes As %Integer Try { For CodeNr=Vanaf:1:Vanaf+Aantal-1 { @@ -59,6 +60,7 @@ Set OrgaluxLadecode.GegenereerdeCode = Prefix_..Calculator.Code Set OrgaluxLadecode.Horolog = ##class(TECH.Context).Instance().GeefDateTimeAPI().CurrentHorolog() Do ..OrgaluxLadecodeRepository.Bewaar(OrgaluxLadecode) + //Set AantalGegenereerdeCodes = $Increment(AantalGegenereerdeCodes) } } } Catch {