---
id: object/table/7006
type: object
title: Table 7006 "Price Calculation Setup"
summary: Table 7006 "Price Calculation Setup" in Base Application (Microsoft.Pricing.Calculation). 9 fields, 6 public procedures, 1 events. Present since at least BC23, still in BC30, changed in BC24, BC28.
tier: official
language: en
tags:
  - table
  - base application
versions:
  introduced: null
  last_changed: "28"
  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: dc362baf879505ddd8bcd9eb2a02210760c317be869c994c978f2a9600331bad
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Pricing/Calculation/PriceCalculationSetup.Table.al
    title: src/Layers/W1/BaseApp/Pricing/Calculation/PriceCalculationSetup.Table.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: table
object_id: 7006
name: Price Calculation Setup
namespace: Microsoft.Pricing.Calculation
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "24"
  - "28"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 9
  procedures: 9
  events: 1
  subscribers: 0
relations:
  out: 3
  referenced_by: 1
  pages: 5
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 0
  implements: 0
---

# Table 7006 "Price Calculation Setup"

> Table 7006 "Price Calculation Setup" in Base Application (Microsoft.Pricing.Calculation). 9 fields, 6 public procedures, 1 events. Present since at least BC23, still in BC30, changed in BC24, BC28.

Base Application · Microsoft.Pricing.Calculation · BC23-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Pricing/Calculation/PriceCalculationSetup.Table.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Caption | Price Calculation Setup |
| DataClassification | CustomerContent |

## Fields

Explanation: the field's ToolTip in the code; without one, the ToolTip of a page control bound to the field (marked via the page); without that, its Caption (marked caption) when that differs from the name.

| No. | Name | Type | Explanation | Notes |
|---|---|---|---|---|
| 1 | Code | Code[100] | Specifies a code that you can select. | DataClassification SystemMetadata |
| 2 | Method | Enum "Price Calculation Method" | Specifies the name of the price calculation method. | enum [Enum 7000 "Price Calculation Method"](../enum/7000.md) |
| 3 | Type | Enum "Price Type" | Specifies what type of amount to calculate - price or cost. | enum [Enum 7009 "Price Type"](../enum/7009.md) |
| 4 | Asset Type | Enum "Price Asset Type" | Specifies the type of the product for price calculation. | enum [Enum 7004 "Price Asset Type"](../enum/7004.md) |
| 5 | Details | Integer | Specifies the count of detailed price calculation setup records. | FlowField: count("Dtld. Price Calculation Setup" where("Setup Code" = field(Code))); not editable |
| 9 | Group Id | Code[100] | — | DataClassification SystemMetadata |
| 10 | Implementation | Enum "Price Calculation Handler" | Specifies a codeunit that can implement the calculation method. | enum [Enum 7011 "Price Calculation Handler"](../enum/7011.md) |
| 12 | Enabled | Boolean | Specifies whether the implementation codeunit is enabled. |  |
| 13 | Default | Boolean | Specifies if this is the default implementation. You cannot remove the Default check mark, instead pick another record for the same calculation method to become the default implementation. |  |

## Keys

- PK: Code (clustered)
- Key2: Group Id, Default, Enabled

## Events published

- `OnAfterDefineCode()` (integration)

## Procedures

- `GetUID(): Text`
- `CopyDefaultFlagTo(var ToRec: Record "Price Calculation Setup")`
- `CountEnabledExeptions(): Integer`
- `FindDefault(CalculationMethod: enum "Price Calculation Method"; PriceType: Enum "Price Type"): Boolean`
- `FindDefault(GroupId: Text): Boolean`
- `MoveFrom(var TempPriceCalculationSetup: Record "Price Calculation Setup" temporary): Boolean`

Plus 2 local procedures.

## Triggers

OnInsert

## Relations

- drill-down page [Page 7006 "Price Calculation Setup"](../page/7006.md)
- lookup page [Page 7006 "Price Calculation Setup"](../page/7006.md)
- Details: CalcFormula [Table 7008 "Dtld. Price Calculation Setup"](../table/7008.md)

## Referenced by

1 fields in 1 objects relate to this table (TableRelation or CalcFormula).

- [Table 7008 "Dtld. Price Calculation Setup"](../table/7008.md): Setup Code

## Pages and codeunits on this table

- [Page 7006 "Price Calculation Setup"](../page/7006.md) (source table)
- [Page 7025 "Price Calculation Methods"](../page/7025.md) (source table)
- [Page 7026 "Price Calculation Method Card"](../page/7026.md) (source table)
- [Page 7027 "Price Calculation Setup Lines"](../page/7027.md) (source table)
- [Page 7028 "Price Calc. Implementations"](../page/7028.md) (source table)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC24, BC28

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: "table", object_name: "Price Calculation Setup")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
