From f189be501b4b0570208a66666cb48132c029fcaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CKhushi?= <“khushirawat.sophia@gamil.com”> Date: Wed, 27 Mar 2024 00:08:39 +0530 Subject: [PATCH 1/3] fix: default accounting dimension in journal entry child table --- erpnext/public/js/utils/dimension_tree_filter.js | 1 + 1 file changed, 1 insertion(+) diff --git a/erpnext/public/js/utils/dimension_tree_filter.js b/erpnext/public/js/utils/dimension_tree_filter.js index 36c0f1b51ae..a97165686ad 100644 --- a/erpnext/public/js/utils/dimension_tree_filter.js +++ b/erpnext/public/js/utils/dimension_tree_filter.js @@ -22,6 +22,7 @@ erpnext.accounts.dimensions = { }); me.default_dimensions = r.message[1]; me.setup_filters(frm, doctype); + me.update_dimension(frm, doctype); }, }); }, From 549ea8a63cb0272bd565f01a158e2f929aa072ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CKhushi?= <“khushirawat.sophia@gamil.com”> Date: Tue, 9 Apr 2024 17:06:56 +0530 Subject: [PATCH 2/3] fix: indicate correct currency code for the payment --- erpnext/accounts/doctype/payment_entry/payment_entry.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/erpnext/accounts/doctype/payment_entry/payment_entry.py b/erpnext/accounts/doctype/payment_entry/payment_entry.py index 8a5d2c6c690..5a7771b72d0 100644 --- a/erpnext/accounts/doctype/payment_entry/payment_entry.py +++ b/erpnext/accounts/doctype/payment_entry/payment_entry.py @@ -1107,9 +1107,11 @@ class PaymentEntry(AccountsController): remarks = [ _("Amount {0} {1} {2} {3}").format( - _(self.party_account_currency), + _(self.paid_to_account_currency) + if self.payment_type == "Receive" + else _(self.paid_from_account_currency), self.paid_amount if self.payment_type == "Receive" else self.received_amount, - _("received from") if self.payment_type == "Receive" else _("to"), + _("received from") if self.payment_type == "Receive" else _("paid to"), self.party, ) ] From f3ec4f19642bb45551d4d9d3b27a56175f13c6d9 Mon Sep 17 00:00:00 2001 From: Deepesh Garg Date: Wed, 10 Apr 2024 22:06:03 +0530 Subject: [PATCH 3/3] chore: remove unwanted changes --- erpnext/public/js/utils/dimension_tree_filter.js | 1 - 1 file changed, 1 deletion(-) diff --git a/erpnext/public/js/utils/dimension_tree_filter.js b/erpnext/public/js/utils/dimension_tree_filter.js index a97165686ad..36c0f1b51ae 100644 --- a/erpnext/public/js/utils/dimension_tree_filter.js +++ b/erpnext/public/js/utils/dimension_tree_filter.js @@ -22,7 +22,6 @@ erpnext.accounts.dimensions = { }); me.default_dimensions = r.message[1]; me.setup_filters(frm, doctype); - me.update_dimension(frm, doctype); }, }); },