diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2024-10-09 16:39:57 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2024-10-09 16:39:57 +0200 |
commit | 1268ba1b4a4e045d959858b9392bd85abb30bdc9 (patch) | |
tree | d1736d8bc72f103177e8ecc471191b5653d3b004 | |
parent | bc569725d031e32aade1d89918c5c27971550df7 (diff) | |
download | Ishtar-1268ba1b4a4e045d959858b9392bd85abb30bdc9.tar.bz2 Ishtar-1268ba1b4a4e045d959858b9392bd85abb30bdc9.zip |
🩹 Archaeological files templates: add operation_type_for_royalties fields
-rw-r--r-- | archaeological_files/models.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/archaeological_files/models.py b/archaeological_files/models.py index 8546b8933..b91ea7941 100644 --- a/archaeological_files/models.py +++ b/archaeological_files/models.py @@ -1251,6 +1251,13 @@ class File( values["job_non_permanent_cost"] = 0 for k in ["non_permanent_ground_cost_planned", "non_permanent_cost_planned"]: values["job_non_permanent_cost"] += values.get(k, 0) + if self.operation_type_for_royalties: + values.update({ + "operation_type_for_royalties_increase_coefficient": self.operation_type_for_royalties.increase_coefficient, + "operation_type_for_royalties_category": self.operation_type_for_royalties.category, + "operation_type_for_royalties_increased_final_value": self.operation_type_for_royalties.increased_final_value, + }) + return values def get_values(self, prefix="", no_values=False, filtr=None, **kwargs): |