Index: AX/Uitgaand/PM/VrijgegProduct/impl/VrijgegProductDixfConverter.cls.xml
===================================================================
diff -u -r42836 -r43097
--- AX/Uitgaand/PM/VrijgegProduct/impl/VrijgegProductDixfConverter.cls.xml (.../VrijgegProductDixfConverter.cls.xml) (revision 42836)
+++ AX/Uitgaand/PM/VrijgegProduct/impl/VrijgegProductDixfConverter.cls.xml (.../VrijgegProductDixfConverter.cls.xml) (revision 43097)
@@ -215,7 +215,6 @@
Set ..AxProduct.ADUProductSubGroupId = ..BepaalADUProductSubGroupId(Product)
Set ..AxProduct.ADUCostInsuranceFreight = ..BepaalADUCostInsuranceFreight(Product)
Set ..AxProduct.ADUPriceContrMargineId = ..BepaalADUPriceContrMargineId(Product)
- Set ..AxProduct.ItemBuyerGroupId = ..BepaalItemBuyerGroupIdVH(Product)
Set ..AxProduct.standardPalletQuantity = $$$If(Product.Basis.LeverancierNummer = "5005",Product.Basis.PalletAantal,"")
Set ..AxProduct.ABCValue = Product.Basis.ABCTransport
]]>
@@ -241,6 +240,7 @@
Set ..AxProduct.InventItemSalesSetupLowestQty = ..BepaalInventItemSalesSetupLowestQtyVH(Product)
Set ..AxProduct.InventItemSalesSetupMultipleQty = ..BepaalInventItemSalesSetupMultipleQtyVH(Product)
Set ..AxProduct.InventSiteId = "VHEPN1"
+ Set ..AxProduct.ItemBuyerGroupId = ..BepaalItemBuyerGroupIdVH(Product)
Set ..AxProduct.PmfProductType = ..BepaalPmfProductTypeVH(Product)
Set ..AxProduct.ReqGroupId = ..Utils.ConvertReqGroupId(##class(AXimpl.InterneFirmaInitialen).VanHoeckeNv(),Product)
Set ..AxProduct.InventItemPurchSetupCalendarDays = ..BepaalInventItemPurchSetupCalendarDaysVH(Product)
@@ -271,6 +271,7 @@
Set ..AxProduct.InventItemSalesSetupLowestQty = "1"
Set ..AxProduct.InventItemSalesSetupMultipleQty = "1"
Set ..AxProduct.InventSiteId = "HLXEPN1"
+ Set ..AxProduct.ItemBuyerGroupId = ..BepaalItemBuyerGroupIdHLX(Product)
Set ..AxProduct.PmfProductType = ..BepaalPmfProductTypeHLX(Product)
Set ..AxProduct.ReqGroupId = ..Utils.ConvertReqGroupId(##class(AXimpl.InterneFirmaInitialen).HaluxNv(),Product)
Set ..AxProduct.InventItemPurchSetupCalendarDays = "1"
@@ -462,7 +463,7 @@
#dim BepaalInventItemPurchSetupStopped As %String
#dim Uitverkoop As %String = Product.Basis.Uitverkoop
- If (Uitverkoop = "") {
+ If (+Uitverkoop = 0) {
Set BepaalInventItemPurchSetupStopped = "Nee"
}
Else {
@@ -823,27 +824,52 @@
1
%String
(..DateTimeApi.CurrentDate() - 180)) {
- Set ItemBuyerGroupIdVH = "Nieuw"
- } ElseIf (Product.Basis.Uitverkoop '= "") {
- Set ItemBuyerGroupIdVH = "Uitlopend"
- } ElseIf ((Leverancier = "7580") || (Leverancier = "7560") || (Leverancier = "7551")) {
- Set ItemBuyerGroupIdVH = "Nieuw"
+ If ((VoorraadBewegingDatum > (..DateTimeApi.CurrentDate() - 180)) && (StockNietStock = 1)) {
+ Set ItemBuyerGroupId = "Nieuw"
+ //} ElseIf ((Product.Basis.Uitverkoop '= "") && (StockNietStock = 1)) {
+ // Set ItemBuyerGroupId = "Uitlopend"
+ } ElseIf (((Leverancier = "7580") || (Leverancier = "7560") || (Leverancier = "7551")) && (StockNietStock = 1)){
+ Set ItemBuyerGroupId = "Nieuw"
+ } ElseIf (ScanType > 0){
+ Set ItemBuyerGroupId = "Limiet"
} Else {
- Set ItemBuyerGroupIdVH = ""
+ Set ItemBuyerGroupId = ""
}
}
- Quit ItemBuyerGroupIdVH
+ Quit ItemBuyerGroupId
]]>
+
+Product:AX.Uitgaand.PM.Product.impl.Product
+1
+%String
+
+
+
Product:AX.Uitgaand.PM.Product.impl.Product
1
Index: vhUnitTest/AX/Uitgaand/PM/VrijgegProduct/impl/VrijgegProductDixfConverter/Test.cls.xml
===================================================================
diff -u -r42836 -r43097
--- vhUnitTest/AX/Uitgaand/PM/VrijgegProduct/impl/VrijgegProductDixfConverter/Test.cls.xml (.../Test.cls.xml) (revision 42836)
+++ vhUnitTest/AX/Uitgaand/PM/VrijgegProduct/impl/VrijgegProductDixfConverter/Test.cls.xml (.../Test.cls.xml) (revision 43097)
@@ -522,15 +522,15 @@
]]>
-
+
+
+
+
+
-
+
-
+
-
-
+
-
+}
+*/
+]]>
+
-
+
-
+
-
+
-
+
+
+
+
+
+
+
+
+