diff --git a/erpnext/controllers/accounts_controller.py b/erpnext/controllers/accounts_controller.py index 2c96d4ac3980445289bc81ce952c46fc8a4a0b04..9063962bc78fea7745b20d1208e1925f7938f00c 100644 --- a/erpnext/controllers/accounts_controller.py +++ b/erpnext/controllers/accounts_controller.py @@ -354,16 +354,14 @@ class AccountsController(TransactionBase): self.doctype in ["Sales Invoice", "Purchase Invoice"] and self.is_return and self.return_against ): cr_dr_account_field = "debit_to" if self.doctype == "Sales Invoice" else "credit_to" - cr_dr_account_label = self.meta.get_label(cr_dr_account_field) - cr_dr_account = self.get(cr_dr_account_field) original_account = frappe.get_value(self.doctype, self.return_against, cr_dr_account_field) - if original_account != cr_dr_account: + if original_account != self.get(cr_dr_account_field): frappe.throw( _( "Please set {0} to {1}, the same account that was used in the original invoice {2}." ).format( - frappe.bold(_(cr_dr_account_label, context=self.doctype)), - frappe.bold(cr_dr_account), + frappe.bold(_(self.meta.get_label(cr_dr_account_field), context=self.doctype)), + frappe.bold(original_account), frappe.bold(self.return_against), ) ) diff --git a/erpnext/locale/tr.po b/erpnext/locale/tr.po index 05d5911427a6a06dfe8d409db863703b3b1f0585..88966424f5f087aa3e39fcfc1afa3e4772a3a432 100644 --- a/erpnext/locale/tr.po +++ b/erpnext/locale/tr.po @@ -42529,7 +42529,7 @@ msgstr "Red Deposu" #: erpnext/public/js/utils/serial_no_batch_selector.js:637 msgid "Rejected Warehouse and Accepted Warehouse cannot be same." -msgstr "" +msgstr "Red Deposu ile Kabul Deposu aynı olamaz." #: erpnext/buying/doctype/purchase_order/purchase_order_dashboard.py:19 #: erpnext/buying/doctype/supplier_quotation/supplier_quotation_dashboard.py:14