KVSKBASalesProFormaPrinted#
Procedures#
OnRun#
procedure OnRun(Rec: Record "#437dbf0e84ff417a965ded2bb9650972#Sales Header")
SetSuppressCommit(Boolean) :#
Summary: This function sets the SuppressCommit variable to the value passed in. It is used to control whether the commit at the end of the OnRun trigger should be executed or not.
procedure SetSuppressCommit(NewSuppressCommit: Boolean):
Parameters:
NewSuppressCommit
: The new value for SuppressCommit.
Events#
OnBeforeOnRun(Record Sales Header, Boolean) :#
Summary: This event is raised before anything else is done in the OnRun trigger.
[IntegrationEvent(false, false)]
local procedure OnBeforeOnRun(var SalesHeader: Record "Sales Header"; var SuppressCommit: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesProFormaPrinted", 'OnBeforeOnRun', '', false, false)]
local procedure DoSomethingOnBeforeOnRun(var SalesHeader: Record "Sales Header"; var SuppressCommit: Boolean)
begin
end;
Parameters:
SalesHeader
: The Sales Header, where the field KVSKBANoPrintedProForma should be increased by 1.SuppressCommit
: Whether or not the Commit at the very end should be executed.
OnBeforeModify(Record Sales Header) :#
Summary: This event is raised before the Sales Header is modified.
[IntegrationEvent(false, false)]
local procedure OnBeforeModify(var SalesHeader: Record "Sales Header"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesProFormaPrinted", 'OnBeforeModify', '', false, false)]
local procedure DoSomethingOnBeforeModify(var SalesHeader: Record "Sales Header")
begin
end;
Parameters:
SalesHeader
: The Sales Header, where the field KVSKBANoPrintedProForma should be increased by 1 and is about to be modified.