---
id: object/codeunit/10148-ca
type: object
title: Codeunit 10148 "Sales Tax Amount Line Calc" (CA)
summary: Codeunit 10148 "Sales Tax Amount Line Calc" (CA) in the CA country layer (Microsoft.Finance.SalesTax). 9 public procedures. Introduced in BC29, still in BC30. Obsolete (Pending since 28.0).
tier: official
language: en
tags:
  - codeunit
  - ca layer
versions:
  introduced: "29"
  last_changed: null
  deprecated: "28.0"
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: e7d51673fb9c429faa38284491edef6c20f06c9addd10047b9a7e1b48383a2c0
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/NA/BaseApp/Local/Finance/SalesTax/SalesTaxAmountLineCalc.Codeunit.al
    title: src/Layers/NA/BaseApp/Local/Finance/SalesTax/SalesTaxAmountLineCalc.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations:
    - localization/ca
  videos: []
  posts: []
  guidelines: []
object_type: codeunit
object_id: 10148
name: Sales Tax Amount Line Calc
namespace: Microsoft.Finance.SalesTax
app: Base Application
extends: null
first_version: "29"
last_version: "30"
present_in:
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete:
  state: Pending
  tag: "28.0"
  reason: Use procedute CalcTaxAmountLine in codeunit SalesTaxCalculate instead.
countries: []
ms_search_form_ids: []
country: CA
counts:
  fields: 0
  procedures: 10
  events: 0
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
---

# Codeunit 10148 "Sales Tax Amount Line Calc" (CA)

> Codeunit 10148 "Sales Tax Amount Line Calc" (CA) in the CA country layer (Microsoft.Finance.SalesTax). 9 public procedures. Introduced in BC29, still in BC30. Obsolete (Pending since 28.0).

CA country layer · Microsoft.Finance.SalesTax · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/NA/BaseApp/Local/Finance/SalesTax/SalesTaxAmountLineCalc.Codeunit.al) · facts from BC29

An object of the [CA localization](../../localizations/ca.md), not part of W1.

## Properties

| Property | Value |
|---|---|
| ObsoleteState | Pending |
| ObsoleteTag | 28.0 |
| ObsoleteReason | Use procedute CalcTaxAmountLine in codeunit SalesTaxCalculate instead. |

## Procedures

- `InitFromServCrMemoLine(ServiceCrMemoLine: Record "Service Cr.Memo Line")`
- `InitFromServInvLine(ServiceInvoiceLine: Record "Service Invoice Line")`
- `InitFromPurchCrMemoLine(PurchCrMemoLine: Record "Purch. Cr. Memo Line")`
- `InitFromPurchInvLine(PurchInvLine: Record "Purch. Inv. Line")`
- `InitFromSalesCrMemoLine(SalesCrMemoLine: Record "Sales Cr.Memo Line")`
- `InitFromSalesInvLine(SalesInvoiceLine: Record "Sales Invoice Line")`
- `CalcSalesOrServLineSalesTaxAmountLine(var SalesTaxAmountLine: Record "Sales Tax Amount Line"; var TaxAreaLine: Record "Tax Area Line"; TaxCountry: Option US,CA; var TaxArea: Record "Tax Area"; var TaxJurisdiction: Record "Tax Jurisdiction"; ExchangeFactor: Decimal)`
- `CalcPurchLineSalesTaxAmountLine(var SalesTaxAmountLine: Record "Sales Tax Amount Line"; var TaxAreaLine: Record "Tax Area Line"; TaxCountry: Option US,CA; var TaxArea: Record "Tax Area"; var TaxJurisdiction: Record "Tax Jurisdiction"; ExchangeFactor: Decimal; TaxDetail: Record "Tax Detail"; PostingDate: Date)`
- `SetTaxBaseAmount(var SalesTaxAmountLine: Record "Sales Tax Amount Line"; Value: Decimal; ExchangeFactor: Decimal; Increment: Boolean)`

Plus 1 local procedures.

## Triggers

OnRun

## Across versions

- Present in: BC29-30
- Changed (declaration) in: none
- Obsolete: Pending since 28.0, "Use procedute CalcTaxAmountLine in codeunit SalesTaxCalculate instead."

## Deprecations

- object: Pending 28.0 (#if not CLEAN28), "Use procedute CalcTaxAmountLine in codeunit SalesTaxCalculate instead."

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). 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: "Sales Tax Amount Line Calc")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.

A CA country object, not part of W1: the default corpus does not have it; `bcatlas_list_countries` shows which countries the atlas has.
