Merge pull request #35700 from s-aga-r/FIX-SR-DIFF-QTY

fix: update `Stock Reconciliation` diff qty while reposting
This commit is contained in:
Sagar Sharma 2023-06-15 11:42:24 +05:30 committed by GitHub
commit ccdf2e6340
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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])