fix: remove cancelled entries from Stock and Account Value comparison report
This commit is contained in:
parent
f3ae7584c5
commit
a6d276a06f
@ -22,6 +22,7 @@ def get_data(report_filters):
|
|||||||
data = []
|
data = []
|
||||||
|
|
||||||
filters = {
|
filters = {
|
||||||
|
"is_cancelled": 0,
|
||||||
"company": report_filters.company,
|
"company": report_filters.company,
|
||||||
"posting_date": ("<=", report_filters.as_on_date)
|
"posting_date": ("<=", report_filters.as_on_date)
|
||||||
}
|
}
|
||||||
@ -34,7 +35,7 @@ def get_data(report_filters):
|
|||||||
key = (d.voucher_type, d.voucher_no)
|
key = (d.voucher_type, d.voucher_no)
|
||||||
gl_data = voucher_wise_gl_data.get(key) or {}
|
gl_data = voucher_wise_gl_data.get(key) or {}
|
||||||
d.account_value = gl_data.get("account_value", 0)
|
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 - d.account_value)
|
||||||
if abs(d.difference_value) > 0.1:
|
if abs(d.difference_value) > 0.1:
|
||||||
data.append(d)
|
data.append(d)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user