Skip to content

Commit 6b2d1a7

Browse files
author
Kalloor, Eric Abraham
committed
report decimal bug fix
1 parent 891476f commit 6b2d1a7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

register/api_views.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import calendar
2+
import decimal
23
import json
34
import logging
45
from calendar import monthrange
@@ -355,6 +356,7 @@ def get_report_data_api(request, poll_id):
355356
entry.log_date.month == graph_month.month and entry.log_date.year == graph_month.year and entry.paid]) / 1000
356357

357358
month_paid += month_extra_income
359+
month_paid = decimal.Decimal(month_paid)
358360
month_due = month_register_sale - month_paid
359361

360362
profit = float(

0 commit comments

Comments
 (0)