Skip to content

KVSPSAREChckPtAdvPlanEntForInv#

Events#

OnBeforeCreateInvoiceFromAdvPlan(Record KVSADVAdvance Planning Entry) :#

Summary: Use this event to update fields in advance planning line before creating invoice

[IntegrationEvent(false, false)]
local procedure OnBeforeCreateInvoiceFromAdvPlan(var KVSADVAdvancePlanningEntry: Record "KVSADVAdvance Planning Entry"): 
[EventSubscriber(ObjectType::Report, Report::"KVSPSAREChckPtAdvPlanEntForInv", 'OnBeforeCreateInvoiceFromAdvPlan', '', false, false)]
local procedure DoSomethingOnBeforeCreateInvoiceFromAdvPlan(var KVSADVAdvancePlanningEntry: Record "KVSADVAdvance Planning Entry")
begin
end;

Parameters:

  • KVSADVAdvancePlanningEntry: Advance Planning Line

OnAfterCreateInvoiceFromAdvPlanOnBeforePost(Record KVSADVAdvance Planning Entry, Record Sales Header) :#

Summary: Use this event to update fields in created invoice before posting

[IntegrationEvent(false, false)]
local procedure OnAfterCreateInvoiceFromAdvPlanOnBeforePost(var KVSADVAdvancePlanningEntry: Record "KVSADVAdvance Planning Entry"; var SalesHeader: Record "Sales Header"): 
[EventSubscriber(ObjectType::Report, Report::"KVSPSAREChckPtAdvPlanEntForInv", 'OnAfterCreateInvoiceFromAdvPlanOnBeforePost', '', false, false)]
local procedure DoSomethingOnAfterCreateInvoiceFromAdvPlanOnBeforePost(var KVSADVAdvancePlanningEntry: Record "KVSADVAdvance Planning Entry"; var SalesHeader: Record "Sales Header")
begin
end;

Parameters:

  • KVSADVAdvancePlanningEntry: Advance Planning Line
  • SalesHeader: Created Sales Header

Protected Variables#

GlobalOnlyCheckLines#

Type: Boolean

GlobalSendDocuments#

Type: Boolean