chore: resolve conflict

This commit is contained in:
ruthra kumar
2024-11-01 14:10:45 +05:30
parent d0a655d5ae
commit ba09ddcc3a

View File

@@ -1948,14 +1948,8 @@ class AccountsController(TransactionBase):
return stock_items
<<<<<<< HEAD
def set_total_advance_paid(self):
ple = frappe.qb.DocType("Payment Ledger Entry")
party = self.customer if self.doctype == "Sales Order" else self.supplier
=======
def calculate_total_advance_from_ledger(self):
adv = frappe.qb.DocType("Advance Payment Ledger Entry")
>>>>>>> 2b2360bf7b (refactor: calculate advance from advance ledger)
advance = (
frappe.qb.from_(adv)
.select(adv.currency.as_("account_currency"), Abs(Sum(adv.amount)).as_("amount"))
@@ -1968,13 +1962,10 @@ class AccountsController(TransactionBase):
)
return advance
<<<<<<< HEAD
=======
def set_total_advance_paid(self):
advance = self.calculate_total_advance_from_ledger()
advance_paid, order_total = None, None
>>>>>>> 2b2360bf7b (refactor: calculate advance from advance ledger)
if advance:
advance = advance[0]