Skip to content

Commit

Permalink
Merge pull request #42204 from DaizyModi/fix-project-status
Browse files Browse the repository at this point in the history
fix: Reopen Project if Completion Percentage is Below 100%
  • Loading branch information
vorasmit committed Jul 10, 2024
2 parents d3520a6 + c52fdff commit 3ef7e6c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions erpnext/projects/doctype/project/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,7 @@ def update_percent_complete(self):
if self.status == "Cancelled":
return

if self.percent_complete == 100:
self.status = "Completed"
self.status = "Completed" if self.percent_complete == 100 else "Open"

def update_costing(self):
from frappe.query_builder.functions import Max, Min, Sum
Expand Down

0 comments on commit 3ef7e6c

Please sign in to comment.