Skip to content

Commit

Permalink
Merge pull request #45397 from frappe/mergify/bp/version-15/pr-45395
Browse files Browse the repository at this point in the history
fix: JobCardTimeLog' object has no attribute 'remaining_time_in_mins' (backport #45394) (backport #45395)
  • Loading branch information
rohitwaghchaure authored Jan 23, 2025
2 parents 9fc1c35 + 4542a75 commit 94aefcc
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 94aefcc

Please sign in to comment.