refactor: rewrite raw sql queries with frappe.qb and database API

This commit is contained in:
Rucha Mahabal
2022-07-07 19:00:19 +05:30
parent 64075cbebc
commit 108cce2785
6 changed files with 26 additions and 34 deletions

View File

@@ -6,6 +6,7 @@ from frappe import _
from frappe.utils import cstr, getdate
# nosemgrep
def set_default_settings(args):
# enable default currency
frappe.db.set_value("Currency", args.get("currency"), "enabled", 1)