|
@ -651,6 +651,7 @@ def calculate_total(data): |
|
|
variant['StepCount'] = step_count |
|
|
variant['StepCount'] = step_count |
|
|
return data |
|
|
return data |
|
|
|
|
|
|
|
|
|
|
|
@frappe.whitelist() |
|
|
def update_publish_values(doc_name,field,value): |
|
|
def update_publish_values(doc_name,field,value): |
|
|
frappe.db.sql(f''' |
|
|
frappe.db.sql(f''' |
|
|
update `tabPublish` set {field} = {value} where name = '{doc_name}';''') |
|
|
update `tabPublish` set {field} = {value} where name = '{doc_name}';''') |
|
|