Merge pull request #55932 from frappe/mergify/bp/version-15-hotfix/pr-55926

fix: recalculate incoming rate in SLE for purchase documents during repost (backport #55926)
This commit is contained in:
rohitwaghchaure
2026-06-15 17:52:50 +05:30
committed by GitHub

View File

@@ -1188,6 +1188,7 @@ class update_entries_after:
sle.recalculate_rate
or self.has_landed_cost_based_on_pi(sle)
or (sle.voucher_type == "Stock Entry" and sle.actual_qty > 0 and is_repack_entry(sle.voucher_no))
or (sle.voucher_type in ("Purchase Receipt", "Purchase Invoice"))
):
rate = self.get_incoming_outgoing_rate_from_transaction(sle)