New reports

Added per term fare paid to traveller model
Fixed parent in emergency contacts report
This commit is contained in:
John Mullins
2023-08-28 11:41:31 +10:00
parent cc706420a5
commit f9981aadf0
7 changed files with 133 additions and 46 deletions
+5 -1
View File
@@ -93,7 +93,7 @@ class Shuttle(models.Model):
ordering = ["school__name"]
def __str__(self):
return f"{self.bus.route_name} -> {self.school.shortName}"
return f"{self.school.shortName} <-> {self.bus.route_name}"
class Driver(models.Model):
@@ -187,6 +187,10 @@ class Traveller(models.Model):
eligibility_status = models.CharField(max_length=1, choices=ELIGIBILITY_STATUS)
assessment_date = models.DateField(blank=True, null=True)
fee_per_term = models.DecimalField(decimal_places=2, max_digits=5, blank=True, null=True)
term_1_paid = models.BooleanField(default=False)
term_2_paid = models.BooleanField(default=False)
term_3_paid = models.BooleanField(default=False)
term_4_paid = models.BooleanField(default=False)
application_form_completed = models.BooleanField()
parent_notified = models.BooleanField()
seat_number = models.CharField(max_length=5, blank=True)