Table "Price Calculation Setup"
ID 7006
Namespace: Microsoft.Pricing.Calculation
Properties
| Name | Value |
|---|---|
| Caption | Price Calculation Setup |
| LookupPageID | Page Microsoft.Pricing.Calculation."Price Calculation Setup" |
| DrillDownPageID | Page Microsoft.Pricing.Calculation."Price Calculation Setup" |
| DataClassification | CustomerContent |
Fields
| Name | Type | Description |
|---|---|---|
| Code | Code[100] | Specifies a code that you can select. |
| Method | Enum Microsoft.Pricing.Calculation."Price Calculation Method" | Specifies the name of the price calculation method. |
| Type | Enum Microsoft.Pricing.PriceList."Price Type" | Specifies what type of amount to calculate - price or cost. |
| "Asset Type" | Enum Microsoft.Pricing.Asset."Price Asset Type" | Specifies the type of the product for price calculation. |
| Details | Integer | Specifies the count of detailed price calculation setup records. |
| "Group Id" | Code[100] | |
| Implementation | Enum Microsoft.Pricing.Calculation."Price Calculation Handler" | Specifies a codeunit that can implement the calculation method. |
| Enabled | Boolean | Specifies whether the implementation codeunit is enabled. |
| 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. |
| SystemId | Guid | |
| SystemCreatedAt | DateTime | |
| SystemCreatedBy | Guid | |
| SystemModifiedAt | DateTime | |
| SystemModifiedBy | Guid | |
| SystemCreatedByUserName | Text[50] | |
| SystemCreatedByFullName | Text[80] | |
| SystemModifiedByUserName | Text[50] | |
| SystemModifiedByFullName | Text[80] | |
| SystemRowVersion | BigInteger |
Methods
GetUID
procedure GetUID(): Text
Returns
| Type | Description |
|---|---|
| Text |
CountEnabledExeptions
procedure CountEnabledExeptions(): Integer
Returns
| Type | Description |
|---|---|
| Integer |
FindDefault
procedure FindDefault(CalculationMethod: Enum "Price Calculation Method"; PriceType: Enum "Price Type"): Boolean
Parameters
| Name | Type | Description |
|---|---|---|
| CalculationMethod | Enum Microsoft.Pricing.Calculation."Price Calculation Method" | |
| PriceType | Enum Microsoft.Pricing.PriceList."Price Type" |
Returns
| Type | Description |
|---|---|
| Boolean |
FindDefault
procedure FindDefault(GroupId: Text): Boolean
Parameters
| Name | Type | Description |
|---|---|---|
| GroupId | Text |
Returns
| Type | Description |
|---|---|
| Boolean |
MoveFrom
procedure MoveFrom(var TempPriceCalculationSetup: Record "Price Calculation Setup" temporary): Boolean
Parameters
| Name | Type | Description |
|---|---|---|
| TempPriceCalculationSetup | Table Microsoft.Pricing.Calculation."Price Calculation Setup" |
Returns
| Type | Description |
|---|---|
| Boolean |
Events
OnAfterDefineCode
[IntegrationEvent(True,False)]
local procedure OnAfterDefineCode()