mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-07 23:31:20 +00:00
refactor(buying): replace raw sql with orm in supplier scorecard (#54771)
Use frappe.get_all instead of frappe.db.sql to fetch standings list.
This commit is contained in:
@@ -40,14 +40,7 @@ def get_scoring_standing(standing_name: str):
|
||||
|
||||
@frappe.whitelist()
|
||||
def get_standings_list():
|
||||
standings = frappe.db.sql(
|
||||
"""
|
||||
SELECT
|
||||
scs.name
|
||||
FROM
|
||||
`tabSupplier Scorecard Standing` scs""",
|
||||
{},
|
||||
as_dict=1,
|
||||
)
|
||||
"""Returns a list of all Supplier Scorecard Standings."""
|
||||
standings = frappe.get_all("Supplier Scorecard Standing", fields=["name"])
|
||||
|
||||
return standings
|
||||
|
||||
Reference in New Issue
Block a user