Skip to content

KVSTRDPeriodicInvoicing#

Procedures#

SetHideDialogs(Boolean) :#

Summary: Sets a global variable to prevent dialog pop-up's.

procedure SetHideDialogs(HideDialogs: Boolean): 

Parameters:

  • HideDialogs: If true, dialog pop-up's will not be shown.

SetRentalPeriodicInvoicing(Boolean) :#

Summary: Sets a global variable to indicate if the periodic invoicing is for rental documents.

procedure SetRentalPeriodicInvoicing(IsRentalPeriodicInvoicing: Boolean): 

Parameters:

  • IsRentalPeriodicInvoicing: If true, the periodic invoicing is for rental documents.

Events#

KVSTRDOnAfterOnInitReport(Date, Boolean, Boolean, Boolean, Date, Boolean, Boolean, Boolean, Text) :#

Summary: This event is raised after the report is initialized. It allows customization of the request page parameters such as misc. dates, etc.

[IntegrationEvent(false, false)]
local procedure KVSTRDOnAfterOnInitReport(var PostingDateReq: Date; var ReplacePostingDate: Boolean; var ReplaceDocumentDate: Boolean; var CalcInvDisc: Boolean; var BillingDate: Date; var UpdateNextBillingDate: Boolean; var PostInvoice: Boolean; var PrintPostedDocument: Boolean; var ShippingDateFilter: Text): 
[EventSubscriber(ObjectType::Report, Report::"KVSTRDPeriodicInvoicing", 'KVSTRDOnAfterOnInitReport', '', false, false)]
local procedure DoSomethingKVSTRDOnAfterOnInitReport(var PostingDateReq: Date; var ReplacePostingDate: Boolean; var ReplaceDocumentDate: Boolean; var CalcInvDisc: Boolean; var BillingDate: Date; var UpdateNextBillingDate: Boolean; var PostInvoice: Boolean; var PrintPostedDocument: Boolean; var ShippingDateFilter: Text)
begin
end;

Parameters:

  • PostingDateReq: The posting date requested by the user.
  • ReplacePostingDate: Specifies if the posting date should be replaced.
  • ReplaceDocumentDate: Specifies if the document date should be replaced by the Posting Date.
  • CalcInvDisc: Specifies if invoice discount calculation should be performed.
  • BillingDate: The billing date requested by the user.
  • UpdateNextBillingDate: Specifies if the next billing date should be updated.
  • PostInvoice: Specifies if the invoice should be posted directly.
  • PrintPostedDocument: Specifies if the posted document should be printed.
  • ShippingDateFilter: The shipping date filter requested by the user.

KVSTRDOnAfterRequestPageOnOpenPage(Date, Boolean, Boolean, Boolean, Date, Boolean, Boolean, Boolean, Text) :#

Summary: This event is raised after the request page is opened. It allows customization of the request page parameters such as misc. dates, etc.

[IntegrationEvent(false, false)]
local procedure KVSTRDOnAfterRequestPageOnOpenPage(var PostingDateReq: Date; var ReplacePostingDate: Boolean; var ReplaceDocumentDate: Boolean; var CalcInvDisc: Boolean; var BillingDate: Date; var UpdateNextBillingDate: Boolean; var PostInvoice: Boolean; var PrintPostedDocument: Boolean; var ShippingDateFilter: Text): 
[EventSubscriber(ObjectType::Report, Report::"KVSTRDPeriodicInvoicing", 'KVSTRDOnAfterRequestPageOnOpenPage', '', false, false)]
local procedure DoSomethingKVSTRDOnAfterRequestPageOnOpenPage(var PostingDateReq: Date; var ReplacePostingDate: Boolean; var ReplaceDocumentDate: Boolean; var CalcInvDisc: Boolean; var BillingDate: Date; var UpdateNextBillingDate: Boolean; var PostInvoice: Boolean; var PrintPostedDocument: Boolean; var ShippingDateFilter: Text)
begin
end;

Parameters:

  • PostingDateReq: The posting date requested by the user.
  • ReplacePostingDate: Specifies if the posting date should be replaced.
  • ReplaceDocumentDate: Specifies if the document date should be replaced by the Posting Date.
  • CalcInvDisc: Specifies if invoice discount calculation should be performed.
  • BillingDate: The billing date requested by the user.
  • UpdateNextBillingDate: Specifies if the next billing date should be updated.
  • PostInvoice: Specifies if the invoice should be posted directly.
  • PrintPostedDocument: Specifies if the posted document should be printed.
  • ShippingDateFilter: The shipping date filter requested by the user.

KVSTRDOnBeforeCallCombineShipmentReportPerSalesHeader(Record Customer, Record Sales Header, Code[20], Boolean, Boolean) :#

Summary: This event is raised before calling the Combine Shipments Report for a specific Sales Header. It allows customization of the Shipment No. for example and whether to call the report for combining shipments.

[IntegrationEvent(false, false)]
local procedure KVSTRDOnBeforeCallCombineShipmentReportPerSalesHeader(Customer: Record "Customer"; SalesHeader: Record "Sales Header"; var ShipmentNo: Code[20]; var IsHandled: Boolean; var CallCombineShipmentsReport: Boolean): 
[EventSubscriber(ObjectType::Report, Report::"KVSTRDPeriodicInvoicing", 'KVSTRDOnBeforeCallCombineShipmentReportPerSalesHeader', '', false, false)]
local procedure DoSomethingKVSTRDOnBeforeCallCombineShipmentReportPerSalesHeader(Customer: Record "Customer"; SalesHeader: Record "Sales Header"; var ShipmentNo: Code[20]; var IsHandled: Boolean; var CallCombineShipmentsReport: Boolean)
begin
end;

