commit | 1417c6d58fe92974853c772e40858458d312fab7 | [log] [tgz] |
---|---|---|
author | Pratik Vyas <pdvyas@gmail.com> | Fri Dec 06 14:50:06 2013 +0530 |
committer | Pratik Vyas <pdvyas@gmail.com> | Fri Dec 06 14:50:06 2013 +0530 |
tree | 3e40fabd29a10aad28ca6194e17cfe17bf718311 | |
parent | c3d8b0662356bdc5cd1a0229bc242d5f6b35caa2 [diff] |
[hotfix] fix null issue in budget variance
diff --git a/accounts/report/budget_variance_report/budget_variance_report.py b/accounts/report/budget_variance_report/budget_variance_report.py index 2cbbd62..a5860c8 100644 --- a/accounts/report/budget_variance_report/budget_variance_report.py +++ b/accounts/report/budget_variance_report/budget_variance_report.py
@@ -121,6 +121,6 @@ for ad in actual_details.get(ccd.name, {}).get(ccd.account, []): if ad.month_name == month: - tav_dict.actual += ad.debit - ad.credit + tav_dict.actual += flt(ad.debit) - flt(ad.credit) - return cam_map \ No newline at end of file + return cam_map