fix: only include submitted docs for internal received quantity validation (#46262)

This commit is contained in:
Lakshit Jain
2025-03-05 12:27:47 +05:30
committed by GitHub
parent 0f6062efee
commit 88fcdbb81e

View File

@@ -1237,7 +1237,7 @@ class StockController(AccountsController):
child_tab.item_code,
child_tab.qty,
)
.where(parent_tab.docstatus < 2)
.where(parent_tab.docstatus == 1)
)
if self.doctype == "Purchase Invoice":