KVSTRDCheckItemSalesListing
Events
KVSTRDOnBeforeCalcItemExclusiveForCustNo(Record Sales Line, Code[20], Boolean) :
Summary: This event is raised before calculating if the item is exclusive the customer number.
[IntegrationEvent(false, false)]
local procedure KVSTRDOnBeforeCalcItemExclusiveForCustNo(SalesLine: Record "Sales Line"; var ItemExclusiveForCustNo: Code[20]; var isHandled: Boolean):
Parameters:
SalesLine: The sales line record.ItemExclusiveForCustNo: The Customer No to check for.isHandled: Specifies if the event has been handled. If set to true, the default logic will not be executed.
KVSTRDOnBeforeCheckCountry(Record Sales Header, Record Sales Line, Code[20], Integer, Boolean) :
Summary: This event is raised before checking the country/region for the sales line.
[IntegrationEvent(false, false)]
local procedure KVSTRDOnBeforeCheckCountry(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; ItemCategoryCodeInHierarchy: Code[20]; NoOfItemCategoryLevels: Integer; var isHandled: Boolean):
Parameters:
SalesHeader: The Sales Header record.SalesLine: The Sales Line record.ItemCategoryCodeInHierarchy: An array of item category codes in hierarchy.NoOfItemCategoryLevels: The number of item category levels.isHandled: Specifies if the event has been handled. If set to true, the default logic will not be executed.
KVSTRDOnBeforeLoadItemCategories(Record Sales Line, Code[20], Integer, Boolean) :
Summary: This event is raised before loading the item categories for the sales line.
[IntegrationEvent(false, false)]
local procedure KVSTRDOnBeforeLoadItemCategories(SalesLine: Record "Sales Line"; var ItemCategoryCodeInHierarchy: Code[20]; var NoOfItemCategoryLevels: Integer; var isHandled: Boolean):
Parameters:
SalesLine: The Sales Line record.ItemCategoryCodeInHierarchy: An array of item category codes in hierarchy.NoOfItemCategoryLevels: The number of item category levels.isHandled: Specifies if the event has been handled. If set to true, the default logic will not be executed.
KVSTRDOnBeforeCheckSalesLine(Record Sales Line, Boolean) :
Summary: This event is raised before checking the sales line for item restrictions.
[IntegrationEvent(false, false)]
local procedure KVSTRDOnBeforeCheckSalesLine(SalesLine: Record "Sales Line"; var IsHandled: Boolean):
Parameters:
SalesLine: The Sales Line record.isHandled: Specifies if the event has been handled. If set to true, the default logic will not be executed.
KVSTRDOnGetItemSalesListingOnBeforeItemSalRestrictionIsEmptyCheck(Record KVSTRDItemSalRestriction, Record Sales Line, Integer, Code[20], Code[20], Date) :
Summary: This event is raised before checking if the Item Sales Restriction is empty.
[IntegrationEvent(false, false)]
local procedure KVSTRDOnGetItemSalesListingOnBeforeItemSalRestrictionIsEmptyCheck(var ItemSalRestriction: Record "KVSTRDItemSalRestriction"; SalesLine: Record "Sales Line"; ItemCategoryLevel: Integer; ItemCategoryCode: Code[20]; CustomerNo: Code[20]; DateToCheck: Date):
Parameters:
ItemSalRestriction: The Item Sales Restriction record.SalesLine: The Sales Line record.ItemCategoryLevel: The level of the item category.ItemCategoryCode: The code of the item category.CustomerNo: The customer number.DateToCheck: The date to check against.