Understanding the Rental Contract Close Program (R54R802)

You use the Rental Contract Close program (R54R802) to close:

  • Rental contract headers that have no rental contract detail lines

  • Rental contracts that have related orders which are all closed

  • Rental contracts for which related orders have not been generated

A rental contract for which related orders have been generated has records with a status of 2 (Processed) or 3 (Linked) in the Rental Contract Related Orders table (F54R20). These records are linked with sales orders, purchase orders, and service orders. To close the rental contract, the statuses of all of these related orders must match the close statuses that are set up in the Rental Constants program (P54R01).

You can close rental contracts using this program or through the Close Contract option in the Rental Contract Entry program (P54R10).

When you run the close contract process using the Rental Contract Close program or through the option on the Rental Contract Entry program, the system checks if the statuses of all the associated related orders are at statuses eligible for closing the contract. Eligible statuses are specified in the Sales Order Close Statuses, Purchase Order Close Statuses, and Service Order Close Statuses fields in the Rental Constants program (P54R01).

For a sales order, the value in the Next Status field in the Sales Order Entry program (P4210) must match any of the statuses in the Sales Order Close Statuses field in the P54R01 program.

For a purchase order, the value in the Next Status field in the Purchase Orders program (P4310) must match any of the statuses in the Purchase Order Close Statuses field in the P54R01 program.

For a service order, the value in the W.O. Status field in the Work With Work Orders program (P48201) must match any of the statuses in the Service Order Close Statuses field in the P54R01 program.

See Setting Up Rental Management Constants

When you run the program in final mode, the system:

  • Updates the contract status to 900 (Closed) in the Rental Contract Header table (F54R10)

  • Adds a ledger record in the Rental Contract Header Ledger table (F54R099) with Ledger Action 07 (Close Contract)

  • Updates the contract line status to 900 (Closed) in the Rental Contract Detail table (F54R11)

  • Adds a ledger record in the Rental Contract Detail Ledger table (F54R199) with Ledger Action 07 (Close Contract)