ALAppExtensions
ALAppExtensions copied to clipboard
[Event Request] CU 79 "Sales-Post and Send" OnBeforeConfirmPostAndSend
Can you add an OnBeforeConfirmPostAndSend with IsHandled to the function "ConfirmPostAndSend" in Codeunit 79 "Sales-Post and Send"?
Example below:
local procedure ConfirmPostAndSend(SalesHeader: Record "Sales Header"; var TempDocumentSendingProfile: Record "Document Sending Profile" temporary): Boolean
var
Customer: Record Customer;
DocumentSendingProfile: Record "Document Sending Profile";
OfficeMgt: Codeunit "Office Management";
begin
//<< NEW
OnBeforeConfirmPostAndSend(SalesHeader,TempDocumentSendingProfile,Confirmed,IsHandled);
if IsHandled then
exit(Confirmed);
//>> NEW
Customer.Get(SalesHeader."Bill-to Customer No.");
if OfficeMgt.IsAvailable then
DocumentSendingProfile.GetOfficeAddinDefault(TempDocumentSendingProfile, OfficeMgt.AttachAvailable)
Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.