---
title: "Codeunit 6246 E-Doc. Item Charge Mapping, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/6246-e-doc-item-charge-mapping/points/
object: https://jonas-paprotka.de/ref/codeunit/6246-e-doc-item-charge-mapping/
app: "E-Document Core"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/6246-e-doc-item-charge-mapping/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 6246 E-Doc. Item Charge Mapping, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/6246-e-doc-item-charge-mapping/points/

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

## GetItemChargeStructure

[Line 38](https://jonas-paprotka.de/ref/codeunit/6246-e-doc-item-charge-mapping/source/#L38).

- [50](https://jonas-paprotka.de/ref/codeunit/6246-e-doc-item-charge-mapping/source/#L50) calls `GetEffectiveMapping`
- [51](https://jonas-paprotka.de/ref/codeunit/6246-e-doc-item-charge-mapping/source/#L51) calls `NeedsLineToKeep`
- [52](https://jonas-paprotka.de/ref/codeunit/6246-e-doc-item-charge-mapping/source/#L52) calls `HasLineToKeepInInvoice`
- [53](https://jonas-paprotka.de/ref/codeunit/6246-e-doc-item-charge-mapping/source/#L53) calls `NeedsAssignedLine`
- [54](https://jonas-paprotka.de/ref/codeunit/6246-e-doc-item-charge-mapping/source/#L54) calls `FindSingleAssignedLineNo`
- [58](https://jonas-paprotka.de/ref/codeunit/6246-e-doc-item-charge-mapping/source/#L58) calls `HasSameVAT`
- [65](https://jonas-paprotka.de/ref/codeunit/6246-e-doc-item-charge-mapping/source/#L65) calls `GetStructure`
- [69](https://jonas-paprotka.de/ref/codeunit/6246-e-doc-item-charge-mapping/source/#L69) raises `OnAfterGetItemChargeStructure`

## GetItemChargeStructure

[Line 81](https://jonas-paprotka.de/ref/codeunit/6246-e-doc-item-charge-mapping/source/#L81).

- [93](https://jonas-paprotka.de/ref/codeunit/6246-e-doc-item-charge-mapping/source/#L93) calls `GetEffectiveMapping`
- [94](https://jonas-paprotka.de/ref/codeunit/6246-e-doc-item-charge-mapping/source/#L94) calls `NeedsLineToKeep`
- [95](https://jonas-paprotka.de/ref/codeunit/6246-e-doc-item-charge-mapping/source/#L95) calls `HasLineToKeepInCrMemo`
- [96](https://jonas-paprotka.de/ref/codeunit/6246-e-doc-item-charge-mapping/source/#L96) calls `NeedsAssignedLine`
- [97](https://jonas-paprotka.de/ref/codeunit/6246-e-doc-item-charge-mapping/source/#L97) calls `FindSingleAssignedLineNo`
- [101](https://jonas-paprotka.de/ref/codeunit/6246-e-doc-item-charge-mapping/source/#L101) calls `HasSameVAT`
- [108](https://jonas-paprotka.de/ref/codeunit/6246-e-doc-item-charge-mapping/source/#L108) calls `GetStructure`
- [112](https://jonas-paprotka.de/ref/codeunit/6246-e-doc-item-charge-mapping/source/#L112) raises `OnAfterGetSalesCrMemoItemChargeStructure`

## GetFallbackUnitPrice

[Line 144](https://jonas-paprotka.de/ref/codeunit/6246-e-doc-item-charge-mapping/source/#L144).

- [148](https://jonas-paprotka.de/ref/codeunit/6246-e-doc-item-charge-mapping/source/#L148) calls `GetFallbackQuantity`

## FindSingleAssignedLineNo

[Line 287](https://jonas-paprotka.de/ref/codeunit/6246-e-doc-item-charge-mapping/source/#L287), local.

- [291](https://jonas-paprotka.de/ref/codeunit/6246-e-doc-item-charge-mapping/source/#L291) calls `CollectAssignedLineNos`

## CollectAssignedLineNos

[Line 297](https://jonas-paprotka.de/ref/codeunit/6246-e-doc-item-charge-mapping/source/#L297), local.

- [312](https://jonas-paprotka.de/ref/codeunit/6246-e-doc-item-charge-mapping/source/#L312) calls `CollectDocumentLineNosByItemLedgerEntry`

## Source

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

JOP-AL, 2026-11-20.
