Skip to content

Commit

Permalink
Fixed Report issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Kalloor, Eric Abraham committed Sep 3, 2023
1 parent be634aa commit c4dd026
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion register/api_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ def get_report_data_api(request, poll_id):

month_paid += month_extra_income
month_paid = decimal.Decimal(month_paid)
month_due = month_register_sale - month_paid
month_due = decimal.Decimal(month_register_sale) - month_paid

profit = float(
max(month_paid - month_expense, 0)) if month_paid > month_expense else False
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ gunicorn==20.0.4
html5lib==1.1
idna==2.10
image==1.5.32
psycopg2-binary==2.8.6
psycopg2-binary==2.9.7
pymongo==3.11.2
PyPDF2==1.26.0
PyQRCode==1.2.1
python-bidi==0.4.2
python-dateutil==2.8.1
pytz==2020.1
qrcode==6.1
reportlab==3.5.55
reportlab==3.6.6
requests==2.25.0
six==1.15.0
sqlparse==0.3.1
Expand Down

0 comments on commit c4dd026

Please sign in to comment.