Skip to content

Commit

Permalink
fix: update Stock Reconciliation diff qty while reposting
Browse files Browse the repository at this point in the history
(cherry picked from commit 6a1b0a2)
  • Loading branch information
s-aga-r authored and mergify[bot] committed Jun 15, 2023
1 parent 4a8ce22 commit bdb5cc8
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 bdb5cc8

Please sign in to comment.