fix: stock adjustment entry

(cherry picked from commit af3067ee23)
This commit is contained in:
Rohit Waghchaure
2026-03-16 14:44:31 +05:30
committed by Mergify
parent b63b5320f2
commit ac6c06daf9

View File

@@ -919,7 +919,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(