fix: stock adjustment entry during reposting (#47878)

fix: stock adjustment entry
This commit is contained in:
rohitwaghchaure
2025-06-04 10:37:08 +05:30
committed by GitHub
parent 67d82894c6
commit cbcd580daa

View File

@@ -912,8 +912,11 @@ 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"): elif sle.is_adjustment_entry and not self.args.get("sle_id"):
sle.stock_value_difference = get_stock_value_difference( sle.stock_value_difference = (
sle.item_code, sle.warehouse, sle.posting_date, sle.posting_time, sle.voucher_no get_stock_value_difference(
sle.item_code, sle.warehouse, sle.posting_date, sle.posting_time, sle.voucher_no
)
* -1
) )
sle.doctype = "Stock Ledger Entry" sle.doctype = "Stock Ledger Entry"