We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 891476f commit 6b2d1a7Copy full SHA for 6b2d1a7
register/api_views.py
@@ -1,4 +1,5 @@
1
import calendar
2
+import decimal
3
import json
4
import logging
5
from calendar import monthrange
@@ -355,6 +356,7 @@ def get_report_data_api(request, poll_id):
355
356
entry.log_date.month == graph_month.month and entry.log_date.year == graph_month.year and entry.paid]) / 1000
357
358
month_paid += month_extra_income
359
+ month_paid = decimal.Decimal(month_paid)
360
month_due = month_register_sale - month_paid
361
362
profit = float(
0 commit comments