KVSKBASalesQuotetoOrder#
Events#
OnBeforeOnSalesQuotetoOrderOnBeforeDeleteSalesQuote(Record Sales Header, Record Sales Header, Boolean, Boolean) :#
Summary: Event raised before deleting a sales quote when converting it to a sales order.
[IntegrationEvent(false, false)]
local procedure OnBeforeOnSalesQuotetoOrderOnBeforeDeleteSalesQuote(var QuoteSalesHeader: Record "Sales Header"; var OrderSalesHeader: Record "Sales Header"; var GlobalReturnIsHandled: Boolean; var LocalIsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesQuotetoOrder", 'OnBeforeOnSalesQuotetoOrderOnBeforeDeleteSalesQuote', '', false, false)]
local procedure DoSomethingOnBeforeOnSalesQuotetoOrderOnBeforeDeleteSalesQuote(var QuoteSalesHeader: Record "Sales Header"; var OrderSalesHeader: Record "Sales Header"; var GlobalReturnIsHandled: Boolean; var LocalIsHandled: Boolean)
begin
end;
Parameters:
QuoteSalesHeader: The sales header of the quote being deletedOrderSalesHeader: The sales header of the order being createdGlobalReturnIsHandled: Indicates if the global return is handledLocalIsHandled: Indicates if the local return is handled
Remarks: This integration event allows extensions to intervene before a sales quote is deleted during the conversion process to a sales order. Extensions can use this event to implement custom logic, validations, or modifications to the quote or order headers before the quote deletion occurs. By setting the LocalIsHandled parameter to true, extensions can prevent the standard deletion logic from executing, allowing for complete customization of the quote-to-order conversion process.