feat: Auto allocate advance payments only against orders (#34727)
* feat: Auto allocate advance payments only against orders (#34727)
feat: Auto allocate advance payments only againt orders
(cherry picked from commit fd3fb64aa3)
# Conflicts:
# erpnext/accounts/doctype/sales_invoice/sales_invoice.json
* chore: Resolve conflicts
---------
Co-authored-by: Deepesh Garg <deepeshgarg6@gmail.com>
This commit is contained in:
@@ -845,7 +845,9 @@ class AccountsController(TransactionBase):
|
||||
def set_advances(self):
|
||||
"""Returns list of advances against Account, Party, Reference"""
|
||||
|
||||
res = self.get_advance_entries()
|
||||
res = self.get_advance_entries(
|
||||
include_unallocated=not cint(self.get("only_include_allocated_payments"))
|
||||
)
|
||||
|
||||
self.set("advances", [])
|
||||
advance_allocated = 0
|
||||
|
||||
Reference in New Issue
Block a user