fix: update Stock Reconciliation diff qty while reposting

This commit is contained in:
s-aga-r 2023-06-15 11:39:22 +05:30
parent 984f89d274
commit 6a1b0a2fab

View File

@ -962,6 +962,7 @@ class update_entries_after(object):
item.current_amount = flt(item.current_qty) * flt(item.current_valuation_rate)
item.amount = flt(item.qty) * flt(item.valuation_rate)
item.quantity_difference = item.qty - item.current_qty
item.amount_difference = item.amount - item.current_amount
else:
sr.difference_amount = sum([item.amount_difference for item in sr.items])