From 053cf74ad06869d46f7a810bb828cc77808abf39 Mon Sep 17 00:00:00 2001 From: Christian Albers Date: Thu, 4 Jul 2024 14:02:29 +0200 Subject: [PATCH] Aktualisierung bzgl. Mandant 200 --- g.rau/30_hooks.groovy | 6 +++--- g.rau/constantValues.groovy | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/g.rau/30_hooks.groovy b/g.rau/30_hooks.groovy index 3164782..f64867a 100644 --- a/g.rau/30_hooks.groovy +++ b/g.rau/30_hooks.groovy @@ -144,11 +144,11 @@ public class D3Hooks } /////////////////////////// - // eingefügt von CALB/d.velop AG / 2024.06.12 / Setzen des Mandanten bei SAP-Dokumenten (Mandant = 240) + // eingefügt von CALB/d.velop AG / 2024.06.12 / Setzen des Mandanten bei SAP-Dokumenten if ( ( isRepoIdInDocType( d3, docType.id, constantValues.MandantId ) ) && ( isRepoIdInDocType( d3, docType.id, constantValues.BuKrsId ) ) ) // Mandant / Buchungskreis ist in der Dokumentart enthalten { - if ( doc.field[ 39 ] == "240" ) + if ( doc.field[ 39 ] == constantValues.MandNr ) { if ( doc.field[ 1 ] ) { @@ -171,7 +171,7 @@ public class D3Hooks } } - // Einfügung Ende / Setzen des Mandanten bei SAP-Dokumenten (Mandant = 240) + // Einfügung Ende / Setzen des Mandanten bei SAP-Dokumenten /////////////////////////// diff --git a/g.rau/constantValues.groovy b/g.rau/constantValues.groovy index 65c0ac9..7ff91b2 100644 --- a/g.rau/constantValues.groovy +++ b/g.rau/constantValues.groovy @@ -11,4 +11,5 @@ public class constantValues static final int MandantId = 48; static final int BuKrsId = 1; static final int MatNrId = 31; + static final String MandNr = "200"; } \ No newline at end of file