fix: JobCardTimeLog' object has no attribute 'remaining_time_in_mins'
(cherry picked from commit41dda35db7) (cherry picked from commitef15429d98)
This commit is contained in:
committed by
Mergify
parent
89f7834517
commit
4542a759ae
@@ -309,8 +309,8 @@ class JobCard(Document):
|
||||
return overlap
|
||||
|
||||
def get_time_logs(self, args, doctype, open_job_cards=None):
|
||||
if get_datetime(args.from_time) >= get_datetime(args.to_time):
|
||||
args.to_time = add_to_date(args.from_time, minutes=args.remaining_time_in_mins)
|
||||
if args.get("remaining_time_in_mins") and get_datetime(args.from_time) >= get_datetime(args.to_time):
|
||||
args.to_time = add_to_date(args.from_time, minutes=args.get("remaining_time_in_mins"))
|
||||
|
||||
jc = frappe.qb.DocType("Job Card")
|
||||
jctl = frappe.qb.DocType(doctype)
|
||||
|
||||
Reference in New Issue
Block a user