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 +]]> +