mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-13 10:11:20 +00:00
refactor: better method name
Co-authored-by: gavin <gavin18d@gmail.com>
This commit is contained in:
@@ -461,7 +461,7 @@ class update_entries_after(object):
|
|||||||
self.wh_data.qty_after_transaction += flt(sle.actual_qty)
|
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)
|
self.wh_data.stock_value = flt(self.wh_data.qty_after_transaction) * flt(self.wh_data.valuation_rate)
|
||||||
else:
|
else:
|
||||||
self.update_fifo_lifo_values(sle)
|
self.update_queue_values(sle)
|
||||||
self.wh_data.qty_after_transaction += flt(sle.actual_qty)
|
self.wh_data.qty_after_transaction += flt(sle.actual_qty)
|
||||||
|
|
||||||
# rounding as per precision
|
# rounding as per precision
|
||||||
@@ -701,7 +701,7 @@ class update_entries_after(object):
|
|||||||
sle.voucher_type, sle.voucher_no, self.allow_zero_rate,
|
sle.voucher_type, sle.voucher_no, self.allow_zero_rate,
|
||||||
currency=erpnext.get_company_currency(sle.company), company=sle.company)
|
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)
|
incoming_rate = flt(sle.incoming_rate)
|
||||||
actual_qty = flt(sle.actual_qty)
|
actual_qty = flt(sle.actual_qty)
|
||||||
outgoing_rate = flt(sle.outgoing_rate)
|
outgoing_rate = flt(sle.outgoing_rate)
|
||||||
|
|||||||
Reference in New Issue
Block a user