mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-20 18:54:55 +00:00
@@ -327,9 +327,9 @@ class Project(Document):
|
|||||||
"""select sum(base_net_amount)
|
"""select sum(base_net_amount)
|
||||||
from `tabSales Invoice Item` si_item
|
from `tabSales Invoice Item` si_item
|
||||||
join `tabSales Invoice` si on si_item.parent = si.name
|
join `tabSales Invoice` si on si_item.parent = si.name
|
||||||
where (si_item.project = %s or (si_item.project is null and si.project = %s))
|
where (si_item.project = %(name)s or (si_item.project is null and si.project = %(name)s))
|
||||||
and si.docstatus = 1""",
|
and si.docstatus = 1""",
|
||||||
self.name,
|
{"name": self.name},
|
||||||
)
|
)
|
||||||
|
|
||||||
self.total_billed_amount = total_billed_amount and total_billed_amount[0][0] or 0
|
self.total_billed_amount = total_billed_amount and total_billed_amount[0][0] or 0
|
||||||
|
|||||||
Reference in New Issue
Block a user