summaryrefslogtreecommitdiff
path: root/archaeological_files/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2024-10-08 14:18:15 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2024-10-08 14:18:15 +0200
commitc5fe77b838de5e3e500b7518f20bf136446cecb6 (patch)
tree05463bc732253906f760b19db96824836a50d8d9 /archaeological_files/models.py
parente41c1e460260f07e4122c41b93571046c9527b60 (diff)
downloadIshtar-c5fe77b838de5e3e500b7518f20bf136446cecb6.tar.bz2
Ishtar-c5fe77b838de5e3e500b7518f20bf136446cecb6.zip
✨ euro_format filters for templates
Diffstat (limited to 'archaeological_files/models.py')
-rw-r--r--archaeological_files/models.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/archaeological_files/models.py b/archaeological_files/models.py
index fb0665a28..8546b8933 100644
--- a/archaeological_files/models.py
+++ b/archaeological_files/models.py
@@ -1170,7 +1170,17 @@ class File(
max_day_worked = max(max_day_worked, job.days_worked or 0)
if name not in jobs:
has_parents = job.job.has_parents
- jobs[name] = {"has_parents": has_parents}
+ jobs[name] = {
+ "has_parents": has_parents,
+ "ground_man_by_day_planned": "",
+ "ground_days_planned": "",
+ "ground_cost_planned": "",
+ "ground_cost_total_planned": "",
+ "ground_man_by_day_worked": "",
+ "ground_days_worked": "",
+ "ground_cost_worked": "",
+ "ground_cost_total_worked": "",
+ }
cost_total_planned = (
(job.man_by_day_planned or 0) * (job.days_planned or 0) *
(job.cost_planned or 0)