mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-17 00:25:01 +00:00
fix: Project Status should be Open again if percent_complete is not 100
This commit is contained in:
@@ -262,8 +262,7 @@ class Project(Document):
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user