diff options
| author | Mitch Riedstra <mitch@riedstra.us> | 2018-02-03 21:17:02 -0500 |
|---|---|---|
| committer | Mitch Riedstra <mitch@riedstra.us> | 2018-02-03 21:17:02 -0500 |
| commit | 93a57dc5afb2962d675c51504ecdb3afa34a95a7 (patch) | |
| tree | 97e0ffb39c777c2907f817c24a88b9696d0f6370 /app/dispatch/models.py | |
| parent | 9494ff9cb0e917fb11d2281fe0ffb04a8c40b6db (diff) | |
| download | dispatch-tracker-93a57dc5afb2962d675c51504ecdb3afa34a95a7.tar.gz dispatch-tracker-93a57dc5afb2962d675c51504ecdb3afa34a95a7.tar.xz | |
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.
Diffstat (limited to 'app/dispatch/models.py')
| -rw-r--r-- | app/dispatch/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |
