fix: correct ordered qty on SO when removing PO item - v15 (#41342)

This commit is contained in:
Nihantra C. Patel
2024-05-06 21:36:27 +05:30
committed by GitHub
parent 1b1dfa8893
commit 5c1043fe88
2 changed files with 17 additions and 0 deletions

View File

@@ -3158,6 +3158,9 @@ def validate_and_delete_children(parent, data) -> bool:
d.cancel()
d.delete()
if parent.doctype == "Purchase Order":
parent.update_ordered_qty_in_so_for_removed_items(deleted_children)
# need to update ordered qty in Material Request first
# bin uses Material Request Items to recalculate & update
parent.update_prevdoc_status()