mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-16 13:32:13 +00:00
fix: fetch advance payment entries on pos invoice
(cherry picked from commit a7078e5702)
Co-authored-by: Diptanil Saha <diptanilsaha@Diptanils-MacBook-Air.local>
This commit is contained in:
@@ -1226,7 +1226,7 @@ class AccountsController(TransactionBase):
|
|||||||
party_account = []
|
party_account = []
|
||||||
default_advance_account = None
|
default_advance_account = None
|
||||||
|
|
||||||
if self.doctype == "Sales Invoice":
|
if self.doctype in ["Sales Invoice", "POS Invoice"]:
|
||||||
party_type = "Customer"
|
party_type = "Customer"
|
||||||
party = self.customer
|
party = self.customer
|
||||||
amount_field = "credit_in_account_currency"
|
amount_field = "credit_in_account_currency"
|
||||||
|
|||||||
Reference in New Issue
Block a user