---
title: "Codeunit 6138 E-Document Update Order, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/6138-e-document-update-order/points/
object: https://jonas-paprotka.de/ref/codeunit/6138-e-document-update-order/
app: "E-Document Core"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/6138-e-document-update-order/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 6138 E-Document Update Order, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/6138-e-document-update-order/points/

3 procedures and triggers with a step in src/Apps/W1/EDocument/App/src/Processing/EDocumentUpdateOrder.Codeunit.al, in source order, read from the text, not from a run.

## OnRun

[Line 12](https://jonas-paprotka.de/ref/codeunit/6138-e-document-update-order/source/#L12), trigger.

- [14](https://jonas-paprotka.de/ref/codeunit/6138-e-document-update-order/source/#L14) calls `UpdateOrder`

## UpdateOrder

[Line 30](https://jonas-paprotka.de/ref/codeunit/6138-e-document-update-order/source/#L30), local.

- [36](https://jonas-paprotka.de/ref/codeunit/6138-e-document-update-order/source/#L36) calls [Codeunit 6109 E-Document Import Helper](https://jonas-paprotka.de/ref/codeunit/6109-e-document-import-helper/) `ProcessFieldNoValidate`
- [41](https://jonas-paprotka.de/ref/codeunit/6138-e-document-update-order/source/#L41) calls `SetHeaderConfirmGeneratorFields`
- [46](https://jonas-paprotka.de/ref/codeunit/6138-e-document-update-order/source/#L46) calls [Codeunit 6109 E-Document Import Helper](https://jonas-paprotka.de/ref/codeunit/6109-e-document-import-helper/) `ProcessFieldNoValidate`
- [54](https://jonas-paprotka.de/ref/codeunit/6138-e-document-update-order/source/#L54) raises `OnBeforeProcessHeaderFieldsAssignment`
- [58](https://jonas-paprotka.de/ref/codeunit/6138-e-document-update-order/source/#L58) calls [Codeunit 6109 E-Document Import Helper](https://jonas-paprotka.de/ref/codeunit/6109-e-document-import-helper/) `ProcessFieldNoValidate`
- [61](https://jonas-paprotka.de/ref/codeunit/6138-e-document-update-order/source/#L61) raises `OnBeforeProcessHeaderFieldsValidation`
- [65](https://jonas-paprotka.de/ref/codeunit/6138-e-document-update-order/source/#L65) calls [Codeunit 6109 E-Document Import Helper](https://jonas-paprotka.de/ref/codeunit/6109-e-document-import-helper/) `ProcessField`
- [68](https://jonas-paprotka.de/ref/codeunit/6138-e-document-update-order/source/#L68) raises `OnCreateNewPurchHdrOnBeforeRecRefModify`

## SetHeaderConfirmGeneratorFields

[Line 72](https://jonas-paprotka.de/ref/codeunit/6138-e-document-update-order/source/#L72), local.

- [78](https://jonas-paprotka.de/ref/codeunit/6138-e-document-update-order/source/#L78) calls [Table 38 Purchase Header](https://jonas-paprotka.de/ref/table/38-purchase-header/) `SetHideValidationDialog`
- [82](https://jonas-paprotka.de/ref/codeunit/6138-e-document-update-order/source/#L82) validates [Table 38 Purchase Header](https://jonas-paprotka.de/ref/table/38-purchase-header/) `Pay-to Vendor No.`
- [86](https://jonas-paprotka.de/ref/codeunit/6138-e-document-update-order/source/#L86) validates [Table 38 Purchase Header](https://jonas-paprotka.de/ref/table/38-purchase-header/) `Buy-from Contact No.`
- [90](https://jonas-paprotka.de/ref/codeunit/6138-e-document-update-order/source/#L90) validates [Table 38 Purchase Header](https://jonas-paprotka.de/ref/table/38-purchase-header/) `Pay-to Contact No.`
- [94](https://jonas-paprotka.de/ref/codeunit/6138-e-document-update-order/source/#L94) validates [Table 38 Purchase Header](https://jonas-paprotka.de/ref/table/38-purchase-header/) `VAT Base Discount %`
- [96](https://jonas-paprotka.de/ref/codeunit/6138-e-document-update-order/source/#L96) writes [Table 38 Purchase Header](https://jonas-paprotka.de/ref/table/38-purchase-header/) Modify(true)

## Source

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

JOP-AL, 2026-11-20.
