refactor: use payment's CC for gain/loss if company default is unset

(cherry picked from commit d6a3b9a5c7)

# Conflicts:
#	erpnext/accounts/doctype/payment_reconciliation/payment_reconciliation.py
This commit is contained in:
ruthra kumar
2023-09-03 07:21:09 +05:30
committed by Mergify
parent 7fd96d0116
commit d24c8b1bbc
5 changed files with 40 additions and 7 deletions

View File

@@ -1087,6 +1087,7 @@ class AccountsController(TransactionBase):
self.doctype,
self.name,
arg.get("referenced_row"),
arg.get("cost_center"),
)
frappe.msgprint(
_("Exchange Gain/Loss amount has been booked through {0}").format(
@@ -1165,6 +1166,7 @@ class AccountsController(TransactionBase):
self.doctype,
self.name,
d.idx,
self.cost_center,
)
frappe.msgprint(
_("Exchange Gain/Loss amount has been booked through {0}").format(