Table of Contents

KVSKBASalesPriceWorksheet

OBSOLETE

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

Fields

Name Type Note
Item No. Code[20]
Sales Code Code[20]
Currency Code Code[10]
Starting Date Date
Current Unit Price Decimal
New Unit Price Decimal
Price Includes VAT Boolean
Allow Invoice Disc. Boolean
VAT Bus. Posting Gr. (Price) Code[20]
Sales Type Option OptionMembers: Customer,Customer Price Group,All Customers,Campaign
Minimum Quantity Decimal
Ending Date Date
Item Description Text[100] FlowField
Sales Description Text[100]
Unit of Measure Code Code[10]
Variant Code Code[10]
Allow Line Disc. Boolean
Price Unit Decimal
New Unit Price (Price Unit) Decimal
Current Unit Price (PU) Decimal
Responsibility Center Code[10]
Type Enum (KVSKBAItemPriceType)
Code Code[20]
Sales Order Type Code[10]
Sales Condition No. Code[20]

Procedures

CalcCurrentPrice(Boolean) :

OBSOLETE

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

Summary: Calculates the current price based on the sales price record.

[Obsolete('This procedure is only supported,as long as the object exists', '24.0')]
procedure CalcCurrentPrice(var LocalPriceAlreadyExists: Boolean): 

Parameters:

  • LocalPriceAlreadyExists: Boolean parameter that indicates whether a price already exists for the given criteria.

Events

OnAfterCalcCurrentPriceFound(Record KVSKBASalesPriceWorksheet, Record KVSKBASalesPrice) :

OBSOLETE

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

Summary: Event that fires after a current price is found during the price calculation process.

[Obsolete('The price calculation needs a redesign due to the standard changes, possibly the function will not be available in the future.', '18.3')]
[IntegrationEvent(false, false)]
local procedure OnAfterCalcCurrentPriceFound(var SalesPriceWorksheet: Record "KVSKBASalesPriceWorksheet"; SalesPrice: Record "KVSKBASalesPrice"): 

Parameters:

  • SalesPriceWorksheet: Record KVSKBASalesPriceWorksheet - The Sales Price Worksheet record for which the price calculation is being performed.
  • SalesPrice: Record KVSKBASalesPrice - The Sales Price record that was found during the price calculation process.

Remarks: This event allows for custom logic to be executed after a current price is found during the price calculation process. Subscribers can use this event to perform additional actions or calculations based on the found price, such as adjusting the price, logging information, or triggering other processes related to the price calculation.

OnInsertOnBeforeTestCodeandType(Record KVSKBASalesPriceWorksheet, 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 SalesPriceWorksheet: Record "KVSKBASalesPriceWorksheet"; var IsHandled: Boolean): 

Parameters:

  • SalesPriceWorksheet: Record KVSKBASalesPriceWorksheet - The Sales Price Worksheet 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.

OnRenameOnBeforeTestCodeandType(Record KVSKBASalesPriceWorksheet, 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 and rename operations.

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

Parameters:

  • SalesPriceWorksheet: Record KVSKBASalesPriceWorksheet - The Sales Price Worksheet record being inserted or 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 insert and rename operations. Subscribers can use this event to enforce specific rules or constraints on these fields based on the requirements of their implementation.

OnValidateCodeOnBeforeTypeCaseElse(Record KVSKBASalesPriceWorksheet, Record KVSKBASalesPriceWorksheet) :

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" field when the "Type" field is not "Item" or "Item Price Group".

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

Parameters:

  • SalesPriceWorksheet: Record KVSKBASalesPriceWorksheet - The Sales Price Worksheet record being validated.
  • xSalesPriceWorksheet: Record KVSKBASalesPriceWorksheet - The previous state of the Sales Price Worksheet record.

Remarks: This event allows for custom validation logic to be implemented for the "Code" field when the "Type" field has values other than "Item" or "Item Price Group". Subscribers can use this event to enforce specific rules or constraints on the "Code" field based on the value of the "Type" field.