{"title":"Codeunit 1032 Job Planning Line-Reserve, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/1032-job-planning-line-reserve/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":1032,"name":"Job Planning Line-Reserve","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/1032-job-planning-line-reserve/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/1032-job-planning-line-reserve/source/","path":"src/Layers/W1/BaseApp/Projects/Project/Planning/JobPlanningLineReserve.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":{"codeunit:99000830":{"name":"Create Reserv. Entry","url":"https://jonas-paprotka.de/ref/codeunit/99000830-create-reserv-entry/"},"codeunit:6503":{"name":"Item Tracking Doc. Management","url":"https://jonas-paprotka.de/ref/codeunit/6503-item-tracking-doc-management/"},"page:6510":{"name":"Item Tracking Lines","url":"https://jonas-paprotka.de/ref/page/6510-item-tracking-lines/"},"table:1003":{"name":"Job Planning Line","url":"https://jonas-paprotka.de/ref/table/1003-job-planning-line/"},"table:337":{"name":"Reservation Entry","url":"https://jonas-paprotka.de/ref/table/337-reservation-entry/"},"codeunit:99000845":{"name":"Reservation Management","url":"https://jonas-paprotka.de/ref/codeunit/99000845-reservation-management/"},"table:83":{"name":"Item Journal Line","url":"https://jonas-paprotka.de/ref/table/83-item-journal-line/"},"table:6565":{"name":"Item Tracking Setup","url":"https://jonas-paprotka.de/ref/table/6565-item-tracking-setup/"},"codeunit:99000831":{"name":"Reservation Engine Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/99000831-reservation-engine-mgt/"},"codeunit:5402":{"name":"Unit of Measure Management","url":"https://jonas-paprotka.de/ref/codeunit/5402-unit-of-measure-management/"},"table:99000850":{"name":"Planning Assignment","url":"https://jonas-paprotka.de/ref/table/99000850-planning-assignment/"},"page:1032":{"name":"Available - Job Planning Lines","url":"https://jonas-paprotka.de/ref/page/1032-available-job-planning-lines/"},"codeunit:99000841":{"name":"Item Ledger Entry-Reserve","url":"https://jonas-paprotka.de/ref/codeunit/99000841-item-ledger-entry-reserve/"},"page:88":{"name":"Job Card","url":"https://jonas-paprotka.de/ref/page/88-job-card/"},"table:338":{"name":"Entry Summary","url":"https://jonas-paprotka.de/ref/table/338-entry-summary/"},"page:1007":{"name":"Job Planning Lines","url":"https://jonas-paprotka.de/ref/page/1007-job-planning-lines/"},"table:336":{"name":"Tracking Specification","url":"https://jonas-paprotka.de/ref/table/336-tracking-specification/"},"table:39":{"name":"Purchase Line","url":"https://jonas-paprotka.de/ref/table/39-purchase-line/"}},"procs":[{"name":"CreateReservation","line":43,"kind":"procedure","params":6,"steps":[[56,"call","CheckReservedQtyBase",2],[70,"ext","codeunit",99000830,"CreateReservEntryFor",10],[74,"ext","codeunit",99000830,"CreateReservEntryFrom",1],[75,"ext","codeunit",99000830,"CreateReservEntry",7]]},{"name":"CreateBindingReservation","line":82,"kind":"procedure","params":5,"steps":[[86,"call","CreateReservation",6]]},{"name":"CheckReservedQtyBase","line":94,"kind":"procedure","access":"local","params":2,"steps":[[99,"event","OnBeforeCheckReservedQtyBase",1]]},{"name":"SetBinding","line":109,"kind":"procedure","params":1,"steps":[[111,"ext","codeunit",99000830,"SetBinding",1]]},{"name":"CallItemTracking","line":114,"kind":"procedure","params":1,"steps":[[126,"ext","codeunit",6503,"ShowItemTrackingForJobPlanningLine",3],[129,"call","InitFromJobPlanningLine",2],[130,"ext","page",6510,"SetSourceSpec",2],[131,"ext","page",6510,"SetInbound",1],[131,"ext","table",1003,"IsInbound",0]]},{"name":"ReservQuantity","line":136,"kind":"procedure","params":3,"steps":[[149,"event","OnAfterReservQuantity",0]]},{"name":"Caption","line":152,"kind":"procedure","params":1,"steps":[[154,"ext","table",1003,"GetSourceCaption",0]]},{"name":"FindReservEntry","line":157,"kind":"procedure","params":2,"steps":[[159,"ext","table",337,"InitSortingAndFilters",1],[160,"ext","table",1003,"SetReservationFilters",1]]},{"name":"GetReservedQtyFromInventory","line":164,"kind":"procedure","params":1,"steps":[[169,"ext","table",1003,"SetReservationEntry",1]]},{"name":"GetReservedQtyFromInventory","line":178,"kind":"procedure","params":1,"steps":[[183,"ext","table",337,"SetSource",6]]},{"name":"VerifyChange","line":192,"kind":"procedure","params":2,"steps":[[249,"call","VerifyBinInJobPlanningLine",3],[251,"event","OnVerifyChangeOnBeforeHasErrorCheck",0],[255,"call","FindReservEntry",2],[258,"ext","codeunit",99000845,"SetReservSource",1],[259,"ext","codeunit",99000845,"DeleteReservEntries",2],[260,"ext","codeunit",99000845,"SetReservSource",1],[262,"ext","codeunit",99000845,"SetReservSource",1],[263,"ext","codeunit",99000845,"DeleteReservEntries",2],[265,"ext","codeunit",99000845,"AutoTrack",1],[270,"call","AssignForPlanning",1],[275,"call","AssignForPlanning",1]]},{"name":"VerifyBinInJobPlanningLine","line":279,"kind":"procedure","access":"local","params":3,"steps":[[283,"ext","codeunit",99000845,"CalcIsAvailTrackedQtyInBin",10]]},{"name":"VerifyQuantity","line":293,"kind":"procedure","params":2,"steps":[[299,"event","OnBeforeVerifyQuantity",1],[314,"ext","codeunit",99000845,"SetReservSource",1],[316,"ext","codeunit",99000845,"ModifyUnitOfMeasure",0],[318,"ext","codeunit",99000845,"DeleteReservEntries",2],[320,"ext","codeunit",99000845,"DeleteReservEntries",2],[321,"ext","codeunit",99000845,"ClearSurplus",0],[322,"ext","codeunit",99000845,"AutoTrack",1],[323,"call","AssignForPlanning",1]]},{"name":"TransferJobLineToItemJnlLine","line":326,"kind":"procedure","params":3,"steps":[[336,"call","FindReservEntry",2],[342,"call","UpdateReservationsWhenPostingJobPlaningLineNegativeAdjFromPO",3],[360,"ext","table",83,"TrackingExists",0],[362,"ext","table",337,"SetTrackingFilterFromItemJnlLine",1],[364,"ext","table",337,"ClearTrackingFilter",0],[369,"ext","table",83,"TestItemFields",3],[374,"ext","table",6565,"CopyTrackingFromItemJnlLine",1],[375,"ext","codeunit",99000831,"InitRecordSet",2],[377,"ext","table",337,"TestItemFields",3],[381,"ext","codeunit",99000830,"SetNewTrackingFromItemJnlLine",1],[383,"call","TransferJobPlanningLineToItemJournalLineReservationEntry",4],[388,"ext","codeunit",99000831,"NEXTRecord",1],[390,"ext","table",337,"ClearTrackingFilter",0],[392,"ext","codeunit",99000831,"InitRecordSet",1],[402,"ext","codeunit",99000845,"SetReservSource",1],[403,"ext","codeunit",99000845,"DeleteReservEntries",2]]},{"name":"TransferJobPlanningLineToItemJournalLineReservationEntry","line":409,"kind":"procedure","access":"local","params":4,"steps":[[414,"event","OnBeforeTransferJobPlanningLineToItemJournalLineReservationEntry",1],[419,"ext","codeunit",99000830,"TransferReservEntry",9]]},{"name":"UpdateReservationsWhenPostingJobPlaningLineNegativeAdjFromPO","line":426,"kind":"procedure","access":"local","params":3,"steps":[[446,"ext","codeunit",99000831,"CloseReservEntry",3],[454,"write",337,"Insert"],[457,"event","OnUpdateReservationsWhenPostingJobPlaningLineNegativeAdjFromPOOnAfterTempReservationEntryInserted",0],[466,"ext","codeunit",99000831,"CloseReservEntry",3],[470,"ext","codeunit",5402,"CalcQtyFromBase",2],[471,"ext","codeunit",99000830,"CreateRemainingReservEntry",3],[472,"ext","codeunit",99000831,"CloseReservEntry",3]]},{"name":"DeleteLine","line":477,"kind":"procedure","params":1,"steps":[[479,"call","DeleteLineInternal",2]]},{"name":"DeleteLineInternal","line":482,"kind":"procedure","access":"internal","params":2,"steps":[[486,"ext","codeunit",99000845,"SetReservSource",1],[488,"ext","table",337,"InitSortingAndFilters",1],[489,"ext","table",1003,"SetReservationFilters",1],[492,"ext","codeunit",99000845,"DeleteItemTrackingConfirm",0],[493,"ext","codeunit",99000845,"SetItemTrackingHandling",1],[495,"ext","codeunit",99000845,"SetItemTrackingHandling",1],[496,"ext","codeunit",99000845,"DeleteReservEntries",2],[498,"call","AssignForPlanning",1]]},{"name":"AssignForPlanning","line":501,"kind":"procedure","access":"local","params":1,"steps":[[510,"ext","table",99000850,"ChkAssignOne",4]]},{"name":"BindToTracking","line":514,"kind":"procedure","params":6,"steps":[[516,"call","SetBinding",1],[517,"call","CreateReservationSetFrom",1],[518,"call","CreateBindingReservation",5]]},{"name":"OnGetQtyPerUOMFromSourceRecRef","line":527,"kind":"procedure","access":"local","params":6,"steps":[[531,"call","MatchThisTable",1],[534,"ext","table",1003,"UpdatePlanned",0],[535,"write",1003,"Modify",1],[538,"ext","table",1003,"GetReservationQty",4]]},{"name":"SetReservSourceFor","line":542,"kind":"procedure","access":"local","params":3,"steps":[[550,"ext","table",1003,"SetReservationEntry",1],[552,"ext","table",1003,"GetSourceCaption",0]]},{"name":"ReservationOnSetReservSource","line":571,"kind":"procedure","access":"local","params":3,"steps":[[573,"call","MatchThisTable",1],[574,"call","SetReservSourceFor",3]]},{"name":"ReservationOnDrillDownTotalQuantity","line":578,"kind":"procedure","access":"local","params":5,"steps":[[582,"call","MatchThisEntry",1],[584,"ext","page",1032,"SetCurrentSubType",1],[584,"call","EntryStartNo",0],[585,"ext","page",1032,"SetSource",3],[585,"ext","table",337,"GetTransferDirection",0]]},{"name":"OnFilterReservEntry","line":591,"kind":"procedure","access":"local","params":2,"steps":[[593,"call","MatchThisEntry",1],[595,"call","EntryStartNo",0]]},{"name":"ReservationOnRelatesToEntrySummary","line":600,"kind":"procedure","access":"local","params":3,"steps":[[602,"call","MatchThisEntry",1],[605,"call","EntryStartNo",0]]},{"name":"ItemLedgerEntryOnDrillDownTotalQuantity","line":609,"kind":"procedure","access":"local","params":7,"steps":[[611,"call","MatchThisTable",1],[612,"ext","codeunit",99000841,"DrillDownTotalQuantity",4]]},{"name":"OnCreateReservation","line":618,"kind":"procedure","access":"local","params":7,"steps":[[622,"call","MatchThisTable",1],[623,"call","CreateReservationSetFrom",1],[625,"call","CreateReservation",6]]},{"name":"OnLookupDocument","line":630,"kind":"procedure","access":"local","params":2,"steps":[[634,"call","MatchThisTable",1],[637,"run","page",88]]},{"name":"OnLookupLine","line":642,"kind":"procedure","access":"local","params":2,"steps":[[646,"call","MatchThisTable",1]]},{"name":"OnFilterReservFor","line":655,"kind":"procedure","access":"local","params":3,"steps":[[659,"call","MatchThisTable",1],[661,"ext","table",1003,"SetReservationFilters",1],[662,"ext","table",1003,"GetSourceCaption",0]]},{"name":"OnCalculateRemainingQty","line":667,"kind":"procedure","access":"local","params":4,"steps":[[671,"call","MatchThisTable",1],[673,"ext","table",1003,"GetRemainingQty",2]]},{"name":"OnGetSourceRecordValue","line":694,"kind":"procedure","access":"local","params":4,"steps":[[696,"call","MatchThisTable",1],[697,"call","GetSourceValue",3]]},{"name":"UpdateStatistics","line":700,"kind":"procedure","access":"local","params":6,"steps":[[708,"ext","table",337,"GetAvailabilityFilter",2],[709,"ext","table",1003,"FilterLinesForReservation",4],[727,"write",338,"Insert"],[728,"write",338,"Modify"]]},{"name":"OnUpdateStatistics","line":733,"kind":"procedure","access":"local","params":5,"steps":[[735,"call","MatchThisEntry",1],[736,"call","UpdateStatistics",6]]},{"name":"OnLookupReserved","line":741,"kind":"procedure","access":"local","params":1,"steps":[[743,"call","MatchThisTable",1],[744,"call","ShowSourceLines",1]]},{"name":"ShowSourceLines","line":747,"kind":"procedure","access":"local","params":1,"steps":[[754,"run","page",1007]]},{"name":"OnAfterAutoReserveOneLine","line":758,"kind":"procedure","access":"local","params":11,"steps":[[760,"call","MatchThisEntry",1],[761,"call","AutoReserveJobPlanningLine",10]]},{"name":"AutoReserveJobPlanningLine","line":766,"kind":"procedure","access":"local","params":10,"steps":[[776,"event","OnBeforeAutoReserveJobPlanningLine",0],[781,"call","CheckItemType",1],[783,"ext","table",1003,"FilterLinesForReservation",4],[784,"ext","codeunit",99000845,"GetAvailabilityFilter",1],[796,"ext","table",336,"InitTrackingSpecification",9],[800,"ext","table",336,"CopyTrackingFromReservEntry",1],[802,"ext","codeunit",99000845,"InsertReservationEntries",8]]},{"name":"CheckItemType","line":809,"kind":"procedure","access":"local","params":1,"steps":[[822,"ext","table",39,"IsNonInventoriableItem",0]]},{"name":"OnAutoReserveOnBeforeStopReservation","line":858,"kind":"procedure","access":"local","params":3,"steps":[[860,"call","MatchThisTable",1]]},{"name":"CheckSourceTypeSubtype","line":874,"kind":"procedure","access":"local","params":2,"steps":[[876,"call","MatchThisTable",1]]},{"name":"InitFromJobPlanningLine","line":902,"kind":"procedure","params":2,"steps":[[905,"ext","table",336,"SetItemData",7],[908,"ext","table",336,"SetSource",6],[910,"ext","table",336,"SetQuantities",7],[916,"event","OnAfterInitFromJobPlanningLine",0]]},{"name":"OnReserveBindingOrder","line":936,"kind":"procedure","access":"local","params":7,"steps":[[939,"call","JobPlanningLineBindToTracking",7]]},{"name":"JobPlanningLineBindToTracking","line":942,"kind":"procedure","access":"local","params":7,"steps":[[948,"call","BindToTracking",6],[952,"write",1003,"Modify"]]},{"name":"OrderTrackingManagementOnSetSourceRecord","line":957,"kind":"procedure","access":"local","params":3,"steps":[[963,"call","MatchThisTable",1],[965,"call","SetJobPlanningLine",3]]},{"name":"SetJobPlanningLine","line":969,"kind":"procedure","access":"local","params":3,"steps":[[977,"ext","table",337,"InitSortingAndFilters",1],[978,"ext","table",1003,"SetReservationFilters",1]]}]}