---
id: object/codeunit/7412
type: object
title: Codeunit 7412 "Excise Tax Calculation"
summary: Codeunit 7412 "Excise Tax Calculation" in ExciseTaxes (Microsoft.ExciseTaxes). 6 public procedures, 5 events. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - excisetaxes
versions:
  introduced: "29"
  last_changed: null
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: 061e2a39790896894509dfbb93d1b0eb2cdcae69890c62478eafa756585a96bd
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/ExciseTaxes/app/src/codeunit/ExciseTaxCalculation.Codeunit.al
    title: src/Apps/W1/ExciseTaxes/app/src/codeunit/ExciseTaxCalculation.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/11748
    - change/bcapps/11002
    - change/bcapps/9725
object_type: codeunit
object_id: 7412
name: Excise Tax Calculation
namespace: Microsoft.ExciseTaxes
app: ExciseTaxes
extends: null
first_version: "29"
last_version: "30"
present_in:
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 37
  events: 5
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 1
  calls: 1
  called_by: 1
  implements: 0
---

# Codeunit 7412 "Excise Tax Calculation"

> Codeunit 7412 "Excise Tax Calculation" in ExciseTaxes (Microsoft.ExciseTaxes). 6 public procedures, 5 events. Introduced in BC29, still in BC30.

ExciseTaxes · Microsoft.ExciseTaxes · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/ExciseTaxes/app/src/codeunit/ExciseTaxCalculation.Codeunit.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Permissions | tabledata "Item Ledger Entry" = rm, tabledata "FA Ledger Entry" = rm |

## Events published

- `OnBeforeInsertExciseJournalLineForItem(var ExciseJournalLine: Record "Sust. Excise Jnl. Line"; ItemLedgerEntry: Record "Item Ledger Entry")` (integration)
- `OnAfterInsertExciseJournalLineForItem(var ExciseJournalLine: Record "Sust. Excise Jnl. Line"; ItemLedgerEntry: Record "Item Ledger Entry")` (integration)
- `OnAfterUpdateExciseJournalLineFromItemLedgerEntry(var ExciseJournalLine: Record "Sust. Excise Jnl. Line"; ItemLedgerEntry: Record "Item Ledger Entry")` (integration)
  - subscribers: [Codeunit 7413 "Excise Tax Trans Subscriber"](../codeunit/7413.md) OnAfterUpdateExciseJournalLineFromItemLedgerEntry
- `OnBeforeInsertExciseJournalLineForFixedAsset(var ExciseJournalLine: Record "Sust. Excise Jnl. Line"; FALedgerEntry: Record "FA Ledger Entry")` (integration)
- `OnAfterInsertExciseJournalLineForFixedAsset(var ExciseJournalLine: Record "Sust. Excise Jnl. Line"; FALedgerEntry: Record "FA Ledger Entry")` (integration)

## Procedures

- `UpdateItemLedgerEntryExciseTaxInfo(ExciseTaxesTransactionLog: Record "Sust. Excise Taxes Trans. Log")` (internal)
- `UpdateFALedgerEntryExciseTaxInfo(ExciseTaxesTransactionLog: Record "Sust. Excise Taxes Trans. Log")` (internal)
- `IsExciseTaxEntry(var ExciseJnlLine: Record "Sust. Excise Jnl. Line"): Boolean` (internal)
- `CreateExciseJournalLineForItem(TaxTypeCode: Code[20]; StartingDate: Date; EndingDate: Date; ItemFilter: Text[250]; PostingDate: Date)` (internal)
- `CreateExciseJournalLineForFixedAsset(TaxTypeCode: Code[20]; StartingDate: Date; EndingDate: Date; FixedAssetFilter: Text[250]; PostingDate: Date)` (internal)
- `SetExciseJournalBatch(var ExciseJnlBatch: Record "Sust. Excise Journal Batch")` (internal)

Plus 26 local procedures.

## Calls

From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an `Object::"Name"` argument. Interface dispatch and calls through events are not counted, so the list is not complete.

- [Codeunit 308 "No. Series - Batch"](../codeunit/308.md) (1 call: `InitializeExciseJournalLine → GetNextNo`)

## Called by

- [Codeunit 7413 "Excise Tax Trans Subscriber"](../codeunit/7413.md) (10 calls: `OnAfterCheckSustainabilityExciseJournalLine → IsExciseTaxEntry`, `OnAfterCopyFromFixedAsset → IsExciseTaxEntry`, `OnAfterCopyFromItem → IsExciseTaxEntry`, …)

## Recent changes

- 2026-10-05 [#11748 [Master] - Slice 626292: [Excise Tax][VENDOR] Bonded Locations for Excise Calculations](../../changes/bcapps/11748.md) (main, BC30, feature)
- 2026-09-15 [#11002 [Master] - Slice 626305: [Excise Tax][VENDOR] Improving Excise Duty Calculation](../../changes/bcapps/11002.md) (main, BC30, feature)
- 2026-08-11 [#9725 [Master] - Slice 626127: [Excise Tax][VENDOR] Multiple Excise Taxes per Item](../../changes/bcapps/9725.md) (main, BC30, feature)

## Across versions

- Present in: BC29-30
- Changed (declaration) in: none

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## Ask your agent

Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: `bcatlas_resolve_node(object_type: "codeunit", object_name: "Excise Tax Calculation")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
