Index: vhUnitTest/AXimpl/Utils/ConvertReqGroupId/Test.cls.xml =================================================================== diff -u -r43143 -r44863 --- vhUnitTest/AXimpl/Utils/ConvertReqGroupId/Test.cls.xml (.../Test.cls.xml) (revision 43143) +++ vhUnitTest/AXimpl/Utils/ConvertReqGroupId/Test.cls.xml (.../Test.cls.xml) (revision 44863) @@ -386,71 +386,14 @@ ]]> - + - - - - - - - - - - - - - - - - - - - - - - - - 1 AX.Uitgaand.PM.Product.impl.Product Index: AXimpl/Utils.cls.xml =================================================================== diff -u -r44858 -r44863 --- AXimpl/Utils.cls.xml (.../Utils.cls.xml) (revision 44858) +++ AXimpl/Utils.cls.xml (.../Utils.cls.xml) (revision 44863) @@ -199,14 +199,13 @@ #dim ReqGroupId As %String = "" #dim LeverancierNummer As %String = Product.Basis.LeverancierNummer #dim StockNietStock As %String = Product.Basis.StockNietStock - #dim SubGroep As %String = Product.Klassificatie.SubGroep - #dim SubGroepBevatVPK As %Boolean = ##class(TECH.StringUtils).Contains(SubGroep,"VPK/") - #dim SubGroepBevatVPA As %Boolean = ##class(TECH.StringUtils).Contains(SubGroep,"VPA/") If Firma = ##class(AXimpl.InterneFirmaInitialen).VanHoeckeNv() { - #dim ReqGroupIdVH As %String = "" #dim DefaultOrderTypeVHBE As %String = ..ConvertDefaultOrderType(Firma,Product) #dim PrimaryVendorId = ..ConvertPrimaryVendorId(Firma,Product) + #dim SubGroep As %String = Product.Klassificatie.SubGroep + #dim SubGroepBevatVPK As %Boolean = ##class(TECH.StringUtils).Contains(SubGroep,"VPK/") + #dim SubGroepBevatVPA As %Boolean = ##class(TECH.StringUtils).Contains(SubGroep,"VPA/") #dim SubGroepBevatBROslashTA As %Boolean = ##class(TECH.StringUtils).Contains(SubGroep,"BRO/TA") #dim Groep As %String = Product.Klassificatie.Groep #dim GroepBevatYYY As %Boolean = ##class(TECH.StringUtils).Contains(Groep,"YYY") @@ -231,63 +230,48 @@ } If ((SubGroepLaatsteDrieKarakters = "/OL") && (LeverancierNummer = "6051") && (DefaultOrderTypeVHBE = "Productie")) { - Set ReqGroupIdVH = "MTO" + Set ReqGroupId = "MTO" } ElseIf (DefaultOrderTypeVHBE = "Aankooporder"){ If ((SubGroepBevatVPK) || (SubGroepBevatVPA)) { - Set ReqGroupIdVH = "Handmatig" + Set ReqGroupId = "Handmatig" } ElseIf (StockNietStock '= "1") { If (LeverancierNummer = "5005"){ - Set ReqGroupIdVH = "BTO Blum" + Set ReqGroupId = "BTO Blum" } Else { - Set ReqGroupIdVH = "BTO ntBlum" + Set ReqGroupId = "BTO ntBlum" } } ElseIf (StockNietStock = "1") { If (PrimaryVendorId = "06332") { - Set ReqGroupIdVH = "BTO" + Set ReqGroupId = "BTO" } ElseIf(ScanType > 0) { - Set ReqGroupIdVH = "Min/Max" + Set ReqGroupId = "Min/Max" } ElseIf ((HoofdGroepBevatZZ) && (GroepBevatYYY) && (SubGroepBevatCAT)) { - Set ReqGroupIdVH = "Handmatig" + Set ReqGroupId = "Handmatig" } ElseIf ((HoofdGroepBevatTA) && (GroepBevatDRU) && (SubGroepBevatBROslashTA)) { - Set ReqGroupIdVH = "Handmatig" + Set ReqGroupId = "Handmatig" } ElseIf (LeverancierNummer = "5005"){ - Set ReqGroupIdVH = "Blum"_LeveringsDagen_"d ND" + Set ReqGroupId = "Blum"_LeveringsDagen_"d ND" } ElseIf (LeverancierNummer = "5002"){ - Set ReqGroupIdVH = "BTS Agofor" + Set ReqGroupId = "BTS Agofor" } ElseIf (LeverancierNummer = "5938"){ - Set ReqGroupIdVH = "BTS Baliko" + Set ReqGroupId = "BTS Baliko" } ElseIf (LeverancierNummer = "6494"){ - Set ReqGroupIdVH = "Handmatig" + Set ReqGroupId = "Handmatig" } ElseIf (LeverancierNummer = "6330"){ - Set ReqGroupIdVH = "Handmatig" + Set ReqGroupId = "Handmatig" } Else { - Set ReqGroupIdVH = "BTS-1W" + Set ReqGroupId = "BTS-1W" }}} Else { - Set ReqGroupIdVH = "Handmatig" + Set ReqGroupId = "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) || (SubGroepBevatVPA)) && (DefaultOrderTypeHLX ="Aankooporder")) { - Set ReqGroupIdHLX = "Handmatig" - }ElseIf ((Herbestelsurplus = "") && (Herbestelafronding ="") && (LeverancierNummer = "6051")) { - Set ReqGroupIdHLX = "BTO" - }ElseIf ((StockNietStock = "1") && (LeverancierNummer = "6494")) { - Set ReqGroupIdHLX = "Handmatig" - }ElseIf ((StockNietStock = "1") && (LeverancierNummer = "6330")) { - Set ReqGroupIdHLX = "Handmatig" - }Else { - Set ReqGroupIdHLX = "BTS-2D" - } - Set ReqGroupId = ReqGroupIdHLX - } Else { + If ((Herbestelsurplus = "") && (Herbestelafronding ="") && (LeverancierNummer = "6051")) { + Set ReqGroupId = "BTO" + }} Else { Write !,"Geef als parameter ofwel VHBE, ofwel HLX mee!" }