Illustration Of Logic for Non-serialized Rental Calculation
For the calculation logic for rentals it has first to be determined whether the packages are owned by the company using RPM or their exchange-partner. For own packages the rental period begins with the goods issue to the partner and end with the goods receipt later on, while for partner-owned materials the renatl period begins with the goods-receipt in the plant and end with the goods-issue back to the partner. Rent-free days have to be considered accordingly.

Additionally, the calculation for serialized packages is done in another way than for non-serialized packages. For serialized packages it is based on the individual container, where each rental-period is calculated seperately. As this calculation requires tracking of each container at least at goods-reiceipt and goods-issue it is not possible for non-serialized containers. For them the calculation is based on the account-balance for each day during the rental-period, adjusted for the rent-free days. As the account-balance only changes due to a posting the inital account-balance and the postings can be used to do the calculation. Please refer to the illustration for an example.
1234Rental Amount Calculation:
Starting-balance * calendar-days of invoicing period * rental-charge/day
+ goods-receipts * [(calendar-days until end of period * rental-charge/day) + delivery-charge]
- goods-issues * [(calendar-days until end of period1 * rental-charge/day) + reimbursed delivery-charges - return charges]*1 modified by rent-free days (credit-days and transit-days)