---
title: "Codeunit 5497 Graph Mgt - Purch Order Buffer, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/points/
object: https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/
app: "Base Application"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/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 5497 Graph Mgt - Purch Order Buffer, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/points/

30 procedures and triggers with a step in src/Layers/W1/BaseApp/Integration/Graph/GraphMgtPurchOrderBuffer.Codeunit.al, in source order, read from the text, not from a run.

## OnAfterInsertPurchaseHeader

[Line 33](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L33), local.

- [35](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L35) calls `CheckValidRecord`
- [35](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L35) calls [Codeunit 5465 Graph Mgt - General Tools](https://jonas-paprotka.de/ref/codeunit/5465-graph-mgt-general-tools/) `IsApiEnabled`
- [38](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L38) calls `CheckUpdatesDisabled`
- [41](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L41) calls `InsertOrModifyFromPurchaseHeader`

## OnAfterModifyPurchaseHeader

[Line 45](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L45), local.

- [47](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L47) calls `CheckValidRecord`
- [47](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L47) calls [Codeunit 5465 Graph Mgt - General Tools](https://jonas-paprotka.de/ref/codeunit/5465-graph-mgt-general-tools/) `IsApiEnabled`
- [50](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L50) calls `IsBackgroundPosting`
- [53](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L53) calls `CheckUpdatesDisabled`
- [56](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L56) calls `InsertOrModifyFromPurchaseHeader`

## OnAfterDeletePurchaseHeader

[Line 60](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L60), local.

- [64](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L64) calls `CheckValidRecord`
- [64](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L64) calls [Codeunit 5465 Graph Mgt - General Tools](https://jonas-paprotka.de/ref/codeunit/5465-graph-mgt-general-tools/) `IsApiEnabled`
- [67](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L67) calls `CheckUpdatesDisabled`
- [72](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L72) writes [Table 5496 Purchase Order Entity Buffer](https://jonas-paprotka.de/ref/table/5496-purchase-order-entity-buffer/) Delete

## OnAfterResetRecalculateInvoiceDisc

[Line 76](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L76), local.

- [78](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L78) calls `CheckValidRecord`
- [78](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L78) calls [Codeunit 5465 Graph Mgt - General Tools](https://jonas-paprotka.de/ref/codeunit/5465-graph-mgt-general-tools/) `IsApiEnabled`
- [81](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L81) calls `CheckUpdatesDisabled`
- [84](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L84) calls `InsertOrModifyFromPurchaseHeader`

## OnAfterInsertPurchaseLine

[Line 88](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L88), local.

- [90](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L90) calls `CheckValidLineRecord`
- [93](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L93) calls `CheckUpdatesDisabled`
- [96](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L96) calls `UpdateCompletelyReceived`
- [97](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L97) calls `ModifyTotalsPurchaseLine`

## OnAfterModifyPurchaseLine

[Line 101](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L101), local.

- [103](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L103) calls `CheckValidLineRecord`
- [106](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L106) calls `CheckUpdatesDisabled`
- [109](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L109) calls `UpdateCompletelyReceived`
- [110](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L110) calls `ModifyTotalsPurchaseLine`

## OnAfterDeletePurchaseLine

[Line 114](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L114), local.

- [118](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L118) calls `CheckValidLineRecord`
- [121](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L121) calls `CheckUpdatesDisabled`
- [124](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L124) calls `UpdateCompletelyReceived`
- [131](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L131) calls `ModifyTotalsPurchaseLine`
- [138](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L138) calls `BlankTotals`

## OnAfterCalculatePurchaseDiscountOnPurchaseHeader

[Line 142](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L142), local.

- [144](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L144) calls `CheckValidRecord`
- [144](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L144) calls [Codeunit 5465 Graph Mgt - General Tools](https://jonas-paprotka.de/ref/codeunit/5465-graph-mgt-general-tools/) `IsApiEnabled`
- [147](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L147) calls `CheckUpdatesDisabled`
- [150](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L150) calls `InsertOrModifyFromPurchaseHeader`

## PropagateOnInsert

[Line 153](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L153).

- [160](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L160) calls [Codeunit 5465 Graph Mgt - General Tools](https://jonas-paprotka.de/ref/codeunit/5465-graph-mgt-general-tools/) `IsApiEnabled`
- [168](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L168) calls [Codeunit 10 Type Helper](https://jonas-paprotka.de/ref/codeunit/10-type-helper/) `TransferFieldsWithValidate`
- [174](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L174) calls `SetShipToAddress`
- [175](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L175) calls [Table 38 Purchase Header](https://jonas-paprotka.de/ref/table/38-purchase-header/) `CopyBuyFromAddressToPayToAddress`
- [176](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L176) writes [Table 38 Purchase Header](https://jonas-paprotka.de/ref/table/38-purchase-header/) Modify(true)

## PropagateOnModify

[Line 182](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L182).

- [189](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L189) calls [Codeunit 5465 Graph Mgt - General Tools](https://jonas-paprotka.de/ref/codeunit/5465-graph-mgt-general-tools/) `IsApiEnabled`
- [198](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L198) calls [Codeunit 10 Type Helper](https://jonas-paprotka.de/ref/codeunit/10-type-helper/) `TransferFieldsWithValidate`
- [201](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L201) calls [Table 38 Purchase Header](https://jonas-paprotka.de/ref/table/38-purchase-header/) `CopyBuyFromAddressToPayToAddress`
- [204](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L204) writes [Table 38 Purchase Header](https://jonas-paprotka.de/ref/table/38-purchase-header/) Modify(true)
- [206](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L206) writes [Table 38 Purchase Header](https://jonas-paprotka.de/ref/table/38-purchase-header/) Insert(true)

## PropagateOnDelete

[Line 209](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L209).

- [213](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L213) calls [Codeunit 5465 Graph Mgt - General Tools](https://jonas-paprotka.de/ref/codeunit/5465-graph-mgt-general-tools/) `IsApiEnabled`
- [217](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L217) writes [Table 38 Purchase Header](https://jonas-paprotka.de/ref/table/38-purchase-header/) Delete(true)

## UpdateBufferTableRecords

[Line 220](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L220).

- [230](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L230) calls `InsertOrModifyFromPurchaseHeader`
- [231](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L231) calls [Codeunit 9994 API Data Upgrade](https://jonas-paprotka.de/ref/codeunit/9994-api-data-upgrade/) `CountRecordsAndCommit`
- [237](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L237) writes [Table 5496 Purchase Order Entity Buffer](https://jonas-paprotka.de/ref/table/5496-purchase-order-entity-buffer/) Delete(true)
- [238](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L238) calls [Codeunit 9994 API Data Upgrade](https://jonas-paprotka.de/ref/codeunit/9994-api-data-upgrade/) `CountRecordsAndCommit`

## InsertOrModifyFromPurchaseHeader

[Line 243](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L243).

- [253](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L253) calls `SetStatusOptionFromPurchaseHeader`
- [254](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L254) calls `AssignTotalsFromPurchaseHeader`
- [255](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L255) calls [Table 5496 Purchase Order Entity Buffer](https://jonas-paprotka.de/ref/table/5496-purchase-order-entity-buffer/) `UpdateReferencedRecordIds`
- [258](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L258) writes [Table 5496 Purchase Order Entity Buffer](https://jonas-paprotka.de/ref/table/5496-purchase-order-entity-buffer/) Modify(true)
- [260](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L260) writes [Table 5496 Purchase Order Entity Buffer](https://jonas-paprotka.de/ref/table/5496-purchase-order-entity-buffer/) Insert(true)

## AssignTotalsFromPurchaseHeader

[Line 300](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L300), local.

- [308](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L308) calls `BlankTotals`
- [312](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L312) calls `AssignTotalsFromPurchaseLine`

## AssignTotalsFromPurchaseLine

[Line 315](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L315), local.

- [327](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L327) calls [Codeunit 57 Document Totals](https://jonas-paprotka.de/ref/codeunit/57-document-totals/) `CalculatePurchaseTotals`

## BlankTotals

[Line 335](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L335), local.

- [342](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L342) calls `CheckUpdatesDisabled`
- [350](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L350) writes [Table 5496 Purchase Order Entity Buffer](https://jonas-paprotka.de/ref/table/5496-purchase-order-entity-buffer/) Modify

## CheckValidLineRecord

[Line 364](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L364), local.

- [366](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L366) calls [Codeunit 5465 Graph Mgt - General Tools](https://jonas-paprotka.de/ref/codeunit/5465-graph-mgt-general-tools/) `IsApiEnabled`

## ModifyTotalsPurchaseLine

[Line 375](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L375), local.

- [389](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L389) calls `CheckUpdatesDisabled`
- [392](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L392) calls `AssignTotalsFromPurchaseLine`
- [393](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L393) writes [Table 5496 Purchase Order Entity Buffer](https://jonas-paprotka.de/ref/table/5496-purchase-order-entity-buffer/) Modify(true)

## TransferPurchaseInvoiceLineAggregateToPurchaseLine

[Line 396](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L396), local.

- [404](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L404) calls [Codeunit 10 Type Helper](https://jonas-paprotka.de/ref/codeunit/10-type-helper/) `TransferFieldsWithValidate`

## RedistributeInvoiceDiscounts

[Line 409](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L409).

- [417](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L417) runs [Codeunit 66 Purch - Calc Disc. By Type](https://jonas-paprotka.de/ref/codeunit/66-purch-calc-disc-by-type/)

## LoadLines

[Line 422](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L422).

- [433](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L433) calls `LoadPurchaseLines`

## LoadPurchaseLines

[Line 436](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L436), local.

- [445](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L445) calls `TransferFromPurchaseLine`
- [446](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L446) writes [Table 5478 Purch. Inv. Line Aggregate](https://jonas-paprotka.de/ref/table/5478-purch-inv-line-aggregate/) Insert(true)

## TransferFromPurchaseLine

[Line 450](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L450), local.

- [458](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L458) calls [Codeunit 5477 Sales Invoice Aggregator](https://jonas-paprotka.de/ref/codeunit/5477-sales-invoice-aggregator/) `GetIdFromDocumentIdAndSequence`
- [461](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L461) calls [Codeunit 5529 Purch. Inv. Aggregator](https://jonas-paprotka.de/ref/codeunit/5529-purch-inv-aggregator/) `SetTaxGroupIdAndCode`
- [468](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L468) calls [Table 5478 Purch. Inv. Line Aggregate](https://jonas-paprotka.de/ref/table/5478-purch-inv-line-aggregate/) `UpdateReferencedRecordIds`
- [469](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L469) calls `UpdateLineAmountsFromPurchaseLine`
- [470](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L470) calls `SetItemVariantId`

## PropagateInsertLine

[Line 481](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L481).

- [487](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L487) calls `VerifyCRUDIsPossibleForLine`
- [505](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L505) calls `TransferPurchaseInvoiceLineAggregateToPurchaseLine`
- [506](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L506) writes [Table 39 Purchase Line](https://jonas-paprotka.de/ref/table/39-purchase-line/) Insert(true)
- [508](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L508) calls `RedistributeInvoiceDiscounts`
- [511](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L511) calls `TransferFromPurchaseLine`

## PropagateModifyLine

[Line 514](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L514).

- [519](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L519) calls `VerifyCRUDIsPossibleForLine`
- [524](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L524) calls `TransferPurchaseInvoiceLineAggregateToPurchaseLine`
- [526](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L526) writes [Table 39 Purchase Line](https://jonas-paprotka.de/ref/table/39-purchase-line/) Modify(true)
- [528](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L528) calls `RedistributeInvoiceDiscounts`
- [531](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L531) calls `TransferFromPurchaseLine`

## PropagateDeleteLine

[Line 534](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L534).

- [539](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L539) calls `VerifyCRUDIsPossibleForLine`
- [542](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L542) writes [Table 39 Purchase Line](https://jonas-paprotka.de/ref/table/39-purchase-line/) Delete(true)
- [543](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L543) calls `RedistributeInvoiceDiscounts`

## DeleteOrphanedRecords

[Line 547](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L547).

- [557](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L557) writes [Table 5496 Purchase Order Entity Buffer](https://jonas-paprotka.de/ref/table/5496-purchase-order-entity-buffer/) Delete
- [560](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L560) calls [Codeunit 9999 Upgrade Tag](https://jonas-paprotka.de/ref/codeunit/9999-upgrade-tag/) `HasUpgradeTag`
- [560](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L560) calls [Codeunit 9998 Upgrade Tag Definitions](https://jonas-paprotka.de/ref/codeunit/9998-upgrade-tag-definitions/) `GetDeletePurchaseOrdersOrphanedRecords`
- [561](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L561) calls [Codeunit 9999 Upgrade Tag](https://jonas-paprotka.de/ref/codeunit/9999-upgrade-tag/) `SetUpgradeTag`
- [561](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L561) calls [Codeunit 9998 Upgrade Tag Definitions](https://jonas-paprotka.de/ref/codeunit/9998-upgrade-tag-definitions/) `GetDeletePurchaseOrdersOrphanedRecords`

## UpdateCompletelyReceived

[Line 587](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L587), local.

- [605](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L605) calls `CheckUpdatesDisabled`
- [610](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L610) writes [Table 5496 Purchase Order Entity Buffer](https://jonas-paprotka.de/ref/table/5496-purchase-order-entity-buffer/) Modify(true)

## UpdateLineAmountsFromPurchaseLine

[Line 614](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L614), local.

- [616](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L616) calls [Table 39 Purchase Line](https://jonas-paprotka.de/ref/table/39-purchase-line/) `GetLineAmountExclVAT`
- [617](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L617) calls [Table 39 Purchase Line](https://jonas-paprotka.de/ref/table/39-purchase-line/) `GetLineAmountInclVAT`
- [620](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L620) calls `UpdateInvoiceDiscountAmount`

## CheckUpdatesDisabled

[Line 640](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L640), local.

- [645](https://jonas-paprotka.de/ref/codeunit/5497-graph-mgt-purch-order-buffer/source/#L645) calls [Codeunit 5532 Disable Aggregate Table Update](https://jonas-paprotka.de/ref/codeunit/5532-disable-aggregate-table-update/) `OnGetAggregateTablesUpdateEnabled`

## Source

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

JOP-AL, 2026-11-20.
