Rent steps:
- Customer gives his details.
- Manager find or create by customer name, code.
- Manager assigns tool with the number.
- Manager prints invoice after printing customer can take the tool.
- Hire time starts after tool given to customer by warehouse.
- Customer returns tool to the warehouse. Warehouse submits tool has been returned.
- After tool returned price is calculated by time it was used.
Guides: https://guides.rubyonrails.org/active_record_querying.html
#10