I'm trying to track payments made and payments due on a contract. I intend to use a custom contract entity because the built MS service/warranty style contract doesn't really apply very well.
This is roughly what I want to do:
- Contract: total due of $200
- Payments Due: 1st payment of $100, 2nd payment of $100
- Payment Made: $150
When Payment Made record is created, display a list of the Contract's connected Payments Due records that haven't been paid.
User enters $100 for 1st payment due and $50 for 2nd payment due
Check that values equal payment made
Balance due is changed on the Payments Due records and Contract
Two records are then created in a Payments Due/Made entity to display how much of the payment made went to each payment due.
Is this even possible? Can it be done using a dialog? I've never made a Dialog so I'm unsure of their limitations. I want to eventually expand it to handle late fees. Thanks for any tips you can offer!