diff options
| author | trisusilo48 <tri.susilo@altama.co.id> | 2025-01-16 15:53:36 +0700 |
|---|---|---|
| committer | trisusilo48 <tri.susilo@altama.co.id> | 2025-01-16 15:53:36 +0700 |
| commit | e3e7f29ad939a774878316e46e10a5c1370fda77 (patch) | |
| tree | 341b3ca819f2bec730dcc67b3b27312cb683c548 | |
| parent | 183cd9e68ea05e31c63000aeb992eb618edb02b5 (diff) | |
sla
| -rw-r--r-- | indoteknik_custom/models/product_sla.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/product_sla.py b/indoteknik_custom/models/product_sla.py index dfdf7662..988aa78f 100644 --- a/indoteknik_custom/models/product_sla.py +++ b/indoteknik_custom/models/product_sla.py @@ -99,7 +99,7 @@ class ProductSla(models.Model): if len(leadtimes) > 0: avg_leadtime = sum(leadtimes) / len(leadtimes) rounded_leadtime = math.ceil(avg_leadtime) - estimation_sla = (rounded_leadtime * 24 * 60) + vendor_duration + estimation_sla = ((rounded_leadtime * 24 * 60) + vendor_duration)/2 estimation_sla_days = estimation_sla / (24 * 60) self.sla = math.ceil(estimation_sla_days) self.avg_leadtime = int(rounded_leadtime)
\ No newline at end of file |
