commit | dd238aa5b4656e0163fc17b791ec9c4f81e5cc7c | [log] [tgz] |
---|---|---|
author | rohitwaghchaure <rohitw1991@gmail.com> | Wed Apr 19 21:07:25 2023 +0530 |
committer | GitHub <noreply@github.com> | Wed Apr 19 21:07:25 2023 +0530 |
tree | c53180edf821fb03200c115771360babe6bc0c8d | |
parent | c88beb76d6730e33699de77050782e62e24eb5ec [diff] | |
parent | a77182645f734db83b728f90d4cfc55acf6e28cd [diff] |
Merge pull request #34929 from rohitwaghchaure/fixed-stock-and-account-value-report fix: Incorrect difference value in Stock and Account Value Comparison…
diff --git a/erpnext/stock/report/stock_and_account_value_comparison/stock_and_account_value_comparison.py b/erpnext/stock/report/stock_and_account_value_comparison/stock_and_account_value_comparison.py index 106e877..5fb4565 100644 --- a/erpnext/stock/report/stock_and_account_value_comparison/stock_and_account_value_comparison.py +++ b/erpnext/stock/report/stock_and_account_value_comparison/stock_and_account_value_comparison.py
@@ -41,7 +41,7 @@ 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)