Why do you need this change?
We would like to perform additional checks on the contact before the new document is created from the contact.
Describe the request
procedure CreatePurchaseQuoteFromContact()
var
PurchaseHeader: Record "Purchase Header";
begin
//>>EVENT
OnBeforeCreatePurchaseQuoteFromContact(Rec);
//<<EVENT
CheckIfPrivacyBlockedGeneric();
PurchaseHeader.Init();
PurchaseHeader.Validate("Document Type", PurchaseHeader."Document Type"::Quote);
PurchaseHeader.Insert(true);
PurchaseHeader.Validate("Document Date", WorkDate());
PurchaseHeader.Validate("Buy-from Contact No.", "No.");
PurchaseHeader.Modify();
Page.Run(Page::"Purchase Quote", PurchaseHeader);
end;
[IntegrationEvent(false, false)]
local procedure OnBeforeCreatePurchaseQuoteFromContact(var Contact: Record Contact)
begin
end;
Internal work item: AB#623958
Why do you need this change?
We would like to perform additional checks on the contact before the new document is created from the contact.
Describe the request
Internal work item: AB#623958