mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-19 01:25:07 +00:00
chore: resolve conflict
This commit is contained in:
@@ -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]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user