mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-01 12:38:27 +00:00
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:
@@ -801,7 +801,7 @@ class StockController(AccountsController):
|
|||||||
child_tab.item_code,
|
child_tab.item_code,
|
||||||
child_tab.qty,
|
child_tab.qty,
|
||||||
)
|
)
|
||||||
.where(parent_tab.docstatus < 2)
|
.where(parent_tab.docstatus == 1)
|
||||||
)
|
)
|
||||||
|
|
||||||
if self.doctype == "Purchase Invoice":
|
if self.doctype == "Purchase Invoice":
|
||||||
|
|||||||
Reference in New Issue
Block a user