Once we convert the Shopify Order to BC Sales Order, order automatically gets released.
Is there any possibility that the order could be put into the open stage under BC sales order?
Once we convert the Shopify Order to BC Sales Order, order automatically gets released.
Is there any possibility that the order could be put into the open stage under BC sales order?
It can be achievable with the below code.
[EventSubscriber(ObjectType::Codeunit, Codeunit::"Release Sales Document", 'OnBeforeReleaseSalesDoc', '', false, false)]
local procedure OnBeforeReleaseSalesDoc(var SalesHeader: Record "Sales Header"; PreviewMode: Boolean; var IsHandled: Boolean; SkipCheckReleaseRestrictions: Boolean);
begin
if SalesHeader."Shpfy Order Id" <> 0 then
IsHandled := true;
end;
André Arnaud de Cal... 291,391 Super User 2024 Season 2
Martin Dráb 230,445 Most Valuable Professional
nmaenpaa 101,156