From ff362843cb037eef7c6728fb876d0b6d6fba3793 Mon Sep 17 00:00:00 2001 From: ravibharathi656 Date: Tue, 24 Jun 2025 18:48:22 +0530 Subject: [PATCH] fix: use gain_loss_posting_date instead of today (cherry picked from commit 0585bc5aef8539e86b7faf46e3965939f30c732c) --- .../doctype/payment_reconciliation/payment_reconciliation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/accounts/doctype/payment_reconciliation/payment_reconciliation.py b/erpnext/accounts/doctype/payment_reconciliation/payment_reconciliation.py index 72aa4905900..27001e9ab14 100644 --- a/erpnext/accounts/doctype/payment_reconciliation/payment_reconciliation.py +++ b/erpnext/accounts/doctype/payment_reconciliation/payment_reconciliation.py @@ -826,7 +826,7 @@ def reconcile_dr_cr_note(dr_cr_notes, company, active_dimensions=None): create_gain_loss_journal( company, - today(), + inv.difference_posting_date, inv.party_type, inv.party, inv.account,