Closed vectorien closed 8 years ago
An alternative would be to completely remove tenancy_begin/end_date from the admin panel too, because as of now, they dont have any functionality, and can lead to misunderstandings for new users when creating a new tenant..
I agree with you that these fields should not exist ! At first we were
using the notes
field to store them. But my users insisted to have a
dedicated field to store it, even though my opinion is that anything that's
not used in calculations should go in notes
...
Maybe django has an option to add a disclaimer in the admin, so that we can
tell users that these dates are not used.
Le 19 nov. 2015 7:26 PM, "vectorien" notifications@github.com a écrit :
An alternative would be to completely remove tenancy_begin/end_date from the admin panel too, because as of now, they dont have any functionality, and can lead to misunderstandings for new users when creating a new tenant..
— Reply to this email directly or view it on GitHub https://github.com/oadam/proprio/issues/28#issuecomment-158146829.
Ok so I remove them in the next PR?
No, unfortunately my users won't accept that.
But you can definitely add a help_text
on the fields to warn that they
are not used at all.
Le 20 nov. 2015 9:16 AM, "vectorien" notifications@github.com a écrit :
Ok so I remove them in the next PR?
— Reply to this email directly or view it on GitHub https://github.com/oadam/proprio/issues/28#issuecomment-158318583.
Ok well I just saw that in models.py , the tenancy_end_date is being used:
def cashflows(self):
if self.tenancy_end_date:
last_revision_end_date = next_month(self.tenancy_end_date, -1)
Looks like a hack in case of missing end-date on the last rentrevision. You can remove it if you want Le 20 nov. 2015 12:08 PM, "vectorien" notifications@github.com a écrit :
Ok well I just saw that in models.py , the tenancy_end_date is being used:
def cashflows(self): if self.tenancy_end_date: last_revision_end_date = next_month(self.tenancy_end_date, -1)
— Reply to this email directly or view it on GitHub https://github.com/oadam/proprio/issues/28#issuecomment-158360603.
Hi, as mendtioned in the now closed PR https://github.com/oadam/proprio/pull/21, I think it is a good idea to enable the calculation of partial month rents.
In the case that we calculate the rent for a tenancy based on the begin/end of a tenancy (AND independently of the rentrevision dates), I think we need to introduce the parameters tenancy_begin_date, tenancy_end_date into the function revision_to_cashflows
Proposal:
Of course the TenantBalanceTests will have to be widely adapted then.
Happy to learn about a simpler approach ;-)