{"title":"Page 234 Apply Employee Entries, extension points 29","url":"https://jonas-paprotka.de/ref/page/234-apply-employee-entries/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":"page","id":234,"name":"Apply Employee Entries","app":"Base Application","url":"https://jonas-paprotka.de/ref/page/234-apply-employee-entries/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/page/234-apply-employee-entries/source/","path":"src/Layers/W1/BaseApp/HumanResources/Payables/ApplyEmployeeEntries.Page.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:114":{"name":"Empl. Entry-Edit","url":"https://jonas-paprotka.de/ref/codeunit/114-empl-entry-edit/"},"table:5222":{"name":"Employee Ledger Entry","url":"https://jonas-paprotka.de/ref/table/5222-employee-ledger-entry/"},"page:344":{"name":"Navigate","url":"https://jonas-paprotka.de/ref/page/344-navigate/"},"codeunit:1630":{"name":"Office Management","url":"https://jonas-paprotka.de/ref/codeunit/1630-office-management/"},"table:5200":{"name":"Employee","url":"https://jonas-paprotka.de/ref/table/5200-employee/"},"codeunit:225":{"name":"Gen. Jnl.-Apply","url":"https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/"},"codeunit:112":{"name":"Empl. Entry-SetAppl.ID","url":"https://jonas-paprotka.de/ref/codeunit/112-empl-entry-setappl-id/"},"codeunit:366":{"name":"Exchange Acc. G/L Journal Line","url":"https://jonas-paprotka.de/ref/codeunit/366-exchange-acc-g-l-journal-line/"},"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/"},"codeunit:224":{"name":"EmplEntry-Apply Posted Entries","url":"https://jonas-paprotka.de/ref/codeunit/224-emplentry-apply-posted-entries/"},"table:579":{"name":"Apply Unapply Parameters","url":"https://jonas-paprotka.de/ref/table/579-apply-unapply-parameters/"},"table:98":{"name":"General Ledger Setup","url":"https://jonas-paprotka.de/ref/table/98-general-ledger-setup/"},"page:579":{"name":"Post Application","url":"https://jonas-paprotka.de/ref/page/579-post-application/"}},"procs":[{"name":"Applies-to ID.OnValidate","line":106,"kind":"trigger","steps":[[109,"call","UpdateCustomAppliesToIDForGenJournal",1]]},{"name":"Amount to Apply.OnValidate","line":184,"kind":"trigger","steps":[[186,"run","codeunit",114],[191,"call","SetEmplApplId",0],[193,"call","AmounttoApplyOnAfterValidate",0]]},{"name":"Dimensions.OnAction","line":343,"kind":"trigger","steps":[[345,"ext","table",5222,"ShowDimensions",0]]},{"name":"Navigate.OnAction","line":368,"kind":"trigger","steps":[[370,"ext","page",344,"SetDoc",2]]},{"name":"ActionSetAppliesToID.OnAction","line":390,"kind":"trigger","steps":[[395,"call","SetEmplApplId",0]]},{"name":"ActionPostApplication.OnAction","line":407,"kind":"trigger","steps":[[409,"call","PostDirectApplication",1]]},{"name":"Preview.OnAction","line":420,"kind":"trigger","steps":[[422,"call","PostDirectApplication",1]]},{"name":"OnAfterGetCurrRecord","line":497,"kind":"trigger","steps":[[500,"call","CalcApplnAmount",0]]},{"name":"OnModifyRecord","line":508,"kind":"trigger","steps":[[510,"run","codeunit",114],[512,"call","CalcApplnAmount",0]]},{"name":"OnOpenPage","line":516,"kind":"trigger","steps":[[523,"call","FindApplyingEntry",0],[531,"call","CalcApplnAmount",0],[533,"ext","codeunit",1630,"IsAvailable",0]]},{"name":"OnQueryClosePage","line":536,"kind":"trigger","steps":[[539,"call","LookupOKOnPush",0],[541,"call","CheckEarlierPostingDate",0],[545,"run","codeunit",114],[549,"call","CheckActionPerformed",0],[556,"run","codeunit",114]]},{"name":"CheckEarlierPostingDate","line":606,"kind":"procedure","access":"local","params":0,"steps":[[611,"event","OnBeforeCheckEarlierPostingDate",1]]},{"name":"SetGenJnlLine","line":623,"kind":"procedure","params":2,"steps":[[643,"call","SetApplyingEmplLedgEntry",0]]},{"name":"SetApplyingEmplLedgEntry","line":651,"kind":"procedure","params":0,"steps":[[655,"event","OnBeforeSetApplyingEmplLedgEntry",0],[662,"run","codeunit",114],[664,"call","SetEmplApplId",0],[670,"call","SetEmplApplId",0],[677,"call","CalcApplnAmount",0],[687,"ext","table",5200,"FullName",0],[695,"call","CalcApplnAmount",0]]},{"name":"SetEmplApplId","line":700,"kind":"procedure","params":0,"steps":[[703,"call","CheckEmplApplId",1],[706,"ext","codeunit",225,"CheckAgainstApplnCurrency",4],[708,"event","OnSetCustApplIdAfterCheckAgainstApplnCurrency",0],[714,"ext","codeunit",112,"SetApplId",3],[716,"ext","codeunit",112,"SetApplId",3],[719,"call","CalcApplnAmount",0]]},{"name":"CheckEmplApplId","line":722,"kind":"procedure","params":1,"steps":[[730,"event","OnCheckEmplApplIdOnBeforeEarlierPostingDateError",0]]},{"name":"CalcApplnAmount","line":739,"kind":"procedure","access":"protected","params":0,"steps":[[741,"event","OnBeforeCalcApplnAmount",0],[750,"call","FindAmountRounding",0],[770,"call","HandleChosenEntries",4],[774,"call","FindAmountRounding",0],[776,"run","codeunit",366],[785,"ext","table",330,"ExchangeAmtFCYToFCY",4],[788,"ext","table",330,"ExchangeAmtFCYToFCY",4],[799,"call","CheckRounding",0],[809,"call","HandleChosenEntries",4],[815,"event","OnAfterCalcApplnAmount",0]]},{"name":"UpdateCustomAppliesToIDForGenJournal","line":825,"kind":"procedure","access":"local","params":1,"steps":[[829,"call","JournalHasDocumentNo",1]]},{"name":"CalcApplnRemainingAmount","line":847,"kind":"procedure","access":"local","params":1,"steps":[[856,"ext","table",330,"ApplnExchangeAmtFCYToFCY",5],[859,"event","OnAfterCalcApplnRemainingAmount",0]]},{"name":"CalcApplnAmounttoApply","line":862,"kind":"procedure","access":"local","params":1,"steps":[[872,"ext","table",330,"ApplnExchangeAmtFCYToFCY",5],[875,"event","OnAfterCalcApplnAmountToApply",0]]},{"name":"FindAmountRounding","line":878,"kind":"procedure","access":"local","params":0,"steps":[[883,"ext","table",4,"InitRoundingPrecision",0]]},{"name":"FindApplyingEntry","line":922,"kind":"procedure","access":"local","params":0,"steps":[[937,"event","OnFindFindApplyingEntryOnAfterEmplLedgEntrySetFilters",0],[946,"call","CalcApplnAmount",0]]},{"name":"AmounttoApplyOnAfterValidate","line":950,"kind":"procedure","access":"local","params":0,"steps":[[953,"call","CalcApplnAmount",0]]},{"name":"PostDirectApplication","line":963,"kind":"procedure","access":"local","params":1,"steps":[[974,"event","OnBeforePostDirectApplication",1],[981,"call","IsTheApplicationValid",0],[982,"ext","codeunit",224,"GetApplicationDate",1],[984,"event","OnPostDirectApplicationBeforeSetValues",0],[986,"ext","table",579,"CopyFromEmplLedgEntry",1],[987,"ext","table",98,"GetRecordOnce",0],[995,"ext","page",579,"SetParameters",1],[1000,"ext","page",579,"GetParameters",1],[1006,"event","OnPostDirectApplicationBeforeApply",0],[1008,"ext","codeunit",224,"PreviewApply",2],[1010,"ext","codeunit",224,"Apply",2]]},{"name":"HandleChosenEntries","line":1039,"kind":"procedure","access":"local","params":4,"steps":[[1047,"event","OnBeforeHandledChosenEntries",1],[1055,"write",5222,"Insert"],[1066,"call","ExchangeLedgerEntryAmounts",4],[1077,"write",5222,"Delete"],[1081,"call","CheckRounding",0]]},{"name":"ExchangeLedgerEntryAmounts","line":1110,"kind":"procedure","access":"protected","params":4,"steps":[[1122,"event","OnBeforeExchangeLedgerEntryAmounts",1],[1128,"ext","table",330,"ExchangeAmount",4],[1131,"ext","table",330,"ExchangeAmount",4],[1135,"event","OnAfterExchangeLedgerEntryAmounts",0]]}]}