mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 10:49:09 +00:00
fixes to valuation control
This commit is contained in:
@@ -108,7 +108,7 @@ class DocType:
|
|||||||
if not prev_sle:
|
if not prev_sle:
|
||||||
return 0.0
|
return 0.0
|
||||||
fcfs_stack = eval(prev_sle.get('fcfs_stack', '[]'))
|
fcfs_stack = eval(prev_sle.get('fcfs_stack', '[]'))
|
||||||
in_rate = fcfs_stack and self.get_fifo_rate(fcfs_stack, qty) or 0
|
in_rate = fcfs_stack and self.get_fifo_rate(fcfs_stack) or 0
|
||||||
elif val_method == 'Moving Average':
|
elif val_method == 'Moving Average':
|
||||||
prev_sle = bin_obj.get_prev_sle(posting_date, posting_time)
|
prev_sle = bin_obj.get_prev_sle(posting_date, posting_time)
|
||||||
in_rate = prev_sle and prev_sle.get('valuation_rate', 0) or 0
|
in_rate = prev_sle and prev_sle.get('valuation_rate', 0) or 0
|
||||||
|
|||||||
Reference in New Issue
Block a user