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

Commit

Permalink
fix: update report billed flag to be like project billed flag
Browse files Browse the repository at this point in the history
  • Loading branch information
MitanOmar committed Feb 29, 2024
1 parent 5d8cef4 commit eba561e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions timed/tracking/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,7 @@ def bulk(self, request):
if "task" in fields:
# unreject report if task has changed
fields["rejected"] = False
if fields["task"].project.billed:
fields["billed"] = fields["task"].project.billed
fields["billed"] = True if fields["task"].project.billed else False

if fields:
# send notification if report was rejected
Expand Down

0 comments on commit eba561e

Please sign in to comment.