From 80642edf4f5021ae7a56fef08ff9b72e0e18ca15 Mon Sep 17 00:00:00 2001 From: Navin S R Date: Fri, 28 Nov 2025 12:54:27 +0530 Subject: [PATCH] fix: use asset in against_voucher while posting gl entries for capitalized asset repairs (cherry picked from commit a7e43eddad96f2c7b01614d6c536342662041dd7) --- erpnext/assets/doctype/asset_repair/asset_repair.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/erpnext/assets/doctype/asset_repair/asset_repair.py b/erpnext/assets/doctype/asset_repair/asset_repair.py index 093af05fd2f..6f8d729bf5d 100644 --- a/erpnext/assets/doctype/asset_repair/asset_repair.py +++ b/erpnext/assets/doctype/asset_repair/asset_repair.py @@ -315,7 +315,8 @@ class AssetRepair(AccountsController): "voucher_no": self.name, "cost_center": self.cost_center, "posting_date": self.completion_date, - "against_voucher_type": "Purchase Invoice", + "against_voucher_type": "Asset", + "against_voucher": self.asset, "company": self.company, }, item=self,