mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-07 07:02:54 +00:00
fix: Maintenance Schedule child table status for legacy data (#27554)
* fix: Maintenance Schedule child table status for legacy data
* fix: Include legacy draft schedules in patch
* fix: Pre-commit formatting
(cherry picked from commit cc143bca0d)
# Conflicts:
# erpnext/patches/v13_0/set_status_in_maintenance_schedule_table.py
This commit is contained in:
@@ -2,6 +2,7 @@ import frappe
|
|||||||
|
|
||||||
|
|
||||||
def execute():
|
def execute():
|
||||||
|
<<<<<<< HEAD
|
||||||
frappe.reload_doc("maintenance", "doctype", "Maintenance Schedule Detail")
|
frappe.reload_doc("maintenance", "doctype", "Maintenance Schedule Detail")
|
||||||
frappe.db.sql(
|
frappe.db.sql(
|
||||||
"""
|
"""
|
||||||
@@ -10,3 +11,10 @@ def execute():
|
|||||||
WHERE docstatus < 2
|
WHERE docstatus < 2
|
||||||
"""
|
"""
|
||||||
)
|
)
|
||||||
|
=======
|
||||||
|
frappe.db.sql("""
|
||||||
|
UPDATE `tabMaintenance Schedule Detail`
|
||||||
|
SET completion_status = 'Pending'
|
||||||
|
WHERE docstatus < 2
|
||||||
|
""")
|
||||||
|
>>>>>>> cc143bca0d (fix: Maintenance Schedule child table status for legacy data (#27554))
|
||||||
|
|||||||
Reference in New Issue
Block a user