From c5fe77b838de5e3e500b7518f20bf136446cecb6 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 8 Oct 2024 14:18:15 +0200 Subject: ✨ euro_format filters for templates MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- archaeological_files/models.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'archaeological_files/models.py') 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) -- cgit v1.2.3