fix: conflicts

This commit is contained in:
rohitwaghchaure
2022-12-16 11:41:22 +05:30
committed by GitHub
parent c3fca3cfcb
commit 086e74791b

View File

@@ -71,11 +71,11 @@ def get_columns():
def get_item_info(filters):
from erpnext.stock.report.stock_ledger.stock_ledger import get_item_group_condition
<<<<<<< HEAD
conditions = [get_item_group_condition(filters.get("item_group"))]
if filters.get("brand"):
conditions.append("item.brand=%(brand)s")
conditions.append("is_stock_item = 1")
conditions.append("disabled = 0")
return frappe.db.sql(
"""select name, item_name, description, brand, item_group,
@@ -84,21 +84,6 @@ def get_item_info(filters):
),
filters,
as_dict=1,
=======
item = frappe.qb.DocType("Item")
query = (
frappe.qb.from_(item)
.select(
item.name,
item.item_name,
item.description,
item.brand,
item.item_group,
item.safety_stock,
item.lead_time_days,
)
.where((item.is_stock_item == 1) & (item.disabled == 0))
>>>>>>> ae31ff1c48 (fix: disabled items showing in the report 'Itemwise Recommended Reorder Level)
)