Table of Contents

KVSTRDRentalPostingMgt

Procedures

CreateInterruptionRentalItemLedgerEntries(Enum Sales Document Type, Code[20], Integer) :

procedure CreateInterruptionRentalItemLedgerEntries(DocumentType: Enum "Sales Document Type"; DocumentNo: Code[20]; DocumentLineNo: Integer): 

CreateServiceOrderForRental(Record Sales Line) :

Summary: Create a service order for the Sales Line. Note: The used item category in the Sales Line must be set up in the Rental Follow-up Service Setup.

procedure CreateServiceOrderForRental(var SalesLine: Record "Sales Line"): 

Parameters:

  • SalesLine: The Sales Line to create the service order for.

PostRentalCrMemo(Record Sales Line) :

Summary: Posts a Rental Credit Memo document.

procedure PostRentalCrMemo(var SalesLine: Record "Sales Line"): 

Parameters:

  • SalesLine: The Rental Credit Memo line to be posted.

PostRentalReturn(Record Sales Line) :

Summary: Posts a Rental Return document.

procedure PostRentalReturn(var SalesLine: Record "Sales Line"): 

Parameters:

  • SalesLine: The Rental Return line to be posted.

PostRentalShipment(Record Sales Line) :

Summary: Posts a Rental Shipment document.

procedure PostRentalShipment(var SalesLine: Record "Sales Line"): 

Parameters:

  • SalesLine: The Rental Shipment line to be posted.

SetHideValidationDialog(Boolean) :

Summary: Sets the global variable to hide validation dialog messages.

procedure SetHideValidationDialog(NewHideValidationDialog: Boolean): 

Parameters:

  • NewHideValidationDialog: Boolean value to set the global variable to.

Events

KVSTRDOnAfterModifySalesLinePostRentalReturn(Record Sales Line) :

Summary: This event is raised after modifying a sales line for posting a rental return.

[IntegrationEvent(false, false)]
local procedure KVSTRDOnAfterModifySalesLinePostRentalReturn(var SalesLine: Record "Sales Line"): 

Parameters:

  • SalesLine: The sales line that has been modified.

KVSTRDOnAfterModifySalesLinePostRentalShipment(Record Sales Line) :

Summary: This event is raised after modifying a sales line for posting a rental shipment.

[IntegrationEvent(false, false)]
local procedure KVSTRDOnAfterModifySalesLinePostRentalShipment(var SalesLine: Record "Sales Line"): 

Parameters:

  • SalesLine: The sales line that has been modified.

KVSTRDOnBeforeRentalPostReturn(Record Sales Line) :

Summary: This event is raised before posting a rental return.

[IntegrationEvent(false, false)]
local procedure KVSTRDOnBeforeRentalPostReturn(var SalesLine: Record "Sales Line"): 

Parameters:

  • SalesLine: The sales line that is about to be posted.

KVSTRDOnBeforeRentalPostShipment(Record Sales Line) :

Summary: This event is raised before posting a rental shipment.

[IntegrationEvent(false, false)]
local procedure KVSTRDOnBeforeRentalPostShipment(var SalesLine: Record "Sales Line"): 

Parameters:

  • SalesLine: The sales line that is about to be posted.

KVSTRDOnAfterSetSalesLineFiltersInSetQuantitiesToShipInSalesOrderLines(Record Sales Header, Record Sales Line) :

Summary: This event is raised after setting filters on sales lines in the SetQuantitiesToShipInSalesOrderLines procedure.

[IntegrationEvent(false, false)]
local procedure KVSTRDOnAfterSetSalesLineFiltersInSetQuantitiesToShipInSalesOrderLines(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"): 

Parameters:

  • SalesHeader: The sales header record.
  • SalesLine: The sales line record.

KVSTRDOnBeforeSetSalesLineQuantityToShipInSetQuantitiesToShipInSalesOrderLines(Record Sales Header, Record Sales Line, Boolean) :

Summary: This event is raised before setting the "Qty. to Ship" field on sales lines in the SetQuantitiesToShipInSalesOrderLines procedure.

[IntegrationEvent(false, false)]
local procedure KVSTRDOnBeforeSetSalesLineQuantityToShipInSetQuantitiesToShipInSalesOrderLines(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var IsHandled: Boolean): 

Parameters:

  • SalesHeader: The sales header record.
  • SalesLine: The sales line record.
  • IsHandled: Indicates whether the default logic is handled by the subscriber.

KVSTRDOnAfterInsertServiceHeaderInCreateServiceOrderForRental(Record Service Header, Record Sales Line, Record Service Item) :

Summary: This event is raised after creating a rental service header.

[IntegrationEvent(false, false)]
local procedure KVSTRDOnAfterInsertServiceHeaderInCreateServiceOrderForRental(var ServiceHeader: Record "Service Header"; var SalesLine: Record "Sales Line"; var ServiceItem: Record "Service Item"): 

Parameters:

  • ServiceHeader: Service Header record created for the rental
  • SalesLine: The used sales line record for creating the service header
  • ServiceItem: The created service item record for the rental

KVSTRDOnAfterCreateServiceOrderForRental(Record Service Item Line, Record Service Header, Record Sales Line) :

Summary: This event is raised after creating a rental service order.

[IntegrationEvent(false, false)]
local procedure KVSTRDOnAfterCreateServiceOrderForRental(var ServiceItemLine: Record "Service Item Line"; var ServiceHeader: Record "Service Header"; var SalesLine: Record "Sales Line"): 

Parameters:

  • ServiceItemLine: Service Item Line record created for the rental
  • ServiceHeader: Service Header record created for the rental
  • SalesLine: The used sales line record for creating the service item line

KVSTRDOnAfterModifySalesLineInPostRentalCrMemo(Record Sales Line) :

Summary: This event is raised after modifying a sales line for posting a rental credit memo.

[IntegrationEvent(false, false)]
local procedure KVSTRDOnAfterModifySalesLineInPostRentalCrMemo(var SalesLine: Record "Sales Line"): 

Parameters:

  • SalesLine: The modified sales line record

KVSTRDOnAfterModifySalesLineInCancelRentalCrMemo(Record Sales Line) :

Summary: This event is raised after modifying a sales line for canceling a rental credit memo.

[IntegrationEvent(false, false)]
local procedure KVSTRDOnAfterModifySalesLineInCancelRentalCrMemo(var SalesLine: Record "Sales Line"): 

Parameters:

  • SalesLine: The modified sales line record

KVSTRDOnAfterModifySalesLineInCancelRentalReturn(Record Sales Line) :

Summary: This event is raised after modifying a sales line for canceling a rental return.

[IntegrationEvent(false, false)]
local procedure KVSTRDOnAfterModifySalesLineInCancelRentalReturn(var SalesLine: Record "Sales Line"): 

Parameters:

  • SalesLine: The modified sales line record

KVSTRDOnAfterModifySalesLineInCancelRentalShipment(Record Sales Line) :

Summary: This event is raised after modifying a sales line for canceling a rental shipment.

[IntegrationEvent(false, false)]
local procedure KVSTRDOnAfterModifySalesLineInCancelRentalShipment(var SalesLine: Record "Sales Line"): 

Parameters:

  • SalesLine: The modified sales line record