mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-21 14:09:19 +00:00
Co-authored-by: Nabin Hait <nabinhait@gmail.com> fix: handle None delivery_date when sorting MPS data (#55028)
This commit is contained in:
@@ -292,7 +292,7 @@ class MasterProductionSchedule(Document):
|
|||||||
return item_wise_data
|
return item_wise_data
|
||||||
|
|
||||||
def add_mps_data(self, 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:
|
for key in data:
|
||||||
row = data[key]
|
row = data[key]
|
||||||
|
|||||||
Reference in New Issue
Block a user