mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-22 02:40:02 +00:00
Merge pull request #56370 from mihir-kandoi/pg-report-bool-and-fieldcase
fix: two Postgres hard errors — Check-vs-bool and capital-cased fieldname
This commit is contained in:
@@ -62,7 +62,7 @@ def fetch_item_prices(
|
||||
or_conditions = []
|
||||
if items:
|
||||
and_conditions.append(ip.item_code.isin([x.item_code for x in items]))
|
||||
and_conditions.append(ip.selling.eq(True))
|
||||
and_conditions.append(ip.selling.eq(1))
|
||||
|
||||
or_conditions.append(ip.customer.isnull())
|
||||
or_conditions.append(ip.price_list.isnull())
|
||||
|
||||
@@ -427,7 +427,7 @@ def is_holiday(employee, date=None, raise_exception=True, only_non_weekly=False,
|
||||
def deactivate_sales_person(status: str, employee: str):
|
||||
frappe.has_permission("Employee", doc=employee, ptype="write", throw=True)
|
||||
if status == "Left":
|
||||
sales_person = frappe.db.get_value("Sales Person", {"Employee": employee})
|
||||
sales_person = frappe.db.get_value("Sales Person", {"employee": employee})
|
||||
if sales_person:
|
||||
frappe.db.set_value("Sales Person", sales_person, "enabled", 0)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user