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

This commit is contained in:
Nabin Hait
2026-05-19 21:08:47 +05:30
committed by GitHub
parent 6114293b92
commit 55bb6e0357

View File

@@ -289,7 +289,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]