KVSKBAOrderQuoteMandFieldsLib
Procedures
CheckMandatoryFieldsOrderQuote(Record KVSKBAOrderQuote, Boolean) : Boolean
Summary: Use this function to check the mandatory fields for Purchase Request
procedure CheckMandatoryFieldsOrderQuote(OrderQuote: Record "KVSKBAOrderQuote"; ShowFoundFields: Boolean): Boolean
Parameters:
OrderQuote: Purchase Request to check.ShowFoundFields: Specifies whether the fields that do not fulfill the conditions should be displayed.
Returns:
Remarks: The function checks the mandatory fields for the Purchase Request header and lines based on the configuration in the Order Quote Setup. It uses the KVSKBAMandatoryFieldsLib to perform the checks and can display the fields that do not meet the mandatory requirements if specified.
Events
OnBeforeCheckMandatoryFieldsOrderQuote(Record KVSKBAOrderQuote, Boolean, Boolean, Boolean) :
Summary: Event that fires before checking the mandatory fields for an Order Quote.
[IntegrationEvent(false, false)]
local procedure OnBeforeCheckMandatoryFieldsOrderQuote(var OrderQuote: Record "KVSKBAOrderQuote"; var ShowFoundFields: Boolean; var Ok: Boolean; var IsHandled: Boolean):
Parameters:
OrderQuote: Record KVSKBAOrderQuote - The Order Quote record for which the mandatory fields are being checked.ShowFoundFields: Boolean parameter that indicates whether the fields that do not fulfill the mandatory conditions should be displayed.Ok: Boolean parameter that will contain the result of the mandatory field check. It can be set by the event subscriber to indicate whether the check passed or failed.IsHandled: Boolean parameter that indicates whether the event has been handled. If set to TRUE by the event subscriber, the standard mandatory field check will be skipped.
Remarks: This is an integration event that allows for custom processing before the mandatory fields check is performed for an Order Quote. Subscribers can use this event to implement additional logic or override the standard behavior of the mandatory fields check.