Skip to content

Commit

Permalink
fix: JobCardTimeLog' object has no attribute 'remaining_time_in_mins'
Browse files Browse the repository at this point in the history
(cherry picked from commit 41dda35)
(cherry picked from commit ef15429)
  • Loading branch information
rohitwaghchaure authored and mergify[bot] committed Jan 23, 2025
1 parent 89f7834 commit 4542a75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions erpnext/manufacturing/doctype/job_card/job_card.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,8 @@ def has_overlap(self, production_capacity, time_logs):
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)
Expand Down

0 comments on commit 4542a75

Please sign in to comment.