Index: AXimpl/Dynamics/InventoryOut/Converter/AxInventSyncCreator.cls.xml =================================================================== diff -u -r48760 -r48789 --- AXimpl/Dynamics/InventoryOut/Converter/AxInventSyncCreator.cls.xml (.../AxInventSyncCreator.cls.xml) (revision 48760) +++ AXimpl/Dynamics/InventoryOut/Converter/AxInventSyncCreator.cls.xml (.../AxInventSyncCreator.cls.xml) (revision 48789) @@ -71,7 +71,7 @@ If ..ProductRepository.BestaatViaID(PRNr) { #dim Product As DOM.PM.Product = ..ProductRepository.GeefViaID(PRNr) - If (..StockFirmaBepaler.Bepaal(Product)=##class(DOM.common.enu.InterneFirma).VanHoeckeNv()) { + If (..StockFirmaBepaler.BepaalVoorGewoneStock(Product)=##class(DOM.common.enu.InterneFirma).VanHoeckeNv()) { Set FysStock = +FysStock + +WVStock Set WVStock = "" } @@ -82,13 +82,19 @@ Set InventSyncProduct.class = "entity" Set InventSyncProduct.ConfigId = AxConfigId Set InventSyncProduct.ItemId = ..GeefIdentNummer(PRNr, PRNrSoprPrincipaal) + + //lijn + 2 moet ofwel bij hlx ofwel bij vh enkel naar linkstype kijken HH en HHZ naar halux rest naar vh + Set InventSyncProduct.QtyBlockedHLX = 0 Set InventSyncProduct.QtyBlockedVH = ..AXimplFormatter.FormatInventSyncProductQuantity($$$If(IsStockOverKinderen,0,..GeefQtyBlockedVH(PRNr,PRNrSoprPrincipaal,SOPRKindInCache))) Set InventSyncProduct.QtyHLX = ..AXimplFormatter.FormatInventSyncProductQuantity(+WVStock + +InventSyncProduct.QtyBlockedHLX) Set InventSyncProduct.QtyVH = ..AXimplFormatter.FormatInventSyncProductQuantity(+FysStock + +InventSyncProduct.QtyBlockedVH) Set InventSyncProduct.SequenceNr = ..SequenceNrGenerator.GeefVolgendProductVoorraadSyncBerichtId() Set InventSyncProduct.SOPRContractId = SoprContractId + //alle qtyies altijd 0 indien linktype S + + Quit InventSyncProduct ]]>