KVSKBAPriceInformation
Fields
| Name | Type | Note |
|---|---|---|
| Information No. | Integer | |
| Initial Record | Boolean | |
| Responsibility Center | Code[10] | |
| Date | Date | |
| Customer No. | Code[20] | |
| Customer Price Group | Code[10] | |
| Customer Name | Text[100] | |
| Prices Including VAT | Boolean | |
| VAT Bus. Posting Group | Code[20] | |
| Customer Disc. Group | Code[20] | |
| Type | Option | OptionMembers: ,,Item |
| No. | Code[20] | |
| Variant Code | Code[10] | |
| Description | Text[100] | |
| Description 2 | Text[50] | |
| Item Price Group | Code[10] | |
| VAT Prod. Posting Group | Code[20] | |
| VAT Calculation Type | Enum Tax Calculation Type | |
| VAT % | Decimal | |
| Item Disc. Group | Code[20] | |
| Unit Cost (LCY) | Decimal | |
| Unit of Measure Code | Code[10] | |
| Qty. per Unit of Measure | Decimal | |
| KVSKBAPriceUnit | Decimal | |
| Currency Code | Code[10] | |
| Currency Factor | Decimal | |
| Base Unit of Measure Code | Code[10] | |
| Quantity | Decimal | |
| Unit Price (Calculated) | Decimal | |
| Unit Price (PU) (Calculated) | Decimal | |
| Minimum Qty. (Price Calc.) | Decimal | |
| Starting Date (Price Calc.) | Date | |
| Ending Date (Price Calc.) | Date | |
| Allow Line Disc. (Price Calc.) | Boolean | |
| Allow Inv. Disc. (Price Calc.) | Boolean | |
| KVSKBAPriceDescendedFromItem | Boolean | |
| Line Discount % (Calc.) | Decimal | |
| Minimum Qty. (Disc. Calc.) | Decimal | |
| Starting Date (Disc. Calc.) | Date | |
| Ending Date (Disc. Calc.) | Date | |
| Not Billable (Calc) | Code[10] | Warning: Obsolete |
| NotBillableCalc | Code[20] | |
| KVSKBADiscDescendedFromItem | Boolean | |
| Minimum Quantity | Decimal | |
| Starting Date | Date | |
| Ending Date | Date | |
| Allow Line Disc. | Boolean | |
| Allow Invoice Disc. | Boolean | |
| Unit Price | Decimal | |
| KVSKBAUnitPricePriceUnit | Decimal | |
| Line Discount % | Decimal | |
| Line Discount Amount | Decimal | |
| Line Amount | Decimal | |
| Line Amount (LCY) | Decimal | |
| Line Amount (LCY) excl. VAT | Decimal | |
| Unit Cost Amount (LCY) | Decimal | |
| Profit (LCY) | Decimal | |
| Profit % | Decimal | |
| KVSKBAMinimumProfit | Decimal | |
| Autosave Information by Exit | Boolean | |
| KVSKBADonotFindBestPrice | Boolean | |
| KVSKBASalesOrderType | Code[10] | |
| Pricing Customer | Option | OptionMembers: ,Sell-to Customer,Bill-to Customer |
| Bill-to Customer No. | Code[20] | |
| LocationCode | Code[10] | |
| Price Price List Code (Calc.) | Code[20] | |
| Price P. List Line No. (Calc.) | Integer | |
| Disc. Price List Code (Calc.) | Code[20] | |
| Disc. P. List Line No. (Calc.) | Integer | |
| Comment | Text[80] | |
| Item Reference No. | Code[50] | |
| Item Reference Unit of Measure | Code[10] | |
| Item Reference Type | Enum Item Reference Type | |
| Item Reference Type No. | Code[30] | |
| Price Calculation Method | Enum Price Calculation Method | |
| Price Price List Code | Code[20] | |
| Discount Price List Code | Code[20] | |
| NotBillable | Code[20] | |
| Not Billable | Code[10] | Warning: Obsolete |
Procedures
GetPriceCalculationHandler(Enum Price Type, Interface Price Calculation) :
procedure GetPriceCalculationHandler(LocalPriceType: Enum "Price Type"; var PriceCalculation: Interface "Price Calculation"):
ApplyDiscount(Interface Price Calculation) :
procedure ApplyDiscount(var PriceCalculation: Interface "Price Calculation"):
ApplyPrice(Integer, Interface Price Calculation) :
procedure ApplyPrice(CalledByFieldNo: Integer; var PriceCalculation: Interface "Price Calculation"):
CountDiscount(Boolean) : Integer
procedure CountDiscount(ShowAll: Boolean): Integer
CountPrice(Boolean) : Integer
procedure CountPrice(ShowAll: Boolean): Integer
DiscountExists(Boolean) : Boolean
procedure DiscountExists(ShowAll: Boolean): Boolean
PriceExists(Boolean) : Boolean
procedure PriceExists(ShowAll: Boolean): Boolean
PickDiscount() : Boolean
procedure PickDiscount(): Boolean
PickPrice() : Boolean
procedure PickPrice(): Boolean
Events
OnAfterApplyPrice(Record KVSKBAPriceInformation, Record KVSKBAPriceInformation, Integer, Integer) :
[IntegrationEvent(false, false)]
local procedure OnAfterApplyPrice(var KVSKBAPriceInformation: Record "KVSKBAPriceInformation"; var xKVSKBAPriceInformation: Record "KVSKBAPriceInformation"; CallFieldNo: Integer; CurrentFieldNo: Integer):
OnAfterGetDateForCalculations(Date, Record KVSKBAPriceInformation) :
[IntegrationEvent(false, false)]
local procedure OnAfterGetDateForCalculations(var DocumentDate: Date; KVSKBAPriceInformation: Record "KVSKBAPriceInformation"):
OnAfterGetLineWithPrice(Interface Line With Price) :
[IntegrationEvent(true, false)]
local procedure OnAfterGetLineWithPrice(var LineWithPrice: Interface "Line With Price"):
OnAfterUpdateItemReference(Record KVSKBAPriceInformation) :
[IntegrationEvent(true, false)]
local procedure OnAfterUpdateItemReference(var KVSKBAPriceInformation: Record "KVSKBAPriceInformation"):
OnBeforeUpdateUnitCost(Record KVSKBAPriceInformation, Boolean) :
[IntegrationEvent(false, false)]
local procedure OnBeforeUpdateUnitCost(var PriceInformation: Record "KVSKBAPriceInformation"; var Handled: Boolean):
OnBeforeUpdateUnitPrice(Record KVSKBAPriceInformation, Record KVSKBAPriceInformation, Boolean) :
Summary: Event that is raised bofore the UpdateUnitPrice function has been executed
[IntegrationEvent(false, false)]
local procedure OnBeforeUpdateUnitPrice(var PriceInformation: Record "KVSKBAPriceInformation"; var xPriceInformation: Record "KVSKBAPriceInformation"; var IsHandled: Boolean):
Parameters:
PriceInformation: Actual RecordxPriceInformation: Previous Record ContentIsHandled: Parameter for skipping the processing function UpdateUnitPrice
OnAfterUpdateUnitPrice(Record KVSKBAPriceInformation, Record KVSKBAPriceInformation) :
Summary: Event that is raised after the UpdateUnitPrice function has been executed.
[IntegrationEvent(false, false)]
local procedure OnAfterUpdateUnitPrice(var PriceInformation: Record "KVSKBAPriceInformation"; var xPriceInformation: Record "KVSKBAPriceInformation"):
Parameters:
PriceInformation: Actual RecordxPriceInformation: Previous Record Content
OnValidateNotBillableOnBeforeSelectAskBillableHandlingType(Record KVSKBAPriceInformation, Integer, Boolean) :
Summary: Integration event that is raised before selecting the handling type for 'Not Billable' when 'Ask' option is chosen.
[IntegrationEvent(false, false)]
local procedure OnValidateNotBillableOnBeforeSelectAskBillableHandlingType(PriceInformation: Record "KVSKBAPriceInformation"; var DefaultSelectOption: Integer; var IsHandled: Boolean):
Parameters:
PriceInformation: The price information record.DefaultSelectOption: The default option to select (1 for 'Full Discount', 2 for 'Empty Price and Discount').IsHandled: Set to true if the event has been handled and the default behavior should be skipped.