chore: fix conflicts

This commit is contained in:
rohitwaghchaure
2024-12-03 15:06:16 +05:30
committed by GitHub
parent 5533592b2b
commit 86ff3e0c10

View File

@@ -1556,17 +1556,12 @@ class SalesInvoice(SellingController):
)
def update_project(self):
<<<<<<< HEAD
if self.project:
project = frappe.get_doc("Project", self.project)
=======
unique_projects = list(set([d.project for d in self.get("items") if d.project]))
if self.project and self.project not in unique_projects:
unique_projects.append(self.project)
for p in unique_projects:
project = frappe.get_doc("Project", p)
>>>>>>> 7de9c14a2c (fix: incorrect Gross Margin on project (#44461))
project.update_billed_amount()
project.db_update()