mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-22 11:44:11 +00:00
fix: JobCardTimeLog' object has no attribute 'remaining_time_in_mins'
(cherry picked from commit 41dda35db7)
This commit is contained in:
committed by
Mergify
parent
b9b4f6316d
commit
ef15429d98
@@ -309,8 +309,8 @@ class JobCard(Document):
|
|||||||
return overlap
|
return overlap
|
||||||
|
|
||||||
def get_time_logs(self, args, doctype, open_job_cards=None):
|
def get_time_logs(self, args, doctype, open_job_cards=None):
|
||||||
if get_datetime(args.from_time) >= get_datetime(args.to_time):
|
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.remaining_time_in_mins)
|
args.to_time = add_to_date(args.from_time, minutes=args.get("remaining_time_in_mins"))
|
||||||
|
|
||||||
jc = frappe.qb.DocType("Job Card")
|
jc = frappe.qb.DocType("Job Card")
|
||||||
jctl = frappe.qb.DocType(doctype)
|
jctl = frappe.qb.DocType(doctype)
|
||||||
|
|||||||
Reference in New Issue
Block a user