From 93a57dc5afb2962d675c51504ecdb3afa34a95a7 Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Sat, 3 Feb 2018 21:17:02 -0500 Subject: Show whether or not there are any related invoices on the summary page Also prevent the generation of duplicate invoices based on the date of invoice and the current user. --- app/dispatch/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/dispatch/models.py') diff --git a/app/dispatch/models.py b/app/dispatch/models.py index b0f76e5..0dde07b 100644 --- a/app/dispatch/models.py +++ b/app/dispatch/models.py @@ -58,7 +58,7 @@ class Load(models.Model): return "/loads/view/%i" % self.id def can_invoice(self): - # Prevent 0 and $1 invoices as well as loads w/o attachments + # Prevent $0 and $1 invoices as well as loads w/o attachments if self.amount >= 2 and len(self.paperwork_set.all()) >= 1: return True else: -- cgit v1.2.3