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

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

(cherry picked from commit 88fcdbb81e)

Co-authored-by: Lakshit Jain <108322669+ljain112@users.noreply.github.com>
This commit is contained in:
mergify[bot]
2025-03-05 13:17:17 +05:30
committed by GitHub
parent 557a05b0ad
commit 90b5f0b7bf

View File

@@ -801,7 +801,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":