Merge pull request #35026 from frappe/revert-34929-fixed-stock-and-account-value-report

Revert "fix: Incorrect difference value in Stock and Account Value Comparison…"
This commit is contained in:
rohitwaghchaure
2023-04-25 12:08:48 +05:30
committed by GitHub

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) - abs(d.account_value)
d.difference_value = d.stock_value - d.account_value
if abs(d.difference_value) > 0.1:
data.append(d)