{"title":"Table 1294 Applied Payment Entry, extension points 29","url":"https://jonas-paprotka.de/ref/table/1294-applied-payment-entry/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":"table","id":1294,"name":"Applied Payment Entry","app":"Base Application","url":"https://jonas-paprotka.de/ref/table/1294-applied-payment-entry/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/table/1294-applied-payment-entry/source/","path":"src/Layers/W1/BaseApp/Bank/Reconciliation/AppliedPaymentEntry.Table.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:1294":{"name":"Applied Payment Entry","url":"https://jonas-paprotka.de/ref/table/1294-applied-payment-entry/"},"table:274":{"name":"Bank Acc. Reconciliation Line","url":"https://jonas-paprotka.de/ref/table/274-bank-acc-reconciliation-line/"},"table:270":{"name":"Bank Account","url":"https://jonas-paprotka.de/ref/table/270-bank-account/"},"table:98":{"name":"General Ledger Setup","url":"https://jonas-paprotka.de/ref/table/98-general-ledger-setup/"},"table:330":{"name":"Currency Exchange Rate","url":"https://jonas-paprotka.de/ref/table/330-currency-exchange-rate/"},"table:5200":{"name":"Employee","url":"https://jonas-paprotka.de/ref/table/5200-employee/"},"table:1252":{"name":"Bank Pmt. Appl. Rule","url":"https://jonas-paprotka.de/ref/table/1252-bank-pmt-appl-rule/"},"codeunit:426":{"name":"Payment Tolerance Management","url":"https://jonas-paprotka.de/ref/codeunit/426-payment-tolerance-management/"},"codeunit:103":{"name":"Cust. Entry-Edit","url":"https://jonas-paprotka.de/ref/codeunit/103-cust-entry-edit/"},"codeunit:113":{"name":"Vend. Entry-Edit","url":"https://jonas-paprotka.de/ref/codeunit/113-vend-entry-edit/"},"codeunit:114":{"name":"Empl. Entry-Edit","url":"https://jonas-paprotka.de/ref/codeunit/114-empl-entry-edit/"}},"procs":[{"name":"Account Type.OnValidate","line":86,"kind":"trigger","steps":[[88,"validate",1294,"Account No."]]},{"name":"Account No..OnValidate","line":111,"kind":"trigger","steps":[[114,"call","CheckApplnIsSameAcc",0],[116,"call","GetAccInfo",0],[117,"validate",1294,"Applies-to Entry No."]]},{"name":"Applies-to Entry No..OnLookup","line":135,"kind":"trigger","steps":[[144,"event","OnBeforeAppliesToEntryNoLookup",1],[153,"validate",1294,"Applies-to Entry No."],[160,"validate",1294,"Applies-to Entry No."],[167,"validate",1294,"Applies-to Entry No."],[174,"validate",1294,"Applies-to Entry No."],[178,"event","OnAfterLookupAppliesToEntryNo",0]]},{"name":"Applies-to Entry No..OnValidate","line":181,"kind":"trigger","steps":[[184,"validate",1294,"Applied Amount"],[188,"call","CheckCurrencyCombination",0],[189,"call","GetLedgEntryInfo",0],[190,"call","UpdatePaymentDiscount",1],[190,"call","SuggestDiscToApply",1],[191,"validate",1294,"Applied Amount"],[191,"call","SuggestAmtToApply",0]]},{"name":"Applied Amount.OnValidate","line":204,"kind":"trigger","steps":[[208,"call","CheckEntryAmt",0],[209,"call","UpdatePaymentDiscount",1],[209,"call","SuggestDiscToApply",1],[211,"call","SuggestAmtToApply",0],[213,"call","UpdateParentBankAccReconLine",1]]},{"name":"OnDelete","line":315,"kind":"trigger","steps":[[319,"call","UpdateParentBankAccReconLine",1],[320,"call","ClearCustVendEntryApplicationData",0]]},{"name":"OnInsert","line":323,"kind":"trigger","steps":[[328,"call","CheckApplnIsSameAcc",0]]},{"name":"OnModify","line":331,"kind":"trigger","steps":[[334,"call","CheckApplnIsSameAcc",0]]},{"name":"CheckApplnIsSameAcc","line":345,"kind":"procedure","access":"local","params":0,"steps":[[353,"ext","table",1294,"FilterAppliedPmtEntry",1],[355,"call","CheckCurrentMatchesExistingAppln",1],[357,"call","CheckCurrentMatchesExistingAppln",1]]},{"name":"CheckCurrentMatchesExistingAppln","line":360,"kind":"procedure","access":"local","params":1,"steps":[[365,"event","OnBeforeCheckCurrentMatchesExistingAppln",1]]},{"name":"CheckEntryAmt","line":381,"kind":"procedure","access":"local","params":0,"steps":[[391,"call","GetRemAmt",0],[391,"call","GetAmtAppliedToOtherStmtLines",0],[395,"call","GetRemAmt",0],[395,"call","GetAmtAppliedToOtherStmtLines",0],[398,"call","GetRemAmt",0],[398,"call","GetAmtAppliedToOtherStmtLines",0]]},{"name":"UpdateParentBankAccReconLine","line":401,"kind":"procedure","access":"local","params":1,"steps":[[408,"call","GetTotalAppliedAmountInclPmtDisc",1],[410,"call","GetNoOfAppliedEntries",1],[414,"validate",274,"Applied Amount"],[415,"validate",274,"Account No."],[419,"validate",274,"Account Type"],[420,"validate",274,"Account No."],[422,"call","CheckApplnIsSameAcc",0],[424,"validate",274,"Applied Amount"],[425,"event","OnUpdateParentBankAccReconLineOnBeforeBankAccReconLineModify",0],[426,"write",274,"Modify"]]},{"name":"CheckCurrencyCombination","line":429,"kind":"procedure","access":"local","params":0,"steps":[[435,"call","IsBankLCY",0],[445,"call","CurrencyMatches",3],[445,"call","GetLCYCode",0],[451,"call","CurrencyMatches",3],[451,"call","GetLCYCode",0],[457,"call","CurrencyMatches",3],[457,"call","GetLCYCode",0],[462,"event","OnAfterCheckCurrencyCombination",0]]},{"name":"IsBankLCY","line":479,"kind":"procedure","access":"local","params":0,"steps":[[484,"ext","table",270,"IsInLocalCurrency",0]]},{"name":"GetLCYCode","line":487,"kind":"procedure","access":"local","params":0,"steps":[[492,"ext","table",98,"GetCurrencyCode",0]]},{"name":"SuggestAmtToApply","line":501,"kind":"procedure","params":0,"steps":[[509,"event","OnBeforeSuggestAmtToApply",1],[513,"call","GetRemAmt",0],[513,"call","GetAmtAppliedToOtherStmtLines",0],[514,"call","GetStmtLineRemAmtToApply",0],[524,"call","AbsMin",2]]},{"name":"SuggestDiscToApply","line":535,"kind":"procedure","params":1,"steps":[[541,"call","InclPmtDisc",1],[542,"call","GetDiscInfo",3],[543,"call","GetAcceptedPmtTolerance",0],[545,"call","GetAcceptedPmtTolerance",0]]},{"name":"GetDiscInfo","line":555,"kind":"procedure","params":3,"steps":[[567,"call","GetCustLedgEntryDiscInfo",3],[569,"call","GetVendLedgEntryDiscInfo",3],[572,"event","OnAfterGetDiscInfo",0]]},{"name":"GetCustLedgEntryDiscInfo","line":575,"kind":"procedure","access":"local","params":3,"steps":[[582,"call","IsBankLCY",0]]},{"name":"GetVendLedgEntryDiscInfo","line":589,"kind":"procedure","access":"local","params":3,"steps":[[597,"call","IsBankLCY",0]]},{"name":"GetRemAmt","line":610,"kind":"procedure","params":0,"steps":[[615,"call","GetStmtLineRemAmtToApply",0],[619,"call","GetCustLedgEntryRemAmt",0],[621,"call","GetVendLedgEntryRemAmt",0],[623,"call","GetEmployeeLedgEntryRemAmt",0],[625,"call","GetBankAccLedgEntryRemAmt",0],[628,"event","OnAfterGetRemAmt",0]]},{"name":"GetAcceptedPmtTolerance","line":631,"kind":"procedure","access":"local","params":0,"steps":[[637,"call","GetCustLedgEntryPmtTolAmt",0],[639,"call","GetVendLedgEntryPmtTolAmt",0],[642,"event","OnAfterGetAcceptedPmtTolerance",0]]},{"name":"GetCustLedgEntryRemAmt","line":645,"kind":"procedure","access":"local","params":0,"steps":[[652,"event","OnGetCustLedgEntryRemAmtOnBeforeCalcFields",1],[657,"call","IsBankLCY",0],[661,"ext","table",330,"ExchangeAmount",4]]},{"name":"GetVendLedgEntryRemAmt","line":668,"kind":"procedure","access":"local","params":0,"steps":[[675,"event","OnGetVendLedgEntryRemAmtOnBeforeCalcFields",1],[680,"call","IsBankLCY",0],[684,"ext","table",330,"ExchangeAmount",4]]},{"name":"GetEmployeeLedgEntryRemAmt","line":691,"kind":"procedure","access":"local","params":0,"steps":[[697,"call","IsBankLCY",0],[701,"ext","table",330,"ExchangeAmount",4]]},{"name":"GetBankAccLedgEntryRemAmt","line":708,"kind":"procedure","access":"local","params":0,"steps":[[713,"call","IsBankLCY",0]]},{"name":"GetCustLedgEntryPmtTolAmt","line":721,"kind":"procedure","access":"local","params":0,"steps":[[728,"ext","table",274,"GetAppliesToID",0]]},{"name":"GetVendLedgEntryPmtTolAmt","line":735,"kind":"procedure","access":"local","params":0,"steps":[[742,"ext","table",274,"GetAppliesToID",0]]},{"name":"GetStmtLineRemAmtToApply","line":755,"kind":"procedure","params":0,"steps":[[764,"call","GetOldAppliedAmtInclDisc",0]]},{"name":"IsAcceptedPmtDiscTolerance","line":777,"kind":"procedure","access":"local","params":0,"steps":[[783,"call","IsCustLedgEntryPmtDiscTol",0],[785,"call","IsVendLedgEntryPmtDiscTol",0],[788,"event","OnAfterIsAcceptedPmtDiscTolerance",0]]},{"name":"GetAccInfo","line":814,"kind":"procedure","access":"local","params":0,"steps":[[821,"call","GetCustInfo",0],[823,"call","GetVendInfo",0],[825,"call","GetEmployeeInfo",0],[827,"call","GetBankAccInfo",0],[829,"call","GetGLAccInfo",0]]},{"name":"GetEmployeeInfo","line":849,"kind":"procedure","access":"local","params":0,"steps":[[854,"ext","table",5200,"FullName",0]]},{"name":"GetLedgEntryInfo","line":879,"kind":"procedure","params":0,"steps":[[886,"call","GetCustLedgEntryInfo",0],[888,"call","GetVendLedgEntryInfo",0],[890,"call","GetEmployeeLedgEntryInfo",0],[892,"call","GetBankAccLedgEntryInfo",0],[895,"event","OnAfterGetLedgEntryInfo",0]]},{"name":"RunOnAfterGetLedgEntryInfo","line":898,"kind":"procedure","access":"internal","params":0,"steps":[[900,"event","OnAfterGetLedgEntryInfo",0]]},{"name":"GetAmtAppliedToOtherStmtLines","line":957,"kind":"procedure","params":0,"steps":[[965,"ext","table",1294,"FilterEntryAppliedToOtherStmtLines",0]]},{"name":"FilterEntryAppliedToOtherStmtLines","line":970,"kind":"procedure","params":0,"steps":[[980,"event","OnAfterFilterEntryAppliedToOtherStmtLines",0]]},{"name":"AppliedPmtEntryLinesExist","line":1004,"kind":"procedure","params":1,"steps":[[1006,"call","FilterAppliedPmtEntry",1]]},{"name":"ApplyFromBankStmtMatchingBuf","line":1033,"kind":"procedure","params":4,"steps":[[1038,"call","TransferFromBankAccReconLine",1],[1039,"validate",1294,"Account Type"],[1040,"validate",1294,"Account No."],[1042,"validate",1294,"Applies-to Entry No."],[1043,"validate",1294,"Applied Amount"],[1045,"validate",1294,"Applies-to Entry No."],[1046,"validate",1294,"Quality"],[1047,"validate",1294,"Match Confidence"],[1047,"ext","table",1252,"GetMatchConfidence",1],[1048,"event","OnApplyFromBankStmtMatchingBufOnBeforeInsert",0],[1049,"write",1294,"Insert",1]]},{"name":"InclPmtDisc","line":1052,"kind":"procedure","access":"local","params":1,"steps":[[1062,"call","GetDiscInfo",3],[1072,"ext","codeunit",426,"PmtTolPmtReconJnl",1],[1073,"call","IsAcceptedPmtDiscTolerance",0],[1077,"call","GetAmtAppliedToOtherStmtLines",0],[1079,"call","GetOldAppliedAmtInclDisc",0],[1079,"call","GetAmtAppliedToOtherStmtLines",0],[1081,"call","GetRemAmt",0],[1081,"call","GetAcceptedPmtTolerance",0]]},{"name":"GetTotalAppliedAmountInclPmtDisc","line":1084,"kind":"procedure","params":1,"steps":[[1096,"event","OnAfterAppliedPaymentEntryFilterOnGetTotalAppliedAmountInclPmtDisc",0]]},{"name":"GetNoOfAppliedEntries","line":1112,"kind":"procedure","access":"local","params":1,"steps":[[1123,"event","OnAfterAppliedPaymentEntryFiltersGetNoOfAppliedEntries",0]]},{"name":"UpdatePaymentDiscount","line":1131,"kind":"procedure","params":1,"steps":[[1144,"ext","table",1294,"RemovePaymentDiscount",0],[1153,"ext","table",1294,"SetPaymentDiscount",2],[1157,"call","SetPaymentDiscount",2]]},{"name":"SetPaymentDiscount","line":1160,"kind":"procedure","params":2,"steps":[[1162,"validate",1294,"Applied Pmt. Discount"],[1166,"write",1294,"Modify",1]]},{"name":"RemovePaymentDiscount","line":1170,"kind":"procedure","params":0,"steps":[[1174,"write",1294,"Modify",1]]},{"name":"ClearCustVendEntryApplicationData","line":1177,"kind":"procedure","access":"local","params":0,"steps":[[1184,"call","ClearCustApplicationData",1],[1186,"call","ClearVendApplicationData",1],[1188,"call","ClearEmployeeApplicationData",1]]},{"name":"ClearCustApplicationData","line":1192,"kind":"procedure","access":"local","params":1,"steps":[[1201,"run","codeunit",103]]},{"name":"ClearVendApplicationData","line":1204,"kind":"procedure","access":"local","params":1,"steps":[[1213,"run","codeunit",113]]},{"name":"ClearEmployeeApplicationData","line":1216,"kind":"procedure","access":"local","params":1,"steps":[[1223,"run","codeunit",114]]},{"name":"CalcAmountToApply","line":1226,"kind":"procedure","params":1,"steps":[[1237,"event","OnBeforeCalcAmountToApply",1],[1242,"ext","table",270,"IsInLocalCurrency",0],[1244,"ext","table",330,"ExchangeAmount",4]]}]}