Merge pull request #33611 from vorasmit/fix-diff-value

fix: better comparision of `difference_value` of Stock and Account
This commit is contained in:
Sagar Sharma 2023-01-11 14:52:49 +05:30 committed by GitHub
commit 9ab8aa49d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)