From 32a45cf63560b1c2cfe7099ec2dc3cd711640708 Mon Sep 17 00:00:00 2001 From: Mihir Kandoi Date: Thu, 3 Jul 2025 12:48:39 +0530 Subject: [PATCH] fix: LCV from PR order mismatch --- erpnext/stock/doctype/landed_cost_voucher/landed_cost_voucher.py | 1 + 1 file changed, 1 insertion(+) diff --git a/erpnext/stock/doctype/landed_cost_voucher/landed_cost_voucher.py b/erpnext/stock/doctype/landed_cost_voucher/landed_cost_voucher.py index 16bb2c2bcb7..345ecd49176 100644 --- a/erpnext/stock/doctype/landed_cost_voucher/landed_cost_voucher.py +++ b/erpnext/stock/doctype/landed_cost_voucher/landed_cost_voucher.py @@ -359,6 +359,7 @@ def get_pr_items(purchase_receipt): (pr_item.parent == purchase_receipt.receipt_document) & ((item.is_stock_item == 1) | (item.is_fixed_asset == 1)) ) + .orderby(pr_item.idx) ) if purchase_receipt.receipt_document_type == "Subcontracting Receipt":