Index: APPS/Halux/Planning/Pitching/impl/BatchPitchDataExporter.cls.xml =================================================================== diff -u -r71733 -r71753 --- APPS/Halux/Planning/Pitching/impl/BatchPitchDataExporter.cls.xml (.../BatchPitchDataExporter.cls.xml) (revision 71733) +++ APPS/Halux/Planning/Pitching/impl/BatchPitchDataExporter.cls.xml (.../BatchPitchDataExporter.cls.xml) (revision 71753) @@ -58,8 +58,11 @@ Try { If ((Batch.IsReedsGestart()) && ($$$Not(..IsBatchExported(Batch.GeefID())))) { Do ..BatchPitchExportedService.BepaalVolgnummerEnBewaar(PitchedBatch) - Do ..TriggerBatchNaarObjectiveAansturingActie(Batch) - Do ..BatchPitchExportedService.MarkeerBatchAlsExportedNaarObjective(Batch.GeefID()) + #dim IsVerzondenNaarObjective As %Boolean = ..TriggerBatchNaarObjectiveAansturingActie(Batch) + + If (IsVerzondenNaarObjective) { + Do ..BatchPitchExportedService.MarkeerBatchAlsExportedNaarObjective(Batch.GeefID()) + } } } Catch { #dim Exception As TECH.Exceptions.Exception = ##class(TECH.ExceptionHandler).Catch() @@ -96,17 +99,24 @@ Batch:APPS.Halux.common.impl.BatchImpl 1 +%Boolean Index: vhUnitTest/APPS/Halux/Planning/Pitching/impl/BatchPitchDataExporter/ExporteerBatchPitchedDataNaarObjective/Test.cls.xml =================================================================== diff -u -r71733 -r71753 --- vhUnitTest/APPS/Halux/Planning/Pitching/impl/BatchPitchDataExporter/ExporteerBatchPitchedDataNaarObjective/Test.cls.xml (.../Test.cls.xml) (revision 71733) +++ vhUnitTest/APPS/Halux/Planning/Pitching/impl/BatchPitchDataExporter/ExporteerBatchPitchedDataNaarObjective/Test.cls.xml (.../Test.cls.xml) (revision 71753) @@ -132,6 +132,42 @@ ]]> + + + +