Table of Contents

KVSKBAPostedSalesPriceDiscLine

Fields

Name Type Note
Document Type Option OptionMembers: Shipment,Invoice,Credit Memo,Return Receipt
Document No. Code[20]
Document Line No. Integer
Line Type Option OptionMembers: Price,Line Discount
Line No. Integer
Condition No. Code[20]
Reference No. Integer
Description Text[50]
Calculation (Condition) Enum (KVSKBAPriceCalculation)
Operator (Condition) Enum (KVSKBAPriceCalcOperator)
Value (Condition) Decimal
Calculation Enum (KVSKBAPriceCalculation)
Operator Enum (KVSKBAPriceCalcOperator)
Percent Decimal
Initial Price Decimal
Currency Code (Init. Price) Code[10]
Currency Factor (Init. Price) Decimal
Exch. Rate Date (Init. Price) Date
Unit Of Measure (Init. Price) Code[10]
Qty. Per UOM (Init. Price) Decimal
Currency Code (Doc. Line) Code[10]
Currency Factor (Doc. Line) Decimal
Exchange Rate Date (Doc. Line) Date
Unit Of Measure (Doc. Line) Code[10]
Qty. Per UOM (Doc. Line) Decimal
Initial Price (Doc. Line) Decimal
Price (Doc. Line) Decimal
Amount (Doc. Line) Decimal
Result (Doc. Line) Decimal
Discount % (Doc. Line) Decimal
Result Pct. (Doc. Line) Decimal

Events

OnBeforeCopyInitalPriceFromPostedSalesLine(Record KVSKBAPostedSalesPriceDiscLine, Boolean) :

Summary: Integration event that is raised before copying the initial price from a posted sales line to the posted sales price/discount line. This allows for custom logic to be executed or to prevent the copying of the initial price by setting IsHandled to true.

[IntegrationEvent(false, false)]
local procedure OnBeforeCopyInitalPriceFromPostedSalesLine(var PostedSalesPriceDiscLine: Record "KVSKBAPostedSalesPriceDiscLine"; var Handled: Boolean): 

Parameters:

  • PostedSalesPriceDiscLine: The record of the posted sales price/discount line being processed.
  • Handled: A boolean variable that can be set to true to indicate that the event has been handled and the default copying behavior should be skipped.

Remarks: Use this event to perform additional logic before the initial price is copied from the posted sales line. Set IsHandled to true to skip the default copying behavior.