diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2025-03-14 16:31:13 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2025-03-17 19:46:08 +0100 |
commit | 985b983ef5373827988e5128892eaa33a0abdcf5 (patch) | |
tree | 7790f83af2a4abea4f9a79d6e669187d5890f5a7 | |
parent | 5a70796bc297e8e2b64d3925e3c916697770ae9b (diff) | |
download | Ishtar-985b983ef5373827988e5128892eaa33a0abdcf5.tar.bz2 Ishtar-985b983ef5373827988e5128892eaa33a0abdcf5.zip |
✨ archaeological files templates: add unit_label to generic equipment cost (refs #6218)
-rw-r--r-- | archaeological_files/models.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/archaeological_files/models.py b/archaeological_files/models.py index 168e2be3a..6f1640b46 100644 --- a/archaeological_files/models.py +++ b/archaeological_files/models.py @@ -1144,7 +1144,8 @@ class File( "cost_planned": 0, "quantity_by_day_worked": 0, "days_worked": 0, - "cost_worked": 0 + "cost_worked": 0, + "unit_label": cost.equipment_service_cost.unit_label, } key_costs_dct[cost_name]["quantity_by_day_planned"] += (quantity_by_day_planned or 0) key_costs_dct[cost_name]["days_planned"] += (cost.days_planned or 0) |