mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 16:04:46 +00:00
fix: LCV from PR order mismatch
This commit is contained in:
@@ -359,6 +359,7 @@ def get_pr_items(purchase_receipt):
|
|||||||
(pr_item.parent == purchase_receipt.receipt_document)
|
(pr_item.parent == purchase_receipt.receipt_document)
|
||||||
& ((item.is_stock_item == 1) | (item.is_fixed_asset == 1))
|
& ((item.is_stock_item == 1) | (item.is_fixed_asset == 1))
|
||||||
)
|
)
|
||||||
|
.orderby(pr_item.idx)
|
||||||
)
|
)
|
||||||
|
|
||||||
if purchase_receipt.receipt_document_type == "Subcontracting Receipt":
|
if purchase_receipt.receipt_document_type == "Subcontracting Receipt":
|
||||||
|
|||||||
Reference in New Issue
Block a user