Skip to content

KVSTRDSalesHeaderRental#

Extends #437dbf0e84ff417a965ded2bb9650972#Sales Header

Fields#

Name Type Note
KVSTRDRental Price Group Code[10]
KVSTRDLong-Term Rental Boolean
KVSTRDRental Document Boolean
KVSTRDLongTermRentalStartDate Date
KVSTRDLongTermRentalEndDate Date
KVSTRDLongTermRentalInvdToDate Date
KVSTRDRentalInsurancePercent Decimal Warning: Obsolete
KVSTRDRentalInsuranceFeeCode Code[10]

Events#

KVSTRDOnBeforeUpdateSalesLineRentalStartAndEndingDates(Record Sales Header, Date, Date, Integer, Boolean) :#

Summary: Event raised before updating rental starting and ending dates on sales lines. Subscribe to this event to override the default date update logic or perform custom validation.

[IntegrationEvent(false, false)]
local procedure KVSTRDOnBeforeUpdateSalesLineRentalStartAndEndingDates(var SalesHeader: Record "Sales Header"; StartDate: Date; EndDate: Date; What: Integer; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::TableExtension, TableExtension::"KVSTRDSalesHeaderRental", 'KVSTRDOnBeforeUpdateSalesLineRentalStartAndEndingDates', '', false, false)]
local procedure DoSomethingKVSTRDOnBeforeUpdateSalesLineRentalStartAndEndingDates(var SalesHeader: Record "Sales Header"; StartDate: Date; EndDate: Date; What: Integer; var IsHandled: Boolean)
begin
end;

Parameters:

  • SalesHeader: The sales header record for which the rental dates are being updated.
  • StartDate: The rental starting date to be set on the sales lines.
  • EndDate: The rental ending date to be set on the sales lines.
  • What: Indicates which date field to update: 0 = Starting Date, 1 = Ending Date.
  • IsHandled: Set to true to bypass the default date update logic.

KVSTRDOnAfterFilterSalesLineRentalStartAndEndingDates(Record Sales Line) :#

Summary: Event raised after filtering sales lines in the date update process. Subscribe to this event to apply additional filters to the sales lines being updated.

[IntegrationEvent(false, false)]
local procedure KVSTRDOnAfterFilterSalesLineRentalStartAndEndingDates(var SalesLine: Record "Sales Line"): 
[EventSubscriber(ObjectType::TableExtension, TableExtension::"KVSTRDSalesHeaderRental", 'KVSTRDOnAfterFilterSalesLineRentalStartAndEndingDates', '', false, false)]
local procedure DoSomethingKVSTRDOnAfterFilterSalesLineRentalStartAndEndingDates(var SalesLine: Record "Sales Line")
begin
end;

Parameters:

  • SalesLine: The sales line record with filters already applied for rental date updates.