fix: recalculate incoming rate in SLE for purchase documents during repost

(cherry picked from commit 867ee484b9)
This commit is contained in:
Rohit Waghchaure
2026-06-15 16:08:38 +05:30
committed by Mergify
parent 3fca2fc616
commit d3cc684899

View File

@@ -1196,6 +1196,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)