fix(stock): preserve exchange gain loss journals in lcv (#58505)

(cherry picked from commit 2b54a581f8)
This commit is contained in:
Pandiyan P
2026-09-02 11:44:38 +05:30
committed by Mergify
parent f22f84a58a
commit 124231681a

View File

@@ -337,7 +337,7 @@ class LandedCostVoucher(Document):
# update stock & gl entries for cancelled state of PR
doc.docstatus = 2
doc.update_stock_ledger(allow_negative_stock=True, via_landed_cost_voucher=True)
doc.make_gl_entries_on_cancel()
doc.make_gl_entries_on_cancel(from_repost=True)
# update stock & gl entries for submit state of PR
doc.docstatus = 1