Skip to content

Commit

Permalink
fix: Project Status should be Open again if percent_complete is not…
Browse files Browse the repository at this point in the history
… 100
  • Loading branch information
DaizyModi committed Jul 6, 2024
1 parent 4cea34c commit c52fdff
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 c52fdff

Please sign in to comment.