KVSKBASalesLineDiscount
OBSOLETE
This Element will be removed or changed with a future Version of the App.
Fields
| Name | Type | Note |
|---|---|---|
| Code | Code[20] | |
| Sales Code | Code[20] | |
| Currency Code | Code[10] | |
| Starting Date | Date | |
| Line Discount % | Decimal | |
| Sales Type | Enum (KVSKBASalesDiscountType) | |
| Minimum Quantity | Decimal | |
| Ending Date | Date | |
| Type | Enum Sales Line Discount Type | |
| Unit of Measure Code | Code[10] | |
| Variant Code | Code[10] | |
| Responsibility Center | Code[10] | |
| Sales Condition No. | Code[20] | |
| Reference No. | Integer | |
| Unit Of Measure (Calc.) | Code[10] | |
| Currency Code (Calc.) | Code[10] | |
| Line Discount % (Calc.) | Decimal | |
| Sales Order Type | Code[10] | |
| Discount Descended From Item | Boolean | |
| Hierarchy Level (Price Calc.) | Integer | |
| Changed by Price Info No. | Integer | |
| Comment | Text[80] | |
| Changed By Save Doc. (UserID) | Code[50] | |
| Changed By Save Doc. (Date) | Date | |
| Changed By Save Doc. Type | Enum Sales Document Type | |
| Changed By Save Doc. No. | Code[20] | |
| Changed By Save Doc. Line No. | Integer |
Events
OnValidateSalesCodeOnCaseElseSalesCode(Record KVSKBASalesLineDiscount, 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 "Sales Code" field when the "Sales Type" field is not "All Customers", "Customer", "Customer Disc. Group", or "Campaign".
[Obsolete('This event is no longer supported,as long as the object exists', '24.0')]
[IntegrationEvent(false, false)]
local procedure OnValidateSalesCodeOnCaseElseSalesCode(var KVSKBASalesLineDiscount: Record "KVSKBASalesLineDiscount"; var IsHandled: Boolean):
Parameters:
SalesLineDiscount: VAR Record KVSKBASalesLineDiscount - The Sales Line Discount record being validated.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 "Sales Code" field will be skipped.
Remarks: This event allows for custom validation logic to be implemented for the "Sales Code" field when the "Sales Type" field has values other than "All Customers", "Customer", "Customer Disc. Group", or "Campaign". Subscribers can use this event to enforce specific rules or constraints on the "Sales Code" field based on the value of the "Sales Type" field.