---
title: "Codeunit 338 VAT Entry - Edit, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/338-vat-entry-edit/points/
object: https://jonas-paprotka.de/ref/codeunit/338-vat-entry-edit/
app: "Base Application"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/338-vat-entry-edit/source/
checked: 2026-11-20
changed: 2026-10-05
subject: "Microsoft Dynamics 365 Business Central"
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/"
---

# Codeunit 338 VAT Entry - Edit, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/338-vat-entry-edit/points/

3 procedures and triggers with a step in src/Layers/W1/BaseApp/Finance/VAT/Ledger/VATEntryEdit.Codeunit.al, in source order, read from the text, not from a run.

## OnRun

[Line 20](https://jonas-paprotka.de/ref/codeunit/338-vat-entry-edit/source/#L20), trigger.

- [25](https://jonas-paprotka.de/ref/codeunit/338-vat-entry-edit/source/#L25) validates [Table 254 VAT Entry](https://jonas-paprotka.de/ref/table/254-vat-entry/) `Type`
- [32](https://jonas-paprotka.de/ref/codeunit/338-vat-entry-edit/source/#L32) raises `OnBeforeVATEntryModify`
- [37](https://jonas-paprotka.de/ref/codeunit/338-vat-entry-edit/source/#L37) writes [Table 254 VAT Entry](https://jonas-paprotka.de/ref/table/254-vat-entry/) Modify
- [38](https://jonas-paprotka.de/ref/codeunit/338-vat-entry-edit/source/#L38) raises `OnRunOnAfterVATEntryModify`

## SetGLAccountNo

[Line 51](https://jonas-paprotka.de/ref/codeunit/338-vat-entry-edit/source/#L51).

- [54](https://jonas-paprotka.de/ref/codeunit/338-vat-entry-edit/source/#L54) writes [Table 254 VAT Entry](https://jonas-paprotka.de/ref/table/254-vat-entry/) Modify

## SetGLAccountNo

[Line 63](https://jonas-paprotka.de/ref/codeunit/338-vat-entry-edit/source/#L63).

- [66](https://jonas-paprotka.de/ref/codeunit/338-vat-entry-edit/source/#L66) writes [Table 254 VAT Entry](https://jonas-paprotka.de/ref/table/254-vat-entry/) ModifyAll

## Source

AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at 4303e5e584d3aa5d9e98cbc615525a5396ad6ed7.

JOP-AL, 2026-11-20.
