{"title":"Codeunit 1004 Job Transfer Line, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/1004-job-transfer-line/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":1004,"name":"Job Transfer Line","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/1004-job-transfer-line/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/1004-job-transfer-line/source/","path":"src/Layers/W1/BaseApp/Projects/Project/Journal/JobTransferLine.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:1003":{"name":"Job Planning Line","url":"https://jonas-paprotka.de/ref/table/1003-job-planning-line/"},"table:210":{"name":"Job Journal Line","url":"https://jonas-paprotka.de/ref/table/210-job-journal-line/"},"codeunit:310":{"name":"No. Series","url":"https://jonas-paprotka.de/ref/codeunit/310-no-series/"},"codeunit:6500":{"name":"Item Tracking Management","url":"https://jonas-paprotka.de/ref/codeunit/6500-item-tracking-management/"},"codeunit:6200":{"name":"Non-Deductible VAT","url":"https://jonas-paprotka.de/ref/codeunit/6200-non-deductible-vat/"},"table:39":{"name":"Purchase Line","url":"https://jonas-paprotka.de/ref/table/39-purchase-line/"},"codeunit:5402":{"name":"Unit of Measure Management","url":"https://jonas-paprotka.de/ref/codeunit/5402-unit-of-measure-management/"},"table:330":{"name":"Currency Exchange Rate","url":"https://jonas-paprotka.de/ref/table/330-currency-exchange-rate/"},"table:4":{"name":"Currency","url":"https://jonas-paprotka.de/ref/table/4-currency/"}},"procs":[{"name":"FromJnlLineToLedgEntry","line":45,"kind":"procedure","params":2,"steps":[[108,"event","OnAfterFromJnlLineToLedgEntry",0]]},{"name":"FromJnlToPlanningLine","line":111,"kind":"procedure","params":2,"steps":[[123,"validate",1003,"Line Type"],[123,"ext","table",1003,"ConvertFromJobLineType",1],[136,"ext","table",1003,"CopyTrackingFromJobJnlLine",1],[171,"event","OnAfterFromJnlToPlanningLine",0]]},{"name":"FromPlanningSalesLineToJnlLine","line":174,"kind":"procedure","params":5,"steps":[[180,"event","OnBeforeFromPlanningSalesLineToJnlLine",0],[195,"ext","table",210,"CopyTrackingFromJobPlanningLine",1],[200,"validate",210,"Qty. per Unit of Measure"],[203,"ext","table",1003,"ConvertToJobLineType",0],[228,"validate",210,"Quantity"],[230,"validate",210,"Quantity"],[234,"event","OnFromPlanningSalesLineToJnlLineOnBeforeInitAmounts",1],[238,"call","GetCurrencyRounding",1],[239,"call","ValidateUnitCostAndPrice",4],[243,"call","ValidateUnitCostAndPrice",4],[244,"validate",210,"Line Discount %"],[247,"event","OnAfterFromPlanningSalesLineToJnlLine",0]]},{"name":"FromPlanningLineToJnlLine","line":250,"kind":"procedure","params":5,"steps":[[271,"validate",210,"Journal Template Name"],[272,"validate",210,"Journal Batch Name"],[276,"validate",210,"Line No."],[278,"validate",210,"Line No."],[285,"ext","table",1003,"ConvertToJobLineType",0],[295,"ext","codeunit",310,"PeekNextNo",2],[307,"ext","table",210,"CopyTrackingFromJobPlanningLine",1],[310,"validate",210,"Unit of Measure Code"],[323,"event","OnFromPlanningLineToJnlLineOnBeforeCopyItemTracking",1],[325,"ext","codeunit",6500,"CopyItemTracking",3],[325,"ext","table",1003,"RowID1",0],[325,"ext","table",210,"RowID1",0],[327,"validate",210,"Quantity"],[328,"validate",210,"Qty. per Unit of Measure"],[330,"validate",210,"Unit Cost"],[331,"validate",210,"Unit Price"],[332,"validate",210,"Line Discount %"],[335,"event","OnAfterFromPlanningLineToJnlLine",0],[337,"ext","table",210,"UpdateDimensions",0],[338,"write",210,"Insert",1]]},{"name":"FromWarehouseActivityLineToJnlLine","line":342,"kind":"procedure","params":5,"steps":[[370,"event","OnFromWarehouseActivityLineToJnlLineOnAfterSetJobPlanningLineFilters",0],[381,"validate",210,"Journal Template Name"],[382,"validate",210,"Journal Batch Name"],[388,"validate",210,"Line No."],[390,"validate",210,"Line No."],[397,"ext","table",1003,"ConvertToJobLineType",0],[415,"ext","table",210,"CopyTrackingFromJobPlanningLine",1],[418,"validate",210,"Unit of Measure Code"],[433,"validate",210,"Quantity"],[435,"validate",210,"Qty. per Unit of Measure"],[437,"validate",210,"Unit Cost"],[438,"validate",210,"Unit Price"],[439,"validate",210,"Line Discount %"],[441,"ext","table",210,"UpdateDimensions",0],[442,"ext","codeunit",6500,"CopyItemTracking",3],[442,"ext","table",1003,"RowID1",0],[442,"ext","table",210,"RowID1",0],[444,"event","OnFromWarehouseActivityLineToJnlLineOnBeforeJobJnlLineInsert",0],[445,"write",210,"Insert",1],[446,"event","OnFromWarehouseActivityLineToJnlLineOnAfterJobJnlLineInsert",0]]},{"name":"FromGenJnlLineToJnlLine","line":449,"kind":"procedure","params":2,"steps":[[455,"event","OnBeforeFromGenJnlLineToJnlLine",0],[501,"ext","codeunit",6200,"CopyNonDedVATFromGenJnlLineToJobJnlLine",2],[517,"event","OnAfterFromGenJnlLineToJnlLine",0]]},{"name":"FromJobLedgEntryToPlanningLine","line":520,"kind":"procedure","params":2,"steps":[[534,"validate",1003,"Line Type"],[534,"ext","table",1003,"ConvertFromJobLineType",1],[550,"ext","table",1003,"CopyTrackingFromJobLedgEntry",1],[557,"ext","table",1003,"ApplyPrice",2],[557,"call","JobTransferMarkerFieldNo",0],[589,"event","OnAfterFromJobLedgEntryToPlanningLine",0]]},{"name":"FromPurchaseLineToJnlLine","line":598,"kind":"procedure","params":6,"steps":[[615,"event","OnBeforeFromPurchaseLineToJnlLine",1],[619,"validate",39,"Job Planning Line No."],[621,"ext","table",210,"DontCheckStdCost",0],[622,"validate",210,"Job No."],[623,"validate",210,"Job Task No."],[626,"validate",210,"Posting Date"],[627,"call","JobJournalLineValidateType",2],[628,"event","OnFromPurchaseLineToJnlLineOnBeforeValidateNo",0],[629,"validate",210,"No."],[630,"validate",210,"Variant Code"],[631,"call","UpdateBaseQtyForPurchLine",2],[632,"validate",210,"Unit of Measure Code"],[633,"validate",210,"Quantity"],[635,"ext","codeunit",5402,"CalcBaseQty",5],[638,"validate",210,"Unit of Measure Code"],[640,"validate",210,"Quantity"],[653,"ext","codeunit",6200,"Calculate",8],[654,"call","GetCurrencyRounding",1],[659,"ext","codeunit",6200,"UseNonDeductibleVATAmountForJobCost",0],[660,"call","GetNonDeductibleVATAmtPerUnitCost",3],[665,"event","OnFromPurchaseLineToJnlLineOnAfterCalcUnitCostLCY",0],[675,"ext","codeunit",6200,"UseNonDeductibleVATAmountForJobCost",0],[687,"ext","table",330,"ExchangeAmtFCYToLCY",4],[704,"ext","table",330,"ExchangeAmtLCYToFCY",4],[725,"ext","table",330,"ExchangeAmtFCYToLCY",4],[738,"call","GetCurrencyRounding",1],[775,"event","OnAfterFromPurchaseLineToJnlLine",0]]},{"name":"JobJournalLineValidateType","line":778,"kind":"procedure","access":"local","params":2,"steps":[[783,"event","OnBeforeJobJournalLineValidateType",1],[788,"validate",210,"Type"],[790,"validate",210,"Type"]]},{"name":"FromSalesHeaderToPlanningLine","line":793,"kind":"procedure","params":2,"steps":[[820,"event","OnAfterFromSalesHeaderToPlanningLine",0],[821,"write",1003,"Modify"]]},{"name":"GetCurrencyRounding","line":825,"kind":"procedure","params":1,"steps":[[831,"ext","table",4,"InitRoundingPrecision",0],[836,"ext","table",4,"InitRoundingPrecision",0]]},{"name":"DoUpdateUnitCost","line":839,"kind":"procedure","access":"local","params":1,"steps":[[845,"call","IsCreatedFromJob",1]]},{"name":"IsCreatedFromJob","line":852,"kind":"procedure","access":"local","params":1,"steps":[[855,"event","OnAfterIsCreatedFromJob",0]]},{"name":"ValidateUnitCostAndPrice","line":858,"kind":"procedure","params":4,"steps":[[860,"call","DoUpdateUnitCost",1],[861,"ext","table",210,"DontCheckStdCost",0],[862,"validate",210,"Unit Cost"],[864,"validate",210,"Unit Price"]]}]}