mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 07:54:46 +00:00
[fix] Update project cost for draft project only
This commit is contained in:
@@ -5,7 +5,7 @@ from __future__ import unicode_literals
|
|||||||
import frappe
|
import frappe
|
||||||
|
|
||||||
def execute():
|
def execute():
|
||||||
for p in frappe.get_all("Project"):
|
for p in frappe.get_all("Project", filters={"docstatus": 0}):
|
||||||
project = frappe.get_doc("Project", p.name)
|
project = frappe.get_doc("Project", p.name)
|
||||||
project.update_purchase_costing()
|
project.update_purchase_costing()
|
||||||
project.save()
|
project.save()
|
||||||
Reference in New Issue
Block a user