mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-13 09:10:36 +00:00
Merge pull request #58674 from frappe/mergify/bp/version-15-hotfix/pr-58505
fix(stock): preserve exchange gain loss journals in lcv (backport #58505)
This commit is contained in:
@@ -290,7 +290,7 @@ class LandedCostVoucher(Document):
|
|||||||
# update stock & gl entries for cancelled state of PR
|
# update stock & gl entries for cancelled state of PR
|
||||||
doc.docstatus = 2
|
doc.docstatus = 2
|
||||||
doc.update_stock_ledger(allow_negative_stock=True, via_landed_cost_voucher=True)
|
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
|
# update stock & gl entries for submit state of PR
|
||||||
doc.docstatus = 1
|
doc.docstatus = 1
|
||||||
|
|||||||
Reference in New Issue
Block a user