---
title: "Codeunit 5805 Item Charge Assgnt. (Purch.), extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/points/
object: https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/
app: "Base Application"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/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 5805 Item Charge Assgnt. (Purch.), extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/points/

25 procedures and triggers with a step in src/Layers/W1/BaseApp/Purchases/Document/ItemChargeAssgntPurch.Codeunit.al, in source order, read from the text, not from a run.

## InsertItemChargeAssignment

[Line 37](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L37).

- [39](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L39) calls `InsertItemChargeAssignmentWithValues`

## InsertItemChargeAssignmentWithValues

[Line 43](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L43).

- [47](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L47) calls `InsertItemChargeAssignmentWithValuesTo`

## InsertItemChargeAssignmentWithValuesTo

[Line 52](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L52).

- [60](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L60) raises `OnBeforeInsertItemChargeAssignmentWithValuesTo`
- [79](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L79) validates [Table 5805 Item Charge Assignment (Purch)](https://jonas-paprotka.de/ref/table/5805-item-charge-assignment-purch/) `Qty. to Assign`
- [81](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L81) raises `OnBeforeInsertItemChargeAssgntWithAssignValues`
- [82](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L82) writes [Table 5805 Item Charge Assignment (Purch)](https://jonas-paprotka.de/ref/table/5805-item-charge-assignment-purch/) Insert

## Summarize

[Line 85](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L85).

- [95](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L95) writes [Table 5805 Item Charge Assignment (Purch)](https://jonas-paprotka.de/ref/table/5805-item-charge-assignment-purch/) Insert
- [108](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L108) writes [Table 5805 Item Charge Assignment (Purch)](https://jonas-paprotka.de/ref/table/5805-item-charge-assignment-purch/) Insert

## CreateDocChargeAssgnt

[Line 111](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L111).

- [119](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L119) raises `OnBeforeCreateDocChargeAssgn`
- [124](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L124) raises `OnCreateDocChargeAssgntOnAfterFromPurchLineSetFilters`
- [135](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L135) calls [Table 39 Purchase Line](https://jonas-paprotka.de/ref/table/39-purchase-line/) `IsWorkCenter`
- [141](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L141) calls `InsertItemChargeAssignment`
- [150](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L150) raises `OnAfterCreateDocChargeAssgnt`

## CreateRcptChargeAssgnt

[Line 153](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L153).

- [160](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L160) raises `OnBeforeCreateRcptChargeAssgnt`
- [164](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L164) calls `CheckFromPurchRcptLineWorkCenter`
- [175](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L175) calls `InsertItemChargeAssignment`

## CheckFromPurchRcptLineWorkCenter

[Line 182](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L182), local.

- [187](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L187) raises `OnBeforeCheckFromPurchRcptLineWorkCenter`, IsHandled
- [191](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L191) calls [Table 121 Purch. Rcpt. Line](https://jonas-paprotka.de/ref/table/121-purch-rcpt-line/) `TestWorkCenterNo`

## CreateTransferRcptChargeAssgnt

[Line 194](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L194).

- [209](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L209) calls `InsertItemChargeAssignment`

## CreateShptChargeAssgnt

[Line 216](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L216).

- [223](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L223) raises `OnBeforeCreateShptChargeAssgnt`
- [236](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L236) calls `InsertItemChargeAssignment`

## CreateSalesShptChargeAssgnt

[Line 243](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L243).

- [250](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L250) raises `OnBeforeCreateSalesShptChargeAssgnt`
- [261](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L261) raises `OnCreateSalesShptChargeAssgntOnBeforeInsertItemChargeAssignment`
- [266](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L266) calls `InsertItemChargeAssignment`

## CreateReturnRcptChargeAssgnt

[Line 274](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L274).

- [281](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L281) raises `OnBeforeCreateReturnRcptChargeAssgnt`
- [294](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L294) calls `InsertItemChargeAssignment`

## SuggestAssgnt

[Line 306](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L306).

- [316](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L316) raises `OnBeforeSuggestAssgnt`
- [330](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L330) raises `OnSuggestAssgntOnAfterItemChargeAssgntPurchSetFilters`
- [337](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L337) calls `AssignEquallyMenuText`
- [337](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L337) calls `AssignByAmountMenuText`
- [337](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L337) calls `AssignByWeightMenuText`
- [337](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L337) calls `AssignByVolumeMenuText`
- [340](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L340) calls `AssignEquallyMenuText`
- [340](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L340) calls `AssignByWeightMenuText`
- [340](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L340) calls `AssignByVolumeMenuText`
- [346](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L346) raises `OnBeforeShowSuggestItemChargeAssignStrMenu`
- [358](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L358) raises `OnSuggestAssgntOnBeforeAssignItemCharges`
- [359](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L359) calls `AssignItemCharges`

## AssignItemCharges

[Line 362](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L362).

- [364](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L364) calls `GetSelectionText`

## GetSelectionText

[Line 367](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L367), local.

- [372](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L372) calls `AssignEquallyMenuText`
- [372](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L372) calls `AssignByAmountMenuText`
- [372](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L372) calls `AssignByWeightMenuText`
- [372](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L372) calls `AssignByVolumeMenuText`

## AssignItemCharges

[Line 381](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L381).

- [390](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L390) raises `OnBeforeAssignItemCharges`, IsHandled
- [397](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L397) calls [Table 4 Currency](https://jonas-paprotka.de/ref/table/4-currency/) `InitRoundingPrecision`
- [404](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L404) writes [Table 5805 Item Charge Assignment (Purch)](https://jonas-paprotka.de/ref/table/5805-item-charge-assignment-purch/) ModifyAll
- [405](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L405) writes [Table 5805 Item Charge Assignment (Purch)](https://jonas-paprotka.de/ref/table/5805-item-charge-assignment-purch/) ModifyAll
- [406](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L406) writes [Table 5805 Item Charge Assignment (Purch)](https://jonas-paprotka.de/ref/table/5805-item-charge-assignment-purch/) ModifyAll
- [407](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L407) writes [Table 5805 Item Charge Assignment (Purch)](https://jonas-paprotka.de/ref/table/5805-item-charge-assignment-purch/) ModifyAll
- [408](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L408) raises `OnAssignItemChargesFromLineOnAfterItemChargeAssignmentModifyAll`
- [412](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L412) calls `AssignEquallyMenuText`
- [413](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L413) calls `AssignEqually`
- [414](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L414) calls `AssignByAmountMenuText`
- [415](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L415) calls `AssignByAmount`
- [416](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L416) calls `AssignByWeightMenuText`
- [417](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L417) calls `AssignByWeight`
- [418](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L418) calls `AssignByVolumeMenuText`
- [419](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L419) calls `AssignByVolume`
- [421](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L421) raises `OnAssignItemCharges`

## ReverseItemChargeAssgnt

[Line 450](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L450).

- [457](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L457) validates [Table 5805 Item Charge Assignment (Purch)](https://jonas-paprotka.de/ref/table/5805-item-charge-assignment-purch/) `Qty. to Handle`
- [458](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L458) writes [Table 5805 Item Charge Assignment (Purch)](https://jonas-paprotka.de/ref/table/5805-item-charge-assignment-purch/) Modify

## AssignEqually

[Line 461](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L461), local.

- [468](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L468) raises `OnBeforeAssignEqually`
- [473](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L473) calls [Table 5805 Item Charge Assignment (Purch)](https://jonas-paprotka.de/ref/table/5805-item-charge-assignment-purch/) `PurchLineInvoiced`
- [475](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L475) writes [Table 5805 Item Charge Assignment (Purch)](https://jonas-paprotka.de/ref/table/5805-item-charge-assignment-purch/) Insert
- [487](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L487) calls [Codeunit 5402 Unit of Measure Management](https://jonas-paprotka.de/ref/codeunit/5402-unit-of-measure-management/) `QtyRndPrecision`
- [494](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L494) raises `OnAssignEquallyOnAfterAmountToAssignCalculated`
- [500](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L500) raises `OnAssignEquallyOnBeforeItemChargeAssignmentPurchModify`
- [501](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L501) writes [Table 5805 Item Charge Assignment (Purch)](https://jonas-paprotka.de/ref/table/5805-item-charge-assignment-purch/) Modify
- [502](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L502) raises `OnAssignEquallyOnAfterItemChargeAssignmentPurchModify`
- [505](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L505) writes [Table 5805 Item Charge Assignment (Purch)](https://jonas-paprotka.de/ref/table/5805-item-charge-assignment-purch/) DeleteAll

## AssignByAmount

[Line 508](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L508), local.

- [521](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L521) calls [Table 5805 Item Charge Assignment (Purch)](https://jonas-paprotka.de/ref/table/5805-item-charge-assignment-purch/) `PurchLineInvoiced`
- [530](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L530) calls `GetPurchLineForItemChargeAssgntPurch`
- [539](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L539) calls [Table 121 Purch. Rcpt. Line](https://jonas-paprotka.de/ref/table/121-purch-rcpt-line/) `GetCurrencyCodeFromHeader`
- [545](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L545) calls [Table 330 Currency Exchange Rate](https://jonas-paprotka.de/ref/table/330-currency-exchange-rate/) `ExchangeAmtFCYToFCY`
- [554](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L554) calls [Table 6651 Return Shipment Line](https://jonas-paprotka.de/ref/table/6651-return-shipment-line/) `GetCurrencyCode`
- [560](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L560) calls [Table 330 Currency Exchange Rate](https://jonas-paprotka.de/ref/table/330-currency-exchange-rate/) `ExchangeAmtFCYToFCY`
- [569](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L569) calls [Table 111 Sales Shipment Line](https://jonas-paprotka.de/ref/table/111-sales-shipment-line/) `GetCurrencyCode`
- [575](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L575) calls [Table 330 Currency Exchange Rate](https://jonas-paprotka.de/ref/table/330-currency-exchange-rate/) `ExchangeAmtFCYToFCY`
- [584](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L584) calls [Table 6661 Return Receipt Line](https://jonas-paprotka.de/ref/table/6661-return-receipt-line/) `GetCurrencyCode`
- [590](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L590) calls [Table 330 Currency Exchange Rate](https://jonas-paprotka.de/ref/table/330-currency-exchange-rate/) `ExchangeAmtFCYToFCY`
- [595](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L595) raises `OnAssignByAmountOnAfterAssignAppliesToDocLineAmount`
- [597](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L597) writes [Table 5805 Item Charge Assignment (Purch)](https://jonas-paprotka.de/ref/table/5805-item-charge-assignment-purch/) Insert
- [603](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L603) writes [Table 5805 Item Charge Assignment (Purch)](https://jonas-paprotka.de/ref/table/5805-item-charge-assignment-purch/) Modify
- [620](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L620) calls [Codeunit 5402 Unit of Measure Management](https://jonas-paprotka.de/ref/codeunit/5402-unit-of-measure-management/) `QtyRndPrecision`
- [627](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L627) raises `OnAssignByAmountOnAfterAmountToAssignCalculated`
- [633](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L633) raises `OnAssignByAmountOnBeforeItemChargeAssignmentPurchModify`
- [634](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L634) writes [Table 5805 Item Charge Assignment (Purch)](https://jonas-paprotka.de/ref/table/5805-item-charge-assignment-purch/) Modify
- [635](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L635) raises `OnAssignByAmountOnAfterItemChargeAssignmentPurchModify`
- [638](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L638) writes [Table 5805 Item Charge Assignment (Purch)](https://jonas-paprotka.de/ref/table/5805-item-charge-assignment-purch/) DeleteAll

## GetPurchLineForItemChargeAssgntPurch

[Line 641](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L641), local.

- [646](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L646) raises `OnBeforeGetPurchLineForItemChargeAssgntPurch`

## AssignByWeight

[Line 653](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L653), local.

- [662](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L662) calls [Table 5805 Item Charge Assignment (Purch)](https://jonas-paprotka.de/ref/table/5805-item-charge-assignment-purch/) `PurchLineInvoiced`
- [665](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L665) writes [Table 5805 Item Charge Assignment (Purch)](https://jonas-paprotka.de/ref/table/5805-item-charge-assignment-purch/) Insert
- [666](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L666) calls `GetItemValues`
- [670](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L670) raises `OnAssignByWeightOnAfterCalcTotalGrossWeight`
- [676](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L676) calls `GetItemValues`
- [683](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L683) calls `AssignPurchItemCharge`
- [685](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L685) raises `OnAssignByWeightOnBeforeTempItemChargeAssgntPurchDelete`
- [686](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L686) writes [Table 5805 Item Charge Assignment (Purch)](https://jonas-paprotka.de/ref/table/5805-item-charge-assignment-purch/) DeleteAll

## AssignByVolume

[Line 689](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L689), local.

- [698](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L698) calls [Table 5805 Item Charge Assignment (Purch)](https://jonas-paprotka.de/ref/table/5805-item-charge-assignment-purch/) `PurchLineInvoiced`
- [701](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L701) writes [Table 5805 Item Charge Assignment (Purch)](https://jonas-paprotka.de/ref/table/5805-item-charge-assignment-purch/) Insert
- [702](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L702) calls `GetItemValues`
- [706](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L706) raises `OnAssignByVolumeOnAfterCalcTotalUnitVolume`
- [711](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L711) calls `GetItemValues`
- [718](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L718) calls `AssignPurchItemCharge`
- [720](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L720) writes [Table 5805 Item Charge Assignment (Purch)](https://jonas-paprotka.de/ref/table/5805-item-charge-assignment-purch/) DeleteAll

## AssignPurchItemCharge

[Line 723](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L723).

- [730](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L730) calls [Codeunit 5402 Unit of Measure Management](https://jonas-paprotka.de/ref/codeunit/5402-unit-of-measure-management/) `QtyRndPrecision`
- [740](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L740) raises `OnAssignPurchItemChargeOnBeforeItemChargeAssignmentPurchModify`
- [741](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L741) writes [Table 5805 Item Charge Assignment (Purch)](https://jonas-paprotka.de/ref/table/5805-item-charge-assignment-purch/) Modify

## GetItemValues

[Line 744](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L744).

- [755](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L755) raises `OnBeforeGetItemValues`
- [770](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L770) raises `OnGetItemValuesOnAfterGetPurchLine`
- [778](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L778) raises `OnGetItemValuesOnAfterGetPurchRcptLine`
- [786](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L786) raises `OnGetItemValuesOnAfterGetReturnRcptLine`
- [794](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L794) raises `OnGetItemValuesOnAfterGetReturnShptLine`
- [802](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L802) raises `OnGetItemValuesOnAfterGetTransferRcptLine`
- [810](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L810) raises `OnGetItemValuesOnAfterGetSalesShptLine`
- [815](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L815) raises `OnAfterGetItemValues`

## SuggestAssgntFromLine

[Line 818](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L818).

- [833](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L833) calls [Table 4 Currency](https://jonas-paprotka.de/ref/table/4-currency/) `InitRoundingPrecision`
- [835](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L835) calls `GetItemChargeAssgntLineAmounts`
- [846](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L846) raises `OnSuggestAssgntFromLineOnBeforeItemChargeAssignmentPurchModify`
- [847](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L847) writes [Table 5805 Item Charge Assignment (Purch)](https://jonas-paprotka.de/ref/table/5805-item-charge-assignment-purch/) Modify
- [868](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L868) calls [Table 5805 Item Charge Assignment (Purch)](https://jonas-paprotka.de/ref/table/5805-item-charge-assignment-purch/) `PurchLineInvoiced`
- [870](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L870) writes [Table 5805 Item Charge Assignment (Purch)](https://jonas-paprotka.de/ref/table/5805-item-charge-assignment-purch/) Insert
- [895](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L895) writes [Table 5805 Item Charge Assignment (Purch)](https://jonas-paprotka.de/ref/table/5805-item-charge-assignment-purch/) Modify

## GetItemChargeAssgntLineAmounts

[Line 905](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L905), local.

- [913](https://jonas-paprotka.de/ref/codeunit/5805-item-charge-assgnt-purch/source/#L913) calls [Table 4 Currency](https://jonas-paprotka.de/ref/table/4-currency/) `InitRoundingPrecision`

## Source

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

JOP-AL, 2026-11-20.
