Hello, I'm trying to make a childcare administration app with Django but I've some problems with the payments code.
Each kid has to pay monthly 10 times a year. These payments have some particularities:
Some kids could pay a different amount of money depending on the economical situation of the parents.
The amount of the payments could change over the year.
The payments could be payed in different oportunities.
Workshops and food are added to the total value of the payment(they're optional).
I'm having problem in order to model this app. I was thinking about creating a kid model and a payment model:
class Kid(models.Model):
food = models.BooleanField()
workshop = models.BooleanField()
special_price = models.DecimalField(blank=True)
class Payment(models.Model):
kid = models.ForeignKey(Kid)
date = models.DateField()
amount = models.DecimalField()`
Suppose I want to know in a given date how much moneya kid(the parents) have to pay. I don't know how to solve the changing values problem(the food and workshop values also could change over the year).
Hope you understood me, Thanks. mF.