KVSTRDSalesLineRental
Extends #437dbf0e84ff417a965ded2bb9650972#Sales Line
Fields
| Name | Type | Note |
|---|---|---|
| KVSTRDAttaToLineAddItemRental | Integer | |
| KVSTRDRental Document | Boolean | |
| KVSTRDService Item No. | Code[20] | Warning: Obsolete |
| KVSTRDRental Starting Date | Date | |
| KVSTRDRental Ending Date | Date | |
| KVSTRDRental Starting Time | Time | |
| KVSTRDRental Ending Time | Time | |
| KVSTRDRental Price Group | Code[10] | |
| KVSTRDRental Interruption | Boolean | |
| KVSTRDRental Shipment Posted | Boolean | |
| KVSTRDRental Return Posted | Boolean | |
| KVSTRDLong-Term Rental | Boolean | FlowField |
| KVSTRDRental Cr. Memo Posted | Boolean | |
| KVSTRDRentalConCounterHandover | Decimal | |
| KVSTRDRentalConCounterReturn | Decimal | |
| KVSTRDRentalCrMemoStartDate | Date | |
| KVSTRDRentalCrMemoEndDate | Date | |
| KVSTRDRentalShipmentStartDate | Date | |
| KVSTRDRentalShipmentEndDate | Date | |
| KVSTRDRentalInvoiceStartDate | Date | |
| KVSTRDRentalInvoiceEndDate | Date | |
| KVSTRDRentalReservation | Boolean | |
| KVSTRDNoOfRentalItems | Integer | |
| KVSTRDRentalOutTransferOrderNo | Code[20] | Warning: Obsolete |
| KVSTRDRentalInbTransferOrderNo | Code[20] | Warning: Obsolete |
| KVSTRDRentalDateToShip | Date | |
| KVSTRDRentalDateToInvoice | Date | |
| KVSTRDRentalExcludeFromAvailab | Boolean | |
| KVSTRDAttachRentalConsumLineNo | Integer | |
| KVSTRDRental Inspection Code | Code[10] | |
| KVSTRDRentalBasePrice | Decimal | |
| KVSTRDRentalBOMBasePrice | Decimal | |
| KVSTRDRentalStartingDateAvail | Date | |
| KVSTRDRentalEndingDateAvail | Date | |
| KVSTRDServiceItemNo. | Code[20] |
Procedures
KVSTRDSetCalledFromRentalSalesHeaderImpl(Boolean) :
Summary: Sets the global variable to determine if the caller is from Rental Sales Header or not, which will be used to control the logic in the Sales Line.
procedure KVSTRDSetCalledFromRentalSalesHeaderImpl(CalledFromRentalSalesHeader: Boolean):
Parameters:
CalledFromRentalSalesHeader: Indicates whether the caller is from Rental Sales Header.
Events
KVSTRDOnBeforeErrorNotAvailableForRentalInCheckRentalItemAvailability(Record Sales Line, Boolean) :
Summary: Event raised before showing the error message when a rental item is not available in the specified period. The event handler can be used to suppress the error by setting the IsHandled parameter to true.
[IntegrationEvent(false, false)]
local procedure KVSTRDOnBeforeErrorNotAvailableForRentalInCheckRentalItemAvailability(var Rec: Record "Sales Line"; var IsHandled: Boolean):
Parameters:
Rec: The sales line record.IsHandled: Indicates whether the error has been handled. Set to true to suppress the error message.
KVSTRDOnAfterIsRentalLine(Record Sales Line, Boolean) :
Summary: Event raised after determining whether a sales line is a rental line. The event handler can be used to apply additional logic on whether the line should be treated as a rental line by setting the IsRentalLine parameter.
[IntegrationEvent(false, false)]
local procedure KVSTRDOnAfterIsRentalLine(var Rec: Record "Sales Line"; var IsRentalLine: Boolean):
Parameters:
Rec: The sales line record.IsRentalLine: Indicates whether the sales line is a rental line.
KVSTRDOnBeforeTestSalesDocumentStatusOpen(Record Sales Line, Boolean) :
Summary: This event is raised before testing that the Sales Document status is Open in the GetAndCheckRentalSalesHeaderStatus procedure.
[IntegrationEvent(false, false)]
local procedure KVSTRDOnBeforeTestSalesDocumentStatusOpen(var Rec: Record "Sales Line"; var IsHandled: Boolean):
Parameters:
Rec: The sales line record.IsHandled: Set to true to skip the default status check. If set to true, the TestField for Status = Open will not be executed.
KVSTRDOnBeforeCalculateRentalQuantity(Record Sales Line, Boolean) :
Summary: This event is raised before calculating the rental quantity for a sales line. Subscribers can use this event to perform additional actions or modifications based on the calculated rental quantity.
[IntegrationEvent(false, false)]
local procedure KVSTRDOnBeforeCalculateRentalQuantity(var SalesLine: Record "Sales Line"; var IsHandled: Boolean):
Parameters:
SalesLine: The sales line record for which the rental quantity will be calculated.IsHandled: Indicates whether the calculation has been handled. Set to true to skip the default calculation.
KVSTRDOnAfterCalculateRentalQuantity(Record Sales Line) :
Summary: This event is raised after calculating the rental quantity for a sales line. Subscribers can use this event to perform additional actions or modifications based on the calculated rental quantity.
[IntegrationEvent(false, false)]
local procedure KVSTRDOnAfterCalculateRentalQuantity(var SalesLine: Record "Sales Line"):
Parameters:
SalesLine: The sales line record for which the rental quantity was calculated.
KVSTRDOnBeforeUpdateRentalUnitPrice(Record Sales Line, Boolean) :
Summary: This event is raised before the unit price of a rental line is determined again, for example after the rental period has been changed. It is raised before the unit price is set from the rental base price and the rental BOM base price, before the price origin is reset and before the standard price calculation runs for a changed rental quantity.
[IntegrationEvent(false, false)]
local procedure KVSTRDOnBeforeUpdateRentalUnitPrice(var SalesLine: Record "Sales Line"; var IsHandled: Boolean):
Parameters:
SalesLine: The sales line record whose unit price will be updated.IsHandled: Is preset to true if the setup Keep Manual Rental Prices is enabled and the price origin of the sales line is Manual. Set to true to keep the unit price and the price origin of the sales line. Set to false to update the unit price from the rental base price and the rental BOM base price.