mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-01 20:48:27 +00:00
Merge pull request #44856 from diptanilsaha/fix-pos-invoice-advanced-received
fix: fetch advance payment entries on pos invoice
This commit is contained in:
@@ -1233,7 +1233,7 @@ class AccountsController(TransactionBase):
|
||||
party_account = []
|
||||
default_advance_account = None
|
||||
|
||||
if self.doctype == "Sales Invoice":
|
||||
if self.doctype in ["Sales Invoice", "POS Invoice"]:
|
||||
party_type = "Customer"
|
||||
party = self.customer
|
||||
amount_field = "credit_in_account_currency"
|
||||
|
||||
Reference in New Issue
Block a user