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"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSTRDRentalPostingMgt", 'KVSTRDOnAfterModifySalesLinePostRentalReturn', '', false, false)]
local procedure DoSomethingKVSTRDOnAfterModifySalesLinePostRentalReturn(var SalesLine: Record "Sales Line")
begin
end;
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"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSTRDRentalPostingMgt", 'KVSTRDOnAfterModifySalesLinePostRentalShipment', '', false, false)]
local procedure DoSomethingKVSTRDOnAfterModifySalesLinePostRentalShipment(var SalesLine: Record "Sales Line")
begin
end;
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"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSTRDRentalPostingMgt", 'KVSTRDOnBeforeRentalPostReturn', '', false, false)]
local procedure DoSomethingKVSTRDOnBeforeRentalPostReturn(var SalesLine: Record "Sales Line")
begin
end;
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"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSTRDRentalPostingMgt", 'KVSTRDOnBeforeRentalPostShipment', '', false, false)]
local procedure DoSomethingKVSTRDOnBeforeRentalPostShipment(var SalesLine: Record "Sales Line")
begin
end;
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"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSTRDRentalPostingMgt", 'KVSTRDOnAfterSetSalesLineFiltersInSetQuantitiesToShipInSalesOrderLines', '', false, false)]
local procedure DoSomethingKVSTRDOnAfterSetSalesLineFiltersInSetQuantitiesToShipInSalesOrderLines(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line")
begin
end;
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):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSTRDRentalPostingMgt", 'KVSTRDOnBeforeSetSalesLineQuantityToShipInSetQuantitiesToShipInSalesOrderLines', '', false, false)]
local procedure DoSomethingKVSTRDOnBeforeSetSalesLineQuantityToShipInSetQuantitiesToShipInSalesOrderLines(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var IsHandled: Boolean)
begin
end;
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"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSTRDRentalPostingMgt", 'KVSTRDOnAfterInsertServiceHeaderInCreateServiceOrderForRental', '', false, false)]
local procedure DoSomethingKVSTRDOnAfterInsertServiceHeaderInCreateServiceOrderForRental(var ServiceHeader: Record "Service Header"; var SalesLine: Record "Sales Line"; var ServiceItem: Record "Service Item")
begin
end;
Parameters:
ServiceHeader: Service Header record created for the rentalSalesLine: The used sales line record for creating the service headerServiceItem: 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"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSTRDRentalPostingMgt", 'KVSTRDOnAfterCreateServiceOrderForRental', '', false, false)]
local procedure DoSomethingKVSTRDOnAfterCreateServiceOrderForRental(var ServiceItemLine: Record "Service Item Line"; var ServiceHeader: Record "Service Header"; var SalesLine: Record "Sales Line")
begin
end;
Parameters:
ServiceItemLine: Service Item Line record created for the rentalServiceHeader: Service Header record created for the rentalSalesLine: 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"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSTRDRentalPostingMgt", 'KVSTRDOnAfterModifySalesLineInPostRentalCrMemo', '', false, false)]
local procedure DoSomethingKVSTRDOnAfterModifySalesLineInPostRentalCrMemo(var SalesLine: Record "Sales Line")
begin
end;
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"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSTRDRentalPostingMgt", 'KVSTRDOnAfterModifySalesLineInCancelRentalCrMemo', '', false, false)]
local procedure DoSomethingKVSTRDOnAfterModifySalesLineInCancelRentalCrMemo(var SalesLine: Record "Sales Line")
begin
end;
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"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSTRDRentalPostingMgt", 'KVSTRDOnAfterModifySalesLineInCancelRentalReturn', '', false, false)]
local procedure DoSomethingKVSTRDOnAfterModifySalesLineInCancelRentalReturn(var SalesLine: Record "Sales Line")
begin
end;
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"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSTRDRentalPostingMgt", 'KVSTRDOnAfterModifySalesLineInCancelRentalShipment', '', false, false)]
local procedure DoSomethingKVSTRDOnAfterModifySalesLineInCancelRentalShipment(var SalesLine: Record "Sales Line")
begin
end;
Parameters:
SalesLine: The modified sales line record