From 7ed3862f4bffa9d426d0c3611fbc334009bedd15 Mon Sep 17 00:00:00 2001 From: Didier 'OdyX' Raboud Date: Thu, 15 Jul 2021 12:12:11 +0200 Subject: [PATCH] DEFIVELO-223 Export all non-zero dataset values, not just positives Overtime can be negative --- apps/salary/views/timesheets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/salary/views/timesheets.py b/apps/salary/views/timesheets.py index 3729c519..5ff90957 100644 --- a/apps/salary/views/timesheets.py +++ b/apps/salary/views/timesheets.py @@ -366,7 +366,7 @@ def get_dataset(self, html=False): ] # Add one line to the dataset for every category for category, category_code in category_codes_list.items(): - if salary_details[category] > 0: + if salary_details[category] != 0: dataset.append( employee_line + [category_code, salary_details[category]] )