fix:better error message when sales person is none

This commit is contained in:
0Pranav 2019-10-30 10:48:13 +05:30
parent abbc08cb48
commit d2d0100c9a

View File

@ -150,7 +150,7 @@ class MaintenanceSchedule(TransactionBase):
elif not d.no_of_visits:
throw(_("Please mention no of visits required"))
elif not d.sales_person:
throw(_("Please select Incharge Person's name"))
throw(_("Please select Incharge Person's name for item: {0}".format(d.item_name)))
if getdate(d.start_date) >= getdate(d.end_date):
throw(_("Start date should be less than end date for Item {0}").format(d.item_code))