Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Commit

Permalink
fix(subscription/notify_admin): check project.estimate before calcual…
Browse files Browse the repository at this point in the history
…ting total_hours
  • Loading branch information
velrest committed Dec 17, 2021
1 parent c3a8c6c commit 63273d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion timed/subscription/notify_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ def prepare_and_send_email(project, order_duration):
minutes=duration.minute,
seconds=duration.second,
)
hours_total = hours_added + project.estimated_time
estimated_time = 0 if project.estimated_time is None else project.estimated_time
hours_total = hours_added + estimated_time

subject = f"Customer Center Credits/Reports: {customer.name} has ordered {hours_added} hours."

Expand Down

0 comments on commit 63273d2

Please sign in to comment.