{"title":"Codeunit 140 EC Sales List Suggest Lines, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/140-ec-sales-list-suggest-lines/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":140,"name":"EC Sales List Suggest Lines","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/140-ec-sales-list-suggest-lines/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/140-ec-sales-list-suggest-lines/source/","path":"src/Layers/W1/BaseApp/Finance/VAT/Reporting/ECSalesListSuggestLines.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:700":{"name":"Error Message","url":"https://jonas-paprotka.de/ref/table/700-error-message/"},"table:362":{"name":"ECSL VAT Report Line","url":"https://jonas-paprotka.de/ref/table/362-ecsl-vat-report-line/"},"table:143":{"name":"ECSL VAT Report Line Relation","url":"https://jonas-paprotka.de/ref/table/143-ecsl-vat-report-line-relation/"}},"procs":[{"name":"OnRun","line":18,"kind":"trigger","steps":[[22,"ext","table",700,"SetContext",1],[23,"ext","table",700,"ClearLog",0],[26,"ext","table",700,"LogMessage",4],[31,"ext","table",362,"ClearLines",1],[32,"call","PopulateVatEntryLines",0]]},{"name":"PopulateVatEntryLines","line":40,"kind":"procedure","access":"local","params":0,"steps":[[48,"event","OnPopulateVatEntryLinesOnAfterEUVATEntriesSetFilters",0],[52,"call","AddOrUpdateECLLine",1],[53,"call","RowsTotalCorrection",0],[54,"call","DeleteZeroAmountLines",0]]},{"name":"GetECLLine","line":57,"kind":"procedure","access":"local","params":2,"steps":[[65,"call","GetIndicatorCode",2],[76,"validate",362,"Report No."],[77,"validate",362,"Country Code"],[78,"validate",362,"Customer VAT Reg. No."],[79,"validate",362,"Transaction Indicator"],[80,"write",362,"Insert"]]},{"name":"AddOrUpdateECLLine","line":84,"kind":"procedure","access":"local","params":1,"steps":[[90,"event","OnBeforeAddOrUpdateECLLine",1],[94,"call","GetECLLine",2],[96,"call","AddToRepLineRelation",2],[97,"write",362,"Modify",1]]},{"name":"AddToRepLineRelation","line":111,"kind":"procedure","access":"local","params":2,"steps":[[115,"validate",143,"ECSL Report No."],[116,"validate",143,"ECSL Line No."],[117,"validate",143,"VAT Entry No."],[118,"write",143,"Insert",1]]},{"name":"RowsTotalCorrection","line":121,"kind":"procedure","access":"local","params":0,"steps":[[131,"write",362,"Modify",1]]},{"name":"DeleteZeroAmountLines","line":135,"kind":"procedure","access":"local","params":0,"steps":[[149,"write",143,"DeleteAll"],[152,"write",362,"DeleteAll"]]}]}