mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-21 14:09:19 +00:00
fix: handle None delivery_date when sorting MPS data (#55028)
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user