Skip to content

Commit

Permalink
fix: better comparision of difference value between stock and account
Browse files Browse the repository at this point in the history
(cherry picked from commit be05aea)
  • Loading branch information
vorasmit authored and mergify[bot] committed Jan 11, 2023
1 parent 34df9ab commit 5869fcb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def get_data(report_filters):
key = (d.voucher_type, d.voucher_no)
gl_data = voucher_wise_gl_data.get(key) or {}
d.account_value = gl_data.get("account_value", 0)
d.difference_value = abs(d.stock_value - d.account_value)
d.difference_value = d.stock_value - d.account_value
if abs(d.difference_value) > 0.1:
data.append(d)

Expand Down

0 comments on commit 5869fcb

Please sign in to comment.