{"title":"Codeunit 103 Cust. Entry-Edit, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/103-cust-entry-edit/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":103,"name":"Cust. Entry-Edit","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/103-cust-entry-edit/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/103-cust-entry-edit/source/","path":"src/Layers/W1/BaseApp/Sales/Receivables/CustEntryEdit.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:379":{"name":"Detailed Cust. Ledg. Entry","url":"https://jonas-paprotka.de/ref/table/379-detailed-cust-ledg-entry/"},"table:21":{"name":"Cust. Ledger Entry","url":"https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/"},"table:112":{"name":"Sales Invoice Header","url":"https://jonas-paprotka.de/ref/table/112-sales-invoice-header/"}},"procs":[{"name":"OnRun","line":23,"kind":"trigger","steps":[[29,"event","OnBeforeOnRun",1],[37,"call","LogFieldChanged",2],[45,"write",379,"ModifyAll"],[48,"validate",21,"Payment Method Code"],[49,"validate",21,"Payment Reference"],[50,"validate",21,"Your Reference"],[51,"validate",21,"Remaining Pmt. Disc. Possible"],[53,"validate",21,"Max. Payment Tolerance"],[54,"validate",21,"Accepted Payment Tolerance"],[55,"validate",21,"Accepted Pmt. Disc. Tolerance"],[56,"validate",21,"Amount to Apply"],[57,"validate",21,"Applying Entry"],[58,"validate",21,"Applies-to Ext. Doc. No."],[59,"validate",21,"Message to Recipient"],[60,"validate",21,"Recipient Bank Account"],[64,"validate",21,"Exported to Payment File"],[65,"validate",21,"Promised Pay Date"],[66,"validate",21,"Dispute Status"],[67,"event","OnBeforeCustLedgEntryModify",0],[69,"write",21,"Modify"],[70,"event","OnRunOnAfterCustLedgEntryModify",0],[71,"call","UpdateSalesInvoiceHeader",1]]},{"name":"SetOnHold","line":84,"kind":"procedure","params":2,"steps":[[94,"write",21,"Modify"]]},{"name":"UpdateSalesInvoiceHeader","line":106,"kind":"procedure","access":"local","params":1,"steps":[[112,"event","OnBeforeUpdateSalesInvoiceHeader",1],[123,"validate",112,"Payment Method Code"],[124,"validate",112,"Payment Reference"],[125,"validate",112,"Posting Description"],[126,"validate",112,"Dispute Status"],[127,"validate",112,"Promised Pay Date"],[128,"validate",112,"Due Date"],[129,"write",112,"Modify",1]]},{"name":"LogFieldChanged","line":133,"kind":"procedure","access":"local","params":2,"steps":[[146,"event","OnAfterLogFieldChanged",0]]}]}