chore: linting issues

(cherry picked from commit 1657337887)
This commit is contained in:
Gursheen Anand
2023-11-22 16:45:14 +05:30
committed by Mergify
parent 445e9c9041
commit d7d5317b0e

View File

@@ -344,11 +344,12 @@ class SellingController(StockController):
return il
def has_product_bundle(self, item_code):
return frappe.db.sql(
"""select name from `tabProduct Bundle`
where new_item_code=%s and disabled=0""",
item_code,
)
product_bundle = frappe.qb.DocType("Product Bundle")
return (
frappe.qb.from_(product_bundle)
.select(product_bundle.name)
.where((product_bundle.new_item_code == item_code) & (product_bundle.disabled == 0))
).run()
def get_already_delivered_qty(self, current_docname, so, so_detail):
delivered_via_dn = frappe.db.sql(