Merge pull request #38493 from s-aga-r/FIX-6325

fix: don't update previous doc on rate change
This commit is contained in:
s-aga-r 2023-12-03 10:08:44 +05:30 committed by GitHub
commit a008f5f611
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3251,7 +3251,10 @@ def update_child_qty_rate(parent_doctype, trans_items, parent_doctype_name, chil
if parent_doctype == "Purchase Order":
update_last_purchase_rate(parent, is_submit=1)
parent.update_prevdoc_status()
if any_qty_changed or items_added_or_removed or any_conversion_factor_changed:
parent.update_prevdoc_status()
parent.update_requested_qty()
parent.update_ordered_qty()
parent.update_ordered_and_reserved_qty()