On issue #51, we started introducing a separate due date field for utility bills (electric and water bills). This means we have now two separate due dates per statement of account, one for the rental which is based on the contract terms and one for the utility bills.
We have to introduce new setting to specify from which of these two due dates do the miscellaneous will going to follow.
We are going to introduce this new setting on terms details, call it "Miscellaneous Due Date" with two options: "Same with Utility bill Due Date" or "Same with Rental Due Date".
If option "Same with Utility bill Due Date" is selected, on statement of account details page, group the miscellaneous details with the utility bills details.
If option "Same with Rental Due Date" is selected, group the miscellaneous details with the rental information. And also, when generating penalties, make sure to add the miscellaneous total amount with the rental amount when checking if the statement of account is already fully paid before generating penalty details.
Don't forget to update unit tests and the online documentation.