mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-29 18:04:46 +00:00
fix(PE): Set account types in get_payment_entry (#47246)
This commit is contained in:
@@ -3025,6 +3025,8 @@ def get_payment_entry(
|
|||||||
party_account_currency if payment_type == "Receive" else bank.account_currency
|
party_account_currency if payment_type == "Receive" else bank.account_currency
|
||||||
)
|
)
|
||||||
pe.paid_to_account_currency = party_account_currency if payment_type == "Pay" else bank.account_currency
|
pe.paid_to_account_currency = party_account_currency if payment_type == "Pay" else bank.account_currency
|
||||||
|
pe.paid_from_account_type = frappe.db.get_value("Account", pe.paid_from, "account_type")
|
||||||
|
pe.paid_to_account_type = frappe.db.get_value("Account", pe.paid_to, "account_type")
|
||||||
pe.paid_amount = paid_amount
|
pe.paid_amount = paid_amount
|
||||||
pe.received_amount = received_amount
|
pe.received_amount = received_amount
|
||||||
pe.letter_head = doc.get("letter_head")
|
pe.letter_head = doc.get("letter_head")
|
||||||
|
|||||||
Reference in New Issue
Block a user