Skip to content

Commit

Permalink
refactor: better method name
Browse files Browse the repository at this point in the history
Co-authored-by: gavin <gavin18d@gmail.com>
  • Loading branch information
ankush and gavindsouza committed Feb 6, 2022
1 parent 3e5f940 commit f089d39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions erpnext/stock/stock_ledger.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ def process_sle(self, sle):
self.wh_data.qty_after_transaction += flt(sle.actual_qty)
self.wh_data.stock_value = flt(self.wh_data.qty_after_transaction) * flt(self.wh_data.valuation_rate)
else:
self.update_fifo_lifo_values(sle)
self.update_queue_values(sle)
self.wh_data.qty_after_transaction += flt(sle.actual_qty)

# rounding as per precision
Expand Down Expand Up @@ -701,7 +701,7 @@ def get_moving_average_values(self, sle):
sle.voucher_type, sle.voucher_no, self.allow_zero_rate,
currency=erpnext.get_company_currency(sle.company), company=sle.company)

def update_fifo_lifo_values(self, sle):
def update_queue_values(self, sle):
incoming_rate = flt(sle.incoming_rate)
actual_qty = flt(sle.actual_qty)
outgoing_rate = flt(sle.outgoing_rate)
Expand Down

0 comments on commit f089d39

Please sign in to comment.