fix: not able to add employee in the job card

This commit is contained in:
Rohit Waghchaure 2021-07-27 18:43:20 +05:30
parent 5448aa25e7
commit af58ac9e10

View File

@ -192,11 +192,11 @@ class JobCard(Document):
"completed_qty": args.get("completed_qty") or 0.0 "completed_qty": args.get("completed_qty") or 0.0
}) })
elif args.get("start_time"): elif args.get("start_time"):
new_args = { new_args = frappe._dict({
"from_time": get_datetime(args.get("start_time")), "from_time": get_datetime(args.get("start_time")),
"operation": args.get("sub_operation"), "operation": args.get("sub_operation"),
"completed_qty": 0.0 "completed_qty": 0.0
} })
if employees: if employees:
for name in employees: for name in employees: