fix(PE): Set account types in get_payment_entry (#47246)

This commit is contained in:
Corentin Forler
2025-04-25 15:30:53 +02:00
committed by GitHub
parent c85edc3346
commit aa18753f57

View File

@@ -3025,6 +3025,8 @@ def get_payment_entry(
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_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.received_amount = received_amount
pe.letter_head = doc.get("letter_head")