mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 07:54:46 +00:00
Merge pull request #46021 from rohitwaghchaure/fixed-support-31874
fix: incorrect stock value difference for adjustment entry
This commit is contained in:
@@ -884,6 +884,10 @@ class update_entries_after:
|
|||||||
|
|
||||||
if not sle.is_adjustment_entry:
|
if not sle.is_adjustment_entry:
|
||||||
sle.stock_value_difference = stock_value_difference
|
sle.stock_value_difference = stock_value_difference
|
||||||
|
elif sle.is_adjustment_entry and not self.args.get("sle_id"):
|
||||||
|
sle.stock_value_difference = get_stock_value_difference(
|
||||||
|
sle.item_code, sle.warehouse, sle.posting_date, sle.posting_time, sle.voucher_no
|
||||||
|
)
|
||||||
|
|
||||||
sle.doctype = "Stock Ledger Entry"
|
sle.doctype = "Stock Ledger Entry"
|
||||||
frappe.get_doc(sle).db_update()
|
frappe.get_doc(sle).db_update()
|
||||||
|
|||||||
Reference in New Issue
Block a user