Skip to content

Commit

Permalink
Merge pull request #34929 from rohitwaghchaure/fixed-stock-and-accoun…
Browse files Browse the repository at this point in the history
…t-value-report

fix: Incorrect difference value in Stock and Account Value Comparison…
  • Loading branch information
rohitwaghchaure authored Apr 19, 2023
2 parents c88beb7 + a771826 commit dd238aa
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 = d.stock_value - d.account_value
d.difference_value = abs(d.stock_value) - abs(d.account_value)
if abs(d.difference_value) > 0.1:
data.append(d)

Expand Down

0 comments on commit dd238aa

Please sign in to comment.