{"title":"Codeunit 7314 Warehouse Availability Mgt., extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/7314-warehouse-availability-mgt/points/","author":"JOP-AL","license":"Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/","subject":"Microsoft Dynamics 365 Business Central","checked":"2026-11-20","changed":"2026-10-05","object":{"type":"codeunit","id":7314,"name":"Warehouse Availability Mgt.","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/7314-warehouse-availability-mgt/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/7314-warehouse-availability-mgt/source/","path":"src/Layers/W1/BaseApp/Warehouse/Availability/WarehouseAvailabilityMgt.Codeunit.al","commit":"4303e5e584d3aa5d9e98cbc615525a5396ad6ed7","lines":"a line is <source url>#L<line>"},"steps":{"event":"[line, \"event\", name, handled]: raises an event of this object; handled 1 when it has an IsHandled parameter","call":"[line, \"call\", name, arguments]: calls a procedure of this object","ext":"[line, \"ext\", type, id, name, arguments]: calls a procedure of another object, through a variable declared with that type","write":"[line, \"write\", table id, method, 1 when called with true]: Insert, Modify, ModifyAll, Delete, DeleteAll or Rename","validate":"[line, \"validate\", table id, field name]","run":"[line, \"run\", type, id]: Codeunit.Run, Page.Run, Report.Run and their kin"},"objects":{"table:337":{"name":"Reservation Entry","url":"https://jonas-paprotka.de/ref/table/337-reservation-entry/"},"table:7360":{"name":"Reservation Entry Buffer","url":"https://jonas-paprotka.de/ref/table/7360-reservation-entry-buffer/"},"table:14":{"name":"Location","url":"https://jonas-paprotka.de/ref/table/14-location/"},"table:7354":{"name":"Bin","url":"https://jonas-paprotka.de/ref/table/7354-bin/"},"table:5767":{"name":"Warehouse Activity Line","url":"https://jonas-paprotka.de/ref/table/5767-warehouse-activity-line/"},"table:7312":{"name":"Warehouse Entry","url":"https://jonas-paprotka.de/ref/table/7312-warehouse-entry/"},"table:7302":{"name":"Bin Content","url":"https://jonas-paprotka.de/ref/table/7302-bin-content/"},"table:6565":{"name":"Item Tracking Setup","url":"https://jonas-paprotka.de/ref/table/6565-item-tracking-setup/"},"codeunit:7312":{"name":"Create Pick","url":"https://jonas-paprotka.de/ref/codeunit/7312-create-pick/"},"table:7330":{"name":"Bin Content Buffer","url":"https://jonas-paprotka.de/ref/table/7330-bin-content-buffer/"},"table:7321":{"name":"Warehouse Shipment Line","url":"https://jonas-paprotka.de/ref/table/7321-warehouse-shipment-line/"},"codeunit:10":{"name":"Type Helper","url":"https://jonas-paprotka.de/ref/codeunit/10-type-helper/"},"codeunit:353":{"name":"Item Availability Forms Mgt","url":"https://jonas-paprotka.de/ref/codeunit/353-item-availability-forms-mgt/"}},"procs":[{"name":"CalcLineReservedQtyOnInvt","line":40,"kind":"procedure","params":8,"steps":[[53,"ext","table",337,"SetSourceFilter",5],[55,"ext","table",337,"SetSourceFilter",2],[59,"event","OnCalcLineReservedQtyOnInvtOnSetSourceFilters",1],[61,"ext","table",337,"SetSourceFilter",5],[72,"ext","table",337,"SetTrackingFilterFromItemTrackingSetupIfNotBlank",1],[78,"call","CalcQtyRegisteredPick",1],[80,"call","ValidateQtyPickedInShipmentBin",6],[83,"call","CalcQtyOutstandingPick",6],[91,"event","OnAfterCalcLineReservedQtyOnInvt",0]]},{"name":"CalcReservQtyOnPicksShips","line":95,"kind":"procedure","params":4,"steps":[[99,"call","CalcReservQtyOnPicksShipsWithItemTracking",5]]},{"name":"CalcReservQtyOnPicksShipsWithItemTracking","line":103,"kind":"procedure","params":5,"steps":[[113,"event","OnBeforeCalcReservQtyOnPicksShipsWithItemTracking",1],[133,"event","OnBeforeOpenCalcRsvQtyOnPickShipWithITQuery",0],[147,"write",7360,"Modify"],[149,"write",7360,"Insert"],[155,"call","CalcQtyRegisteredPick",6],[157,"call","ValidateQtyPickedInShipmentBin",6],[159,"call","CalcQtyOutstandingPick",6]]},{"name":"CalcLineReservQtyOnPicksShips","line":169,"kind":"procedure","params":7,"steps":[[176,"call","CalcQtyPickedOnWhseShipmentLine",4],[177,"event","OnCalcLineReservQtyOnPicksShipsOnAfterCalcPickedNotYetShippedQty",0],[180,"call","CalcQtyOutstandingPick",6]]},{"name":"CalcInvtAvailQty","line":188,"kind":"procedure","params":4,"steps":[[203,"event","OnBeforeCalcInvtAvailQty",1],[215,"call","CalcQtyRcvdNotAvailable",3],[217,"call","CalcQtyAssgndtoPick",4],[219,"ext","table",14,"RequireShipment",1],[220,"call","CalcQtyShipped",3],[221,"call","CalcReservQtyOnPicksShips",4],[223,"call","CalcQtyOnDedicatedBins",3],[225,"call","CalcQtyAssignedToPutAway",4],[228,"event","OnAfterCalcReservedQtyOnInventory",0],[231,"event","OnAfterCalcQtyPicked",0]]},{"name":"CalcQtyRcvdNotAvailable","line":250,"kind":"procedure","access":"local","params":3,"steps":[[266,"event","OnCalcQtyRcvdNotAvailableOnBeforeCalcSums",0],[276,"write",7354,"Insert"],[282,"call","CalcQtyOnBin",5],[289,"event","OnAfterCalcQtyRcvdNotAvailable",0]]},{"name":"CalcQtyAssgndtoPick","line":293,"kind":"procedure","params":4,"steps":[[318,"event","OnCalcQtyAssgndtoPickOnAfterSetFilters",0]]},{"name":"CalcQtyAssignedToMove","line":323,"kind":"procedure","params":2,"steps":[[333,"ext","table",5767,"SetTrackingFilterFromWhseItemTrackingLineIfNotBlank",1]]},{"name":"CalcQtyOnDedicatedBins","line":390,"kind":"procedure","params":4,"steps":[[400,"ext","table",7312,"SetTrackingFilterFromItemTrackingSetupIfNotBlank",1],[404,"event","OnAfterCalcQtyOnDedicatedBins",0]]},{"name":"CalcQtyOnBin","line":408,"kind":"procedure","params":5,"steps":[[420,"ext","table",7312,"SetTrackingFilterFromItemTrackingSetupIfNotBlank",1]]},{"name":"CalcQtyOnBlockedITOrOnBlockedOutbndBins","line":425,"kind":"procedure","params":4,"steps":[[433,"ext","table",7302,"SetTrackingFilterFromItemTrackingSetupifNotBlankIfRequired",1],[440,"ext","table",7302,"CalcQtyWithBlockedItemTracking",0],[441,"event","OnCalcQtyOnBlockedITOrOnBlockedOutbndBinsOnBeforeNext",0],[444,"event","OnAfterCalcQtyOnBlockedITOrOnBlockedOutbndBins",0]]},{"name":"CalcQtyOnOutboundBins","line":447,"kind":"procedure","params":5,"steps":[[455,"event","OnBeforeCalcQtyOnOutboundBins",1],[465,"call","CalcQtyOnOutboundBinsOnDirectedPutAwayPickLocation",5],[468,"ext","table",6565,"TrackingExists",0],[469,"call","GetOutboundBinsOnBasicWarehouseLocation",5],[471,"call","ExcludeDedicatedBinContentFromTempBinContentBuffer",2]]},{"name":"CalcQtyOnOutboundBinsOnDirectedPutAwayPickLocation","line":483,"kind":"procedure","access":"local","params":5,"steps":[[494,"ext","table",7312,"SetCalculationFilters",5],[495,"ext","codeunit",7312,"GetBinTypeFilter",1]]},{"name":"GetOutboundBinsOnBasicWarehouseLocation","line":506,"kind":"procedure","params":5,"steps":[[513,"write",7330,"DeleteAll"],[527,"ext","table",7312,"SetCalculationFilters",5],[534,"event","OnGetOutboundBinsOnBasicWarehouseLocationOnAfterSetWarehouseEntryFilters",0],[539,"call","CalcQtyOnBin",5],[548,"write",7330,"Insert"],[558,"call","CalcQtyOnBin",5],[566,"write",7330,"Insert"],[573,"event","OnAfterGetOutboundBinsOnBasicWarehouseLocation",0]]},{"name":"CalcQtyOnSpecialBinsOnLocation","line":576,"kind":"procedure","params":5,"steps":[[581,"call","GetSpecialBins",2],[587,"call","CalcQtyOnBin",5]]},{"name":"GetSpecialBins","line":591,"kind":"procedure","access":"local","params":2,"steps":[[605,"event","OnAfterGetSpecialBins",0]]},{"name":"CalcQtyOnBlockedItemTracking","line":634,"kind":"procedure","params":4,"steps":[[650,"event","OnBeforeCalcQtyOnBlockedItemTracking",1]]},{"name":"CalcQtyPickedOnWhseShipmentLine","line":746,"kind":"procedure","access":"local","params":4,"steps":[[750,"ext","table",7321,"SetSourceFilter",5]]},{"name":"CalcQtyPickedNotShipped","line":755,"kind":"procedure","access":"local","params":4,"steps":[[763,"event","OnBeforeCalcQtyPickedNotShipped",1],[769,"ext","table",7312,"SetSourceFilter",5],[778,"ext","table",7312,"SetSourceFilter",5]]},{"name":"CalcRegisteredAndOutstandingPickQty","line":790,"kind":"procedure","params":2,"steps":[[793,"call","CalcQtyRegisteredPick",6],[795,"call","CalcQtyOutstandingPick",6]]},{"name":"CalcQtyRegisteredPick","line":799,"kind":"procedure","access":"local","params":6,"steps":[[807,"event","OnBeforeCalcQtyRegisteredPick",1],[812,"call","CalcQtyPickedOnAssemblyLine",3],[815,"call","CalcQtyPickedOnJobPlanningLine",3],[817,"ext","table",14,"RequireShipment",1],[819,"call","CalcQtyPickedNotShipped",4],[820,"call","CalcQtyPickedOnWhseShipmentLine",4]]},{"name":"CalcQtyOutstandingPick","line":833,"kind":"procedure","access":"local","params":6,"steps":[[838,"ext","table",5767,"SetSourceFilter",6],[840,"ext","table",5767,"SetSourceFilter",6],[842,"event","OnCalcQtyOutstandingPickOnAfterSetFilters",0],[849,"event","OnCalcQtyOutstandingPickOnAfterCalcSums",0]]},{"name":"CalcQtyAvailToTakeOnWhseWorksheetLine","line":854,"kind":"procedure","params":1,"steps":[[870,"ext","table",14,"GetLocationSetup",2],[880,"call","SetPickableBinFilter",2],[883,"ext","codeunit",10,"Maximum",2],[883,"ext","table",7302,"CalcQtyAvailToPick",1],[891,"call","CalcQtyBasePickedNotShippedOnWarehouseShipmentLine",3],[894,"call","CalcQtyBasePickedNotShippedOnWarehouseShipmentLine",3],[897,"ext","codeunit",10,"Maximum",2],[899,"call","CalcInvtAvailQty",4],[901,"ext","table",14,"IsProdConsumpWhseHandlingTypeWarehousePick",0],[902,"call","CalcReservQtyOnPicksShips",4],[906,"call","CalcLineReservedQtyOnInvt",7],[912,"call","CalcQtyOnDedicatedBins",3],[914,"call","CalcInvtAvailQty",4],[916,"ext","codeunit",10,"Maximum",2],[917,"ext","codeunit",10,"Minimum",2]]},{"name":"ValidateQtyPickedInShipmentBin","line":953,"kind":"procedure","access":"local","params":6,"steps":[[961,"event","OnBeforeValidateQtyPickedInShipmentBin",1],[965,"ext","table",14,"RequireShipment",1],[971,"ext","table",6565,"CopyTrackingFromTrackingSpec",1],[975,"call","CalcQtyOnShipmentBins",4]]},{"name":"CalcQtyOnShipmentBins","line":980,"kind":"procedure","access":"local","params":4,"steps":[[991,"ext","codeunit",7312,"GetBinTypeFilter",1],[1000,"ext","table",7312,"SetTrackingFilterFromItemTrackingSetupIfNotBlank",1],[1011,"call","CalcQtyOnBin",5]]},{"name":"ShowItemAvailFromWhseRcptLine","line":1099,"kind":"procedure","params":2,"steps":[[1111,"ext","codeunit",353,"FilterItem",4],[1113,"event","OnBeforeShowItemAvailFromWhseRcptLine",0],[1116,"ext","codeunit",353,"ShowItemAvailabilityByPeriod",4],[1118,"ext","codeunit",353,"ShowItemAvailabilityByVariant",4],[1120,"ext","codeunit",353,"ShowItemAvailabilityByLocation",4],[1122,"ext","codeunit",353,"ShowItemAvailabilityByEvent",5],[1124,"ext","codeunit",353,"ShowItemAvailabilityByBOMLevel",4],[1126,"ext","codeunit",353,"ShowItemAvailabilityByUOM",4]]},{"name":"ShowItemAvailabilityFromWhseActivLine","line":1135,"kind":"procedure","params":2,"steps":[[1147,"ext","codeunit",353,"FilterItem",4],[1149,"event","OnBeforeShowItemAvailabilityFromWhseActivLine",0],[1152,"ext","codeunit",353,"ShowItemAvailabilityByPeriod",4],[1154,"ext","codeunit",353,"ShowItemAvailabilityByVariant",4],[1156,"ext","codeunit",353,"ShowItemAvailabilityByLocation",4],[1158,"ext","codeunit",353,"ShowItemAvailabilityByEvent",5],[1160,"ext","codeunit",353,"ShowItemAvailabilityByBOMLevel",4],[1162,"ext","codeunit",353,"ShowItemAvailabilityByUOM",4]]}]}