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

This commit is contained in:
ruthra kumar
2023-09-03 07:21:09 +05:30
parent 79fa562004
commit d6a3b9a5c7
5 changed files with 32 additions and 9 deletions

View File

@@ -1111,6 +1111,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(
@@ -1189,6 +1190,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(