Index: vhUnitTest/AXimpl/Utils/ConvertReqGroupId/Test.cls.xml
===================================================================
diff -u
--- vhUnitTest/AXimpl/Utils/ConvertReqGroupId/Test.cls.xml (revision 0)
+++ vhUnitTest/AXimpl/Utils/ConvertReqGroupId/Test.cls.xml (revision 42531)
@@ -0,0 +1,441 @@
+
+
+
+vhUnitTest.TestCase
+
+
+%String
+1000
+
+
+
+AX.Uitgaand.PM.impl.ConvertorLeveranciersnummerVanHoeckeNaarHalux
+1
+
+
+
+DOM.PARTIJ.PartijAPI
+1
+
+
+
+AX.Uitgaand.PM.VrijgegProduct.impl.VoorraadInstellingCalculator
+1
+
+
+
+
+
+
+
+aTestName:%String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1
+AX.Uitgaand.PM.Product.impl.Product
+
+
+
+
+1
+AXimpl.Utils
+
+
+
+
+
+
Index: vhUnitTest/AXimpl/Utils/ConvertPrimaryVendorId/Test.cls.xml
===================================================================
diff -u
--- vhUnitTest/AXimpl/Utils/ConvertPrimaryVendorId/Test.cls.xml (revision 0)
+++ vhUnitTest/AXimpl/Utils/ConvertPrimaryVendorId/Test.cls.xml (revision 42531)
@@ -0,0 +1,237 @@
+
+
+
+vhUnitTest.TestCase
+
+
+%String
+1000
+
+
+
+AX.Uitgaand.PM.impl.ConvertorLeveranciersnummerVanHoeckeNaarHalux
+1
+
+
+
+DOM.PARTIJ.PartijAPI
+1
+
+
+
+AX.Uitgaand.PM.VrijgegProduct.impl.VoorraadInstellingCalculator
+1
+
+
+
+
+
+
+
+aTestName:%String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1
+AX.Uitgaand.PM.Product.impl.Product
+
+
+
+
+1
+AXimpl.Utils
+
+
+
+
+
+
Index: vhUnitTest/AXimpl/Utils/ConvertUOMSeqGroupId/Test.cls.xml
===================================================================
diff -u
--- vhUnitTest/AXimpl/Utils/ConvertUOMSeqGroupId/Test.cls.xml (revision 0)
+++ vhUnitTest/AXimpl/Utils/ConvertUOMSeqGroupId/Test.cls.xml (revision 42531)
@@ -0,0 +1,468 @@
+
+
+
+vhUnitTest.TestCase
+
+
+%String
+1000
+
+
+
+AX.Uitgaand.PM.impl.ConvertorLeveranciersnummerVanHoeckeNaarHalux
+1
+
+
+
+DOM.PARTIJ.PartijAPI
+1
+
+
+
+AX.Uitgaand.PM.VrijgegProduct.impl.VoorraadInstellingCalculator
+1
+
+
+
+
+
+
+
+aTestName:%String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1
+AX.Uitgaand.PM.Product.impl.Product
+
+
+
+
+1
+AXimpl.Utils
+
+
+
+
+
+
Index: vhUnitTest/AXimpl/Utils/ConvertDefaultOrderType/Test.cls.xml
===================================================================
diff -u
--- vhUnitTest/AXimpl/Utils/ConvertDefaultOrderType/Test.cls.xml (revision 0)
+++ vhUnitTest/AXimpl/Utils/ConvertDefaultOrderType/Test.cls.xml (revision 42531)
@@ -0,0 +1,157 @@
+
+
+
+vhUnitTest.TestCase
+
+
+%String
+1000
+
+
+
+AX.Uitgaand.PM.impl.ConvertorLeveranciersnummerVanHoeckeNaarHalux
+1
+
+
+
+DOM.PARTIJ.PartijAPI
+1
+
+
+
+AX.Uitgaand.PM.VrijgegProduct.impl.VoorraadInstellingCalculator
+1
+
+
+
+
+
+
+
+aTestName:%String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1
+AX.Uitgaand.PM.Product.impl.Product
+
+
+
+
+1
+AXimpl.Utils
+
+
+
+
+
+
Index: vhTest/Fake/AXimpl/Utils.cls.xml
===================================================================
diff -u -r42197 -r42531
--- vhTest/Fake/AXimpl/Utils.cls.xml (.../Utils.cls.xml) (revision 42197)
+++ vhTest/Fake/AXimpl/Utils.cls.xml (.../Utils.cls.xml) (revision 42531)
@@ -14,13 +14,41 @@
]]>
+
+Firma:AXimpl.InterneFirmaInitialen,Product:AX.Uitgaand.PM.Product.impl.Product
+%String
+
+
+
Firma:AXimpl.InterneFirmaInitialen,Klant:DOM.VKP.VanHoeckeKlant
%String
+
+Firma:AXimpl.InterneFirmaInitialen,Product:AX.Uitgaand.PM.Product.impl.Product
+%String
+
+
+
+
+Firma:AXimpl.InterneFirmaInitialen,Product:AX.Uitgaand.PM.Product.impl.Product
+%String
+
+
+
+
+Product:AX.Uitgaand.PM.Product.impl.Product
+%String
+
+
+
Firma:AXimpl.InterneFirmaInitialen,Leverancier:DOM.AKP.Leverancier
%String
Index: vhTest/Mock/AXimpl/Utils.cls.xml
===================================================================
diff -u -r42355 -r42531
--- vhTest/Mock/AXimpl/Utils.cls.xml (.../Utils.cls.xml) (revision 42355)
+++ vhTest/Mock/AXimpl/Utils.cls.xml (.../Utils.cls.xml) (revision 42531)
@@ -9,6 +9,13 @@
AXimpl.Utils,Tools.Mock.MockClassBase
right
+
+Firma:AXimpl.InterneFirmaInitialen,Product:AX.Uitgaand.PM.Product.impl.Product
+%String
+
+
+
Firma:AXimpl.InterneFirmaInitialen,Klant:DOM.VKP.VanHoeckeKlant
%String
@@ -36,6 +43,27 @@
+
+
+Firma:AXimpl.InterneFirmaInitialen,Product:AX.Uitgaand.PM.Product.impl.Product
+%String
+
+
+
+
+Firma:AXimpl.InterneFirmaInitialen,Product:AX.Uitgaand.PM.Product.impl.Product
+%String
+
+
+
+
+Product:AX.Uitgaand.PM.Product.impl.Product
+%String
+
+
Index: AXimpl/Utils.cls.xml
===================================================================
diff -u -r42197 -r42531
--- AXimpl/Utils.cls.xml (.../Utils.cls.xml) (revision 42197)
+++ AXimpl/Utils.cls.xml (.../Utils.cls.xml) (revision 42531)
@@ -3,37 +3,81 @@
TECH.Mockable
+
+AX.Uitgaand.PM.impl.ConvertorLeveranciersnummerVanHoeckeNaarHalux
+1
+
+
DOM.PARTIJ.PartijAPI
1
+
+AX.Uitgaand.PM.VrijgegProduct.impl.VoorraadInstellingCalculator
+1
+
+
-PartijApi:DOM.PARTIJ.PartijAPI
+PartijApi:DOM.PARTIJ.PartijAPI,ConvertorLeveranciersnummerVanHoeckeNaarHalux:AX.Uitgaand.PM.impl.ConvertorLeveranciersnummerVanHoeckeNaarHalux,VoorraadInstellingCalculator:AX.Uitgaand.PM.VrijgegProduct.impl.VoorraadInstellingCalculator
1
1
%Status
1
+
+Firma:AXimpl.InterneFirmaInitialen,Product:AX.Uitgaand.PM.Product.impl.Product
+%String
+
+
+
Firma:AXimpl.InterneFirmaInitialen,Klant:DOM.VKP.VanHoeckeKlant
%String
+
+
+Firma:AXimpl.InterneFirmaInitialen,Product:AX.Uitgaand.PM.Product.impl.Product
+%String
+
+
+
+
+Firma:AXimpl.InterneFirmaInitialen,Product:AX.Uitgaand.PM.Product.impl.Product
+%String
+ 99) {
+ //W !,"Voor product "_Product.BasisGetObjectId()_" zijn er meer dan 99 LeveringsDagen berekend, nml.: "_LeveringsDagen
+ Do ##class(TECH.ExceptionHandler).Throw(##class(TECH.Exceptions.IllegalArgumentException).%New(Exceptiestring))
+ }
+
+ If ((SubGroepLaatsteDrieKarakters = "/OL") && (LeverancierNummer = "6051") && (DefaultOrderTypeVHBE = "Productie")) {
+ Set ReqGroupIdVH = "MTO"
+ } ElseIf (DefaultOrderTypeVHBE = "Aankooporder"){
+ If ((SubGroepBevatVPK '= 0) || (SubGroepBevatVPA '= 0)) {
+ Set ReqGroupIdVH = "Handmatig"
+ } ElseIf (StockNietStock '= "1") {
+ If (LeverancierNummer = "5005"){
+ Set ReqGroupIdVH = "BTO Blum"
+ } Else {
+ Set ReqGroupIdVH = "BTO ntBlum"
+ }
+ } ElseIf (StockNietStock = "1") {
+ If (ScanType > 0) {
+ Set ReqGroupIdVH = "Min/Max"
+ } ElseIf (LeverancierNummer = "5005"){
+ Set ReqGroupIdVH = "Blum"_LeveringsDagen_"d ND"
+ } ElseIf (LeverancierNummer = "5002"){
+ Set ReqGroupIdVH = "BTS Agofor"
+ } ElseIf (LeverancierNummer = "5938"){
+ Set ReqGroupIdVH = "BTS Baliko"
+ } ElseIf ((HoofdGroepBevatZZ '= 0) && (GroepBevatYYY '= 0) && (SubGroepBevatCAT '= 0)) {
+ Set ReqGroupIdVH = "Handmatig"
+ } ElseIf (LeverancierNummer = "6494"){
+ Set ReqGroupIdVH = "Handmatig"
+ } ElseIf (LeverancierNummer = "6330"){
+ Set ReqGroupIdVH = "Handmatig"
+ } Else {
+ Set ReqGroupIdVH = "BTS-1W"
+ }}} Else {
+ Set ReqGroupIdVH = "Handmatig"
+ }
+ Set ReqGroupId = ReqGroupIdVH
+ } ElseIf Firma = ##class(AXimpl.InterneFirmaInitialen).HaluxNv() {
+ #dim ReqGroupIdHLX As %String = ""
+ #dim SubGroepEersteVierKarakters As %String = $Extract(SubGroep,1,4)
+ #dim Herbestelsurplus As %String = Product.Basis.HerbestelSurplus
+ #dim Herbestelafronding As %String = Product.Basis.HerbestelAfronding
+ #dim DefaultOrderTypeHLX As %String = ..ConvertDefaultOrderType(Firma,Product)
+
+ If ((StockNietStock = "1") && (SubGroepEersteVierKarakters = "12AL")) {
+ Set ReqGroupIdHLX = "MTS-1W"
+ }
+ ElseIf (((SubGroepBevatVPK '= 0) || (SubGroepBevatVPA '= 0)) && (DefaultOrderTypeHLX ="Aankooporder")) {
+ Set ReqGroupIdHLX = "Handmatig"
+ }
+ ElseIf ((Herbestelsurplus = "") && (Herbestelafronding ="") && (LeverancierNummer = "6051")) {
+ Set ReqGroupIdHLX = "BTO"
+ }
+ Else {
+ Set ReqGroupIdHLX = "BTS-2D"
+ }
+ Set ReqGroupId = ReqGroupIdHLX
+ } Else {
+ Write !,"Geef als parameter ofwel VHBE, ofwel HLX mee!"
+ }
+
+ Quit ReqGroupId
+]]>
+
+
+
+Product:AX.Uitgaand.PM.Product.impl.Product
+%String
+ 0) {
+ If (((KleinVerpakking = 0) || (KleinVerpakking = "")) && ((NormaleVerpakking = 0) || (NormaleVerpakking = 1) || (NormaleVerpakking = "")) && ((PalletAantal = 0) || (PalletAantal = ""))) {
+ Set UOMSeqGroupId = "STK-GVP"
+ } ElseIf (Leverancier = "5005") {
+ If (((KleinVerpakking = 0) || (KleinVerpakking = "")) && ((NormaleVerpakking = 0) || (NormaleVerpakking = "")) && (PalletAantal > 0)) {
+ Set UOMSeqGroupId = "STK-GVP-PLT"
+ } ElseIf (((KleinVerpakking = 0) || (KleinVerpakking = "")) && (NormaleVerpakking = 1) && (PalletAantal > 0)) {
+ Set UOMSeqGroupId = "STK-GVP-PLT"
+ } ElseIf (((KleinVerpakking = 0) || (KleinVerpakking = "")) && (NormaleVerpakking > 1) && (PalletAantal > 0)) {
+ Set UOMSeqGroupId = "STK-KVP-GVP-PLT"
+ } ElseIf ((KleinVerpakking > 0) && (NormaleVerpakking > 0) && (PalletAantal > 0)) {
+ Set UOMSeqGroupId = "STK-KVP-NVP-GVP-PLT"
+ }
+ } Else {
+ If (((KleinVerpakking = 0) || (KleinVerpakking = "")) && ((NormaleVerpakking = 0) || (NormaleVerpakking = "")) && (PalletAantal > 0)) {
+ Set UOMSeqGroupId = "STK-GVP"
+ } ElseIf (((KleinVerpakking = 0) || (KleinVerpakking = "")) && (NormaleVerpakking = 1) && (PalletAantal > 0)) {
+ Set UOMSeqGroupId = "STK-GVP"
+ } ElseIf (((KleinVerpakking = 0) || (KleinVerpakking = "")) && (NormaleVerpakking > 1) && (PalletAantal > 0)) {
+ Set UOMSeqGroupId = "STK-KVP-GVP"
+ } ElseIf ((KleinVerpakking > 0) && (NormaleVerpakking > 0) && (PalletAantal > 0)) {
+ Set UOMSeqGroupId = "STK-KVP-NVP-GVP"
+ }
+ }
+ }
+
+ Quit UOMSeqGroupId
+]]>
+