Merge pull request #53498 from frappe/mergify/bp/version-16-hotfix/pr-53495

fix: stock adjustment entry (backport #53495)
This commit is contained in:
rohitwaghchaure
2026-03-16 18:06:57 +05:30
committed by GitHub

View File

@@ -925,7 +925,10 @@ class update_entries_after:
if (
sle.is_adjustment_entry
and flt(sle.qty_after_transaction, self.flt_precision) == 0
and flt(sle.stock_value, self.currency_precision) != 0
and (
flt(sle.stock_value, self.currency_precision) != 0
or flt(sle.stock_value_difference, self.currency_precision) == 0
)
):
sle.stock_value_difference = (
get_stock_value_difference(