---
title: "Codeunit 6274 Sust. Excise Cal. Mgt, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/points/
object: https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/
app: "Sustainability"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/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 6274 Sust. Excise Cal. Mgt, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/points/

7 procedures and triggers with a step in src/Apps/W1/Sustainability/app/src/ExciseTax/SustExciseCalMgt.Codeunit.al, in source order, read from the text, not from a run.

## Calculate

[Line 24](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L24), internal.

- [30](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L30) calls `CalculateForCBAM`
- [32](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L32) calls `CalculateForEPR`

## CalculateForCBAM

[Line 38](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L38), local.

- [50](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L50) calls `ExistSustExciseJournalLine`
- [50](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L50) calls `IsForeignVendor`
- [51](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L51) calls `InsertExciseJournalLineFromPurchaseInvoiceLine`

## CalculateForEPR

[Line 55](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L55), local.

- [65](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L65) calls `ExistSustExciseJournalLine`
- [66](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L66) calls `InsertExciseJournalLineFromItemLedgerEntry`

## InsertExciseJournalLineFromPurchaseInvoiceLine

[Line 70](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L70), local.

- [79](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L79) validates [Table 6240 Sust. Excise Jnl. Line](https://jonas-paprotka.de/ref/table/6240-sust-excise-jnl-line/) `Journal Template Name`
- [80](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L80) validates [Table 6240 Sust. Excise Jnl. Line](https://jonas-paprotka.de/ref/table/6240-sust-excise-jnl-line/) `Journal Batch Name`
- [81](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L81) validates [Table 6240 Sust. Excise Jnl. Line](https://jonas-paprotka.de/ref/table/6240-sust-excise-jnl-line/) `Line No.`
- [81](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L81) calls [Table 6240 Sust. Excise Jnl. Line](https://jonas-paprotka.de/ref/table/6240-sust-excise-jnl-line/) `GetSustExciseJournalLineLastLineNo`
- [82](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L82) validates [Table 6240 Sust. Excise Jnl. Line](https://jonas-paprotka.de/ref/table/6240-sust-excise-jnl-line/) `Posting Date`
- [83](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L83) validates [Table 6240 Sust. Excise Jnl. Line](https://jonas-paprotka.de/ref/table/6240-sust-excise-jnl-line/) `Entry Type`
- [84](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L84) validates [Table 6240 Sust. Excise Jnl. Line](https://jonas-paprotka.de/ref/table/6240-sust-excise-jnl-line/) `Document Type`
- [85](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L85) validates [Table 6240 Sust. Excise Jnl. Line](https://jonas-paprotka.de/ref/table/6240-sust-excise-jnl-line/) `Document No.`
- [85](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L85) calls [Codeunit 308 No. Series - Batch](https://jonas-paprotka.de/ref/codeunit/308-no-series-batch/) `GetNextNo`
- [86](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L86) validates [Table 6240 Sust. Excise Jnl. Line](https://jonas-paprotka.de/ref/table/6240-sust-excise-jnl-line/) `Description`
- [87](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L87) validates [Table 6240 Sust. Excise Jnl. Line](https://jonas-paprotka.de/ref/table/6240-sust-excise-jnl-line/) `Partner Type`
- [88](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L88) validates [Table 6240 Sust. Excise Jnl. Line](https://jonas-paprotka.de/ref/table/6240-sust-excise-jnl-line/) `Partner No.`
- [89](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L89) validates [Table 6240 Sust. Excise Jnl. Line](https://jonas-paprotka.de/ref/table/6240-sust-excise-jnl-line/) `Source of Emission Data`
- [90](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L90) validates [Table 6240 Sust. Excise Jnl. Line](https://jonas-paprotka.de/ref/table/6240-sust-excise-jnl-line/) `Emission Verified`
- [91](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L91) validates [Table 6240 Sust. Excise Jnl. Line](https://jonas-paprotka.de/ref/table/6240-sust-excise-jnl-line/) `CBAM Compliance`
- [92](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L92) validates [Table 6240 Sust. Excise Jnl. Line](https://jonas-paprotka.de/ref/table/6240-sust-excise-jnl-line/) `Source Type`
- [93](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L93) validates [Table 6240 Sust. Excise Jnl. Line](https://jonas-paprotka.de/ref/table/6240-sust-excise-jnl-line/) `Source No.`
- [94](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L94) validates [Table 6240 Sust. Excise Jnl. Line](https://jonas-paprotka.de/ref/table/6240-sust-excise-jnl-line/) `Source Unit of Measure Code`
- [95](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L95) validates [Table 6240 Sust. Excise Jnl. Line](https://jonas-paprotka.de/ref/table/6240-sust-excise-jnl-line/) `Source Qty.`
- [96](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L96) validates [Table 6240 Sust. Excise Jnl. Line](https://jonas-paprotka.de/ref/table/6240-sust-excise-jnl-line/) `CO2e Unit of Measure`
- [99](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L99) validates [Table 6240 Sust. Excise Jnl. Line](https://jonas-paprotka.de/ref/table/6240-sust-excise-jnl-line/) `Country/Region Code`
- [101](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L101) calls [Codeunit 6212 Sustainability Post Mgt](https://jonas-paprotka.de/ref/codeunit/6212-sustainability-post-mgt/) `UpdateCarbonFeeEmissionValues`
- [102](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L102) validates [Table 6240 Sust. Excise Jnl. Line](https://jonas-paprotka.de/ref/table/6240-sust-excise-jnl-line/) `Total Embedded CO2e Emission`
- [104](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L104) validates [Table 6240 Sust. Excise Jnl. Line](https://jonas-paprotka.de/ref/table/6240-sust-excise-jnl-line/) `Total Emission Cost`
- [105](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L105) validates [Table 6240 Sust. Excise Jnl. Line](https://jonas-paprotka.de/ref/table/6240-sust-excise-jnl-line/) `Source Document No.`
- [106](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L106) validates [Table 6240 Sust. Excise Jnl. Line](https://jonas-paprotka.de/ref/table/6240-sust-excise-jnl-line/) `Source Document Line No.`
- [107](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L107) validates [Table 6240 Sust. Excise Jnl. Line](https://jonas-paprotka.de/ref/table/6240-sust-excise-jnl-line/) `Reason Code`
- [108](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L108) validates [Table 6240 Sust. Excise Jnl. Line](https://jonas-paprotka.de/ref/table/6240-sust-excise-jnl-line/) `Source Code`
- [109](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L109) validates [Table 6240 Sust. Excise Jnl. Line](https://jonas-paprotka.de/ref/table/6240-sust-excise-jnl-line/) `Calculated Date`
- [110](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L110) validates [Table 6240 Sust. Excise Jnl. Line](https://jonas-paprotka.de/ref/table/6240-sust-excise-jnl-line/) `Calculated By`
- [111](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L111) validates [Table 6240 Sust. Excise Jnl. Line](https://jonas-paprotka.de/ref/table/6240-sust-excise-jnl-line/) `Dimension Set ID`
- [112](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L112) writes [Table 6240 Sust. Excise Jnl. Line](https://jonas-paprotka.de/ref/table/6240-sust-excise-jnl-line/) Insert(true)

## InsertExciseJournalLineFromItemLedgerEntry

[Line 115](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L115), local.

- [120](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L120) validates [Table 6240 Sust. Excise Jnl. Line](https://jonas-paprotka.de/ref/table/6240-sust-excise-jnl-line/) `Journal Template Name`
- [121](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L121) validates [Table 6240 Sust. Excise Jnl. Line](https://jonas-paprotka.de/ref/table/6240-sust-excise-jnl-line/) `Journal Batch Name`
- [122](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L122) validates [Table 6240 Sust. Excise Jnl. Line](https://jonas-paprotka.de/ref/table/6240-sust-excise-jnl-line/) `Line No.`
- [122](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L122) calls [Table 6240 Sust. Excise Jnl. Line](https://jonas-paprotka.de/ref/table/6240-sust-excise-jnl-line/) `GetSustExciseJournalLineLastLineNo`
- [123](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L123) validates [Table 6240 Sust. Excise Jnl. Line](https://jonas-paprotka.de/ref/table/6240-sust-excise-jnl-line/) `Posting Date`
- [124](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L124) validates [Table 6240 Sust. Excise Jnl. Line](https://jonas-paprotka.de/ref/table/6240-sust-excise-jnl-line/) `Entry Type`
- [125](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L125) validates [Table 6240 Sust. Excise Jnl. Line](https://jonas-paprotka.de/ref/table/6240-sust-excise-jnl-line/) `Document Type`
- [126](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L126) validates [Table 6240 Sust. Excise Jnl. Line](https://jonas-paprotka.de/ref/table/6240-sust-excise-jnl-line/) `Document No.`
- [126](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L126) calls [Codeunit 308 No. Series - Batch](https://jonas-paprotka.de/ref/codeunit/308-no-series-batch/) `GetNextNo`
- [127](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L127) validates [Table 6240 Sust. Excise Jnl. Line](https://jonas-paprotka.de/ref/table/6240-sust-excise-jnl-line/) `Partner Type`
- [131](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L131) calls `UpdateExciseJournalFromSalesShipment`
- [133](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L133) calls `UpdateExciseJournalFromSalesInvoice`
- [136](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L136) validates [Table 6240 Sust. Excise Jnl. Line](https://jonas-paprotka.de/ref/table/6240-sust-excise-jnl-line/) `Source Document No.`
- [137](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L137) validates [Table 6240 Sust. Excise Jnl. Line](https://jonas-paprotka.de/ref/table/6240-sust-excise-jnl-line/) `Source Document Line No.`
- [138](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L138) validates [Table 6240 Sust. Excise Jnl. Line](https://jonas-paprotka.de/ref/table/6240-sust-excise-jnl-line/) `Item Ledger Entry No.`
- [139](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L139) validates [Table 6240 Sust. Excise Jnl. Line](https://jonas-paprotka.de/ref/table/6240-sust-excise-jnl-line/) `Reason Code`
- [140](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L140) validates [Table 6240 Sust. Excise Jnl. Line](https://jonas-paprotka.de/ref/table/6240-sust-excise-jnl-line/) `Source Code`
- [141](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L141) validates [Table 6240 Sust. Excise Jnl. Line](https://jonas-paprotka.de/ref/table/6240-sust-excise-jnl-line/) `Calculated Date`
- [142](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L142) validates [Table 6240 Sust. Excise Jnl. Line](https://jonas-paprotka.de/ref/table/6240-sust-excise-jnl-line/) `Calculated By`
- [143](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L143) validates [Table 6240 Sust. Excise Jnl. Line](https://jonas-paprotka.de/ref/table/6240-sust-excise-jnl-line/) `Dimension Set ID`
- [144](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L144) writes [Table 6240 Sust. Excise Jnl. Line](https://jonas-paprotka.de/ref/table/6240-sust-excise-jnl-line/) Insert(true)

## UpdateExciseJournalFromSalesShipment

[Line 157](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L157), local.

- [168](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L168) validates [Table 6240 Sust. Excise Jnl. Line](https://jonas-paprotka.de/ref/table/6240-sust-excise-jnl-line/) `Description`
- [169](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L169) validates [Table 6240 Sust. Excise Jnl. Line](https://jonas-paprotka.de/ref/table/6240-sust-excise-jnl-line/) `Partner No.`
- [170](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L170) validates [Table 6240 Sust. Excise Jnl. Line](https://jonas-paprotka.de/ref/table/6240-sust-excise-jnl-line/) `Country/Region Code`
- [171](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L171) validates [Table 6240 Sust. Excise Jnl. Line](https://jonas-paprotka.de/ref/table/6240-sust-excise-jnl-line/) `Source Type`
- [172](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L172) validates [Table 6240 Sust. Excise Jnl. Line](https://jonas-paprotka.de/ref/table/6240-sust-excise-jnl-line/) `Source No.`
- [173](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L173) validates [Table 6240 Sust. Excise Jnl. Line](https://jonas-paprotka.de/ref/table/6240-sust-excise-jnl-line/) `Source Unit of Measure Code`
- [174](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L174) validates [Table 6240 Sust. Excise Jnl. Line](https://jonas-paprotka.de/ref/table/6240-sust-excise-jnl-line/) `Source Qty.`
- [175](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L175) validates [Table 6240 Sust. Excise Jnl. Line](https://jonas-paprotka.de/ref/table/6240-sust-excise-jnl-line/) `Total Emission Cost`

## UpdateExciseJournalFromSalesInvoice

[Line 178](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L178), local.

- [189](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L189) validates [Table 6240 Sust. Excise Jnl. Line](https://jonas-paprotka.de/ref/table/6240-sust-excise-jnl-line/) `Description`
- [190](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L190) validates [Table 6240 Sust. Excise Jnl. Line](https://jonas-paprotka.de/ref/table/6240-sust-excise-jnl-line/) `Partner No.`
- [191](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L191) validates [Table 6240 Sust. Excise Jnl. Line](https://jonas-paprotka.de/ref/table/6240-sust-excise-jnl-line/) `Country/Region Code`
- [192](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L192) validates [Table 6240 Sust. Excise Jnl. Line](https://jonas-paprotka.de/ref/table/6240-sust-excise-jnl-line/) `Source Type`
- [193](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L193) validates [Table 6240 Sust. Excise Jnl. Line](https://jonas-paprotka.de/ref/table/6240-sust-excise-jnl-line/) `Source No.`
- [194](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L194) validates [Table 6240 Sust. Excise Jnl. Line](https://jonas-paprotka.de/ref/table/6240-sust-excise-jnl-line/) `Source Unit of Measure Code`
- [195](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L195) validates [Table 6240 Sust. Excise Jnl. Line](https://jonas-paprotka.de/ref/table/6240-sust-excise-jnl-line/) `Source Qty.`
- [196](https://jonas-paprotka.de/ref/codeunit/6274-sust-excise-cal-mgt/source/#L196) validates [Table 6240 Sust. Excise Jnl. Line](https://jonas-paprotka.de/ref/table/6240-sust-excise-jnl-line/) `Total Emission Cost`

## Source

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

JOP-AL, 2026-11-20.
