Browse Source

round table income to two digits

Nico Ruhnke 2 years ago
parent
commit
1abf592c9c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      time_recoder/save_recorded_time_in_table.py

+ 1 - 1
time_recoder/save_recorded_time_in_table.py

@@ -33,7 +33,7 @@ def create_xlsx_table(table_object):
 
 def save_recorded_time_in_table(worked_time_in_minutes, task):
     worked_time_in_minutes = round(worked_time_in_minutes)
-    income = calc_income_by_time_in_euro_without_sales_tax(worked_time_in_minutes, HOURLY_WAGE_IN_EURO)
+    income = round(calc_income_by_time_in_euro_without_sales_tax(worked_time_in_minutes, HOURLY_WAGE_IN_EURO), 2)
     table_dict = create_recorded_time_dict(worked_time_in_minutes, income, task)
     xlsx_table = create_excel_tables.CreateTable(table_dict, path=PATH)
     if table_exists(PATH):