Skip to content

Commit

Permalink
Merge pull request #35026 from frappe/revert-34929-fixed-stock-and-ac…
Browse files Browse the repository at this point in the history
…count-value-report

Revert "fix: Incorrect difference value in Stock and Account Value Comparison…"
  • Loading branch information
rohitwaghchaure authored Apr 25, 2023
2 parents d70f5ee + 7a63fbe commit 04902e1
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) - abs(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 04902e1

Please sign in to comment.