mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-17 11:52:38 +00:00
fix: recalculate incoming rate in SLE for purchase documents during repost
(cherry picked from commit 867ee484b9)
This commit is contained in:
committed by
Mergify
parent
3fca2fc616
commit
d3cc684899
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user