Skip to content

Commit

Permalink
Merge pull request #35702 from frappe/mergify/bp/version-14-hotfix/pr…
Browse files Browse the repository at this point in the history
…-35700

fix: update `Stock Reconciliation` diff qty while reposting (backport #35700)
  • Loading branch information
s-aga-r authored Jun 15, 2023
2 parents 4a8ce22 + bdb5cc8 commit 9d1fac1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions erpnext/stock/stock_ledger.py
Original file line number Diff line number Diff line change
Expand Up @@ -821,6 +821,7 @@ def update_rate_on_stock_reconciliation(self, sle):
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])
Expand Down

0 comments on commit 9d1fac1

Please sign in to comment.