[fix] don't fetch template item in get items of stock reconciliation
This commit is contained in:
parent
86102064a5
commit
69f2cc8d24
@ -243,7 +243,7 @@ class StockReconciliation(StockController):
|
|||||||
@frappe.whitelist()
|
@frappe.whitelist()
|
||||||
def get_items(warehouse, posting_date, posting_time):
|
def get_items(warehouse, posting_date, posting_time):
|
||||||
items = frappe.get_list("Item", fields=["name"], filters=
|
items = frappe.get_list("Item", fields=["name"], filters=
|
||||||
{"is_stock_item": 1, "has_serial_no": 0, "has_batch_no": 0})
|
{"is_stock_item": 1, "has_serial_no": 0, "has_batch_no": 0, "has_variants": 0})
|
||||||
for item in items:
|
for item in items:
|
||||||
item.item_code = item.name
|
item.item_code = item.name
|
||||||
item.warehouse = warehouse
|
item.warehouse = warehouse
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user