From eb0df50f1bdcd1aba41ef2eae7d4dcfc4b470958 Mon Sep 17 00:00:00 2001 From: ruthra kumar Date: Mon, 24 Feb 2025 21:58:59 +0530 Subject: [PATCH] refactor: handle stocked items (cherry picked from commit 7ff3977394c8f2935601a3a753778bd6dd5a5592) --- erpnext/accounts/doctype/purchase_invoice/purchase_invoice.py | 1 + 1 file changed, 1 insertion(+) diff --git a/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.py b/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.py index 87112ea7c92..b1d6ec15e3c 100644 --- a/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.py +++ b/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.py @@ -1049,6 +1049,7 @@ class PurchaseInvoice(BuyingController): "account": item.expense_account, "against": self.supplier, "debit": warehouse_debit_amount, + "debit_in_transaction_currency": item.net_amount, "remarks": self.get("remarks") or _("Accounting Entry for Stock"), "cost_center": item.cost_center, "project": item.project or self.project,