fix: handle None delivery_date when sorting MPS data (backport #55028) (#55059)

Co-authored-by: Nabin Hait <nabinhait@gmail.com>
fix: handle None delivery_date when sorting MPS data (#55028)
This commit is contained in:
mergify[bot]
2026-05-20 00:37:14 +05:30
committed by GitHub
parent 68a5eae3ff
commit f272d32f80

View File

@@ -292,7 +292,7 @@ class MasterProductionSchedule(Document):
return item_wise_data
def add_mps_data(self, data):
data = frappe._dict(sorted(data.items(), key=lambda x: x[0][1]))
data = frappe._dict(sorted(data.items(), key=lambda x: x[0][1] or ""))
for key in data:
row = data[key]