mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-29 09:01:14 +02:00
fix: Project Status should be Open again if percent_complete is not 100
(cherry picked from commit c52fdffdaf)
This commit is contained in:
@@ -262,8 +262,7 @@ class Project(Document):
|
|||||||
if self.status == "Cancelled":
|
if self.status == "Cancelled":
|
||||||
return
|
return
|
||||||
|
|
||||||
if self.percent_complete == 100:
|
self.status = "Completed" if self.percent_complete == 100 else "Open"
|
||||||
self.status = "Completed"
|
|
||||||
|
|
||||||
def update_costing(self):
|
def update_costing(self):
|
||||||
from frappe.query_builder.functions import Max, Min, Sum
|
from frappe.query_builder.functions import Max, Min, Sum
|
||||||
|
|||||||
Reference in New Issue
Block a user