Table of Contents

KVSKBAPurchasePrice

OBSOLETE

This Element will be removed or changed with a future Version of the App.

Fields

Name Type Note
Item No. Code[20]
Vendor No. Code[20]
Currency Code Code[10]
Starting Date Date
Direct Unit Cost Decimal
Minimum Quantity Decimal
Ending Date Date
Unit of Measure Code Code[10]
Variant Code Code[10]
Price Unit Decimal
Direct Unit Cost (Price Unit) Decimal
Responsibility Center Code[10]
Purchase Condition No. Code[20]
Reference No. Integer
Unit Of Measure (Calc.) Code[10]
Currency Code (Calc.) Code[10]
Direct Unit Cost (Calc.) Decimal
Type Enum (KVSKBAItemPriceType)
Code Code[20]
Changed By Save Doc. (UserID) Code[50]
Changed By Save Doc. (Date) Date
Changed By Save Doc. Type Enum Purchase Document Type
Changed By Save Doc. No. Code[20]
Changed By Save Doc. Line No. Integer
Price Descended From Item Boolean

Events

OnInsertOnBeforeTestCodeandType(Record KVSKBAPurchasePrice, Boolean) :

OBSOLETE

This Element will be removed or changed with a future Version of the App.

Summary: Event that fires before the validation of the "Code" and "Type" fields on insert operations.

[Obsolete('This event is no longer supported, as long as the object exists', '24.0')]
[IntegrationEvent(false, false)]
local procedure OnInsertOnBeforeTestCodeandType(var PurchasePrice: Record "KVSKBAPurchasePrice"; var IsHandled: Boolean): 

Parameters:

  • PurchasePrice: VAR Record KVSKBAPurchasePrice - The Purchase Price record being inserted.
  • IsHandled: Boolean parameter that indicates whether the event has been handled by the event subscriber. If set to TRUE, the standard validation logic for the "Code" and "Type" fields will be skipped.

Remarks: This event allows for custom validation logic to be implemented for the "Code" and "Type" fields during insert operations. Subscribers can use this event to enforce specific rules or constraints on these fields based on the requirements of their implementation.

OnBeforeNewPurchasePriceInsert(Record KVSKBAPurchasePrice, Record KVSKBAPurchasePrice) :

OBSOLETE

This Element will be removed or changed with a future Version of the App.

Summary: Event that fires before a new purchase price record is inserted into the database.

[Obsolete('This event is no longer supported, as long as the object exists', '24.0')]
[IntegrationEvent(false, false)]
local procedure OnBeforeNewPurchasePriceInsert(var NewPurchasePrice: Record "KVSKBAPurchasePrice"; PurchasePrice: Record "KVSKBAPurchasePrice"): 

Parameters:

  • NewPurchasePrice: VAR Record KVSKBAPurchasePrice - The new purchase price record that is about to be inserted.
  • PurchasePrice: Record KVSKBAPurchasePrice - The existing purchase price record that is being copied to create the new record.

Remarks: This event allows for custom logic to be executed before a new purchase price record is inserted into the database. Subscribers can use this event to modify the new record, perform validations, or implement additional business rules before the insertion takes place.

OnValidateCodeOnBeforeTypeCaseElse(Record KVSKBAPurchasePrice, Record KVSKBAPurchasePrice) :

OBSOLETE

This Element will be removed or changed with a future Version of the App.

Summary: Event that fires before the "else" case in the Type field validation.

[Obsolete('This event is no longer supported, as long as the object exists', '24.0')]
[IntegrationEvent(false, false)]
local procedure OnValidateCodeOnBeforeTypeCaseElse(var PurchasePrice: Record "KVSKBAPurchasePrice"; xPurchasePrice: Record "KVSKBAPurchasePrice"): 

Parameters:

  • PurchasePrice: VAR Record KVSKBAPurchasePrice - The Purchase Price record being validated.
  • xPurchasePrice: Record KVSKBAPurchasePrice - The original Purchase Price record before changes.

Remarks: This event allows for custom validation logic to be implemented for cases other than Item type in the Type field validation.

OnRenameOnBeforeTestCodeandType(Record KVSKBAPurchasePrice, Boolean) :

OBSOLETE

This Element will be removed or changed with a future Version of the App.

Summary: Event that fires before the validation of the "Code" and "Type" fields on rename operations.

[Obsolete('This event is no longer supported, as long as the object exists', '24.0')]
[IntegrationEvent(false, false)]
local procedure OnRenameOnBeforeTestCodeandType(var PurchasePrice: Record "KVSKBAPurchasePrice"; var IsHandled: Boolean): 

Parameters:

  • PurchasePrice: VAR Record KVSKBAPurchasePrice - The Purchase Price record being renamed.
  • IsHandled: Boolean parameter that indicates whether the event has been handled by the event subscriber. If set to TRUE, the standard validation logic for the "Code" and "Type" fields will be skipped.

Remarks: This event allows for custom validation logic to be implemented for the "Code" and "Type" fields during rename operations. Subscribers can use this event to enforce specific rules or constraints on these fields based on the requirements of their implementation.