Parameters:

  • Customer: The Customer record for which the report is being called.
  • SalesHeader: The Sales Header record associated with the customer.
  • ShipmentNo: The shipment number to be used in the report.
  • isHandled: Specifies if the event has been handled. If set to true, the default logic will not be executed.
  • CallCombineShipmentsReport: Specifies if the Combine Shipments Report should be called.

KVSTRDOnBeforeCallCombineShipmentsReport(Code[20], Text, Record Customer, Record Sales Header) :#

Summary: This event is raised before calling the Combine Shipments Report.

[IntegrationEvent(false, false)]
local procedure KVSTRDOnBeforeCallCombineShipmentsReport(ShipmentNo: Code[20]; var ShippingDateFilter: Text; Customer: Record "Customer"; SalesHeader: Record "Sales Header"): 
[EventSubscriber(ObjectType::Report, Report::"KVSTRDPeriodicInvoicing", 'KVSTRDOnBeforeCallCombineShipmentsReport', '', false, false)]
local procedure DoSomethingKVSTRDOnBeforeCallCombineShipmentsReport(ShipmentNo: Code[20]; var ShippingDateFilter: Text; Customer: Record "Customer"; SalesHeader: Record "Sales Header")
begin
end;

Parameters:

  • ShipmentNo: The shipment number to be used in the report.
  • ShippingDateFilter: The shipping date filter to be applied in the report.
  • Customer: The Customer record for which the report is being called.
  • SalesHeader: The Sales Header record associated with the customer.

KVSTRDOnBeforeCustomerOnAfterGetRecord(Record Customer, Boolean, Boolean) :#

Summary: This event is raised before processing each Customer record in the report. It allows customization of the Customer record processing, such as skipping the current report or handling specific logic.

[IntegrationEvent(false, false)]
local procedure KVSTRDOnBeforeCustomerOnAfterGetRecord(var Customer: Record "Customer"; var SkipCurrReport: Boolean; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Report, Report::"KVSTRDPeriodicInvoicing", 'KVSTRDOnBeforeCustomerOnAfterGetRecord', '', false, false)]
local procedure DoSomethingKVSTRDOnBeforeCustomerOnAfterGetRecord(var Customer: Record "Customer"; var SkipCurrReport: Boolean; var IsHandled: Boolean)
begin
end;

Parameters:

  • Customer: The Customer record being processed.
  • SkipCurrReport: Specifies whether to skip the current report for this Customer record.
  • isHandled: Specifies if the event has been handled. If set to true, the default logic will not be executed.

KVSTRDOnBeforeOnPreDataItemCustomer(Date, Boolean, Boolean, Boolean) :#

Summary: This event is raised before processing the Customer data item in the report. It allows customization of the parameters such as Posting Date, whether to replace the Posting Date or Document Date, and whether to skip date checks.

[IntegrationEvent(false, false)]
local procedure KVSTRDOnBeforeOnPreDataItemCustomer(var PostingDate: Date; var ReplacePostingDate: Boolean; var ReplaceDocumentDate: Boolean; var SkipDateChecks: Boolean): 
[EventSubscriber(ObjectType::Report, Report::"KVSTRDPeriodicInvoicing", 'KVSTRDOnBeforeOnPreDataItemCustomer', '', false, false)]
local procedure DoSomethingKVSTRDOnBeforeOnPreDataItemCustomer(var PostingDate: Date; var ReplacePostingDate: Boolean; var ReplaceDocumentDate: Boolean; var SkipDateChecks: Boolean)
begin
end;

Parameters:

  • PostingDate: The Posting Date to be used in the report.
  • ReplacePostingDate: Specifies if the Posting Date in the document should be replaced by the "PostingDate" parameter date.
  • ReplaceDocumentDate: Specifies if the Document Date should be replaced by the Posting Date.
  • SkipDateChecks: Specifies if date checks should be skipped.

KVSTRDOnBeforeSetSalesOrderFilter(Record Sales Header, Record Customer, Boolean, Record Sales Header) :#

Summary: This event is raised before setting the filter on the Sales Header record. It allows customization of the Sales Header filter based on the Customer record and other parameters.

[IntegrationEvent(false, false)]
local procedure KVSTRDOnBeforeSetSalesOrderFilter(var SalesHeader: Record "Sales Header"; Customer: Record "Customer"; var IsHandled: Boolean; SalesHeader2: Record "Sales Header"): 
[EventSubscriber(ObjectType::Report, Report::"KVSTRDPeriodicInvoicing", 'KVSTRDOnBeforeSetSalesOrderFilter', '', false, false)]
local procedure DoSomethingKVSTRDOnBeforeSetSalesOrderFilter(var SalesHeader: Record "Sales Header"; Customer: Record "Customer"; var IsHandled: Boolean; SalesHeader2: Record "Sales Header")
begin
end;

Parameters:

  • SalesHeader: The Sales Header record to which the filter will be applied.
  • Customer: The Customer record associated with the Sales Header.
  • isHandled: Specifies if the event has been handled. If set to true, the default logic will not be executed.
  • SalesHeader2: The current dataitem Sales Header record.