From 68a23730f3fde5d8f306d77c3db5e373b1c6e937 Mon Sep 17 00:00:00 2001 From: ruthra kumar Date: Tue, 20 Feb 2024 21:49:28 +0530 Subject: [PATCH] fix: Cr/Dr notes with POS Payments --- erpnext/accounts/doctype/sales_invoice/sales_invoice.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/erpnext/accounts/doctype/sales_invoice/sales_invoice.py b/erpnext/accounts/doctype/sales_invoice/sales_invoice.py index abc0694a63..25477ccfcb 100644 --- a/erpnext/accounts/doctype/sales_invoice/sales_invoice.py +++ b/erpnext/accounts/doctype/sales_invoice/sales_invoice.py @@ -1478,9 +1478,7 @@ class SalesInvoice(SellingController): "credit_in_account_currency": payment_mode.base_amount if self.party_account_currency == self.company_currency else payment_mode.amount, - "against_voucher": self.return_against - if cint(self.is_return) and self.return_against - else self.name, + "against_voucher": self.name, "against_voucher_type": self.doctype, "cost_center": self.cost_center, },