fix: incorrect serial no valuation report showing cancelled entries (#29172)
This commit is contained in:
parent
80dce1ab73
commit
24fc487dd8
@ -73,7 +73,7 @@ def get_stock_ledger_entries(report_filters):
|
||||
fields = ['name', 'voucher_type', 'voucher_no', 'item_code', 'serial_no as serial_nos', 'actual_qty',
|
||||
'posting_date', 'posting_time', 'company', 'warehouse', '(stock_value_difference / actual_qty) as valuation_rate']
|
||||
|
||||
filters = {'serial_no': ("is", "set")}
|
||||
filters = {'serial_no': ("is", "set"), "is_cancelled": 0}
|
||||
|
||||
if report_filters.get('item_code'):
|
||||
filters['item_code'] = report_filters.get('item_code')
|
||||
|
Loading…
Reference in New Issue
Block a user