mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-22 22:49:19 +00:00
chore: fix linters issue
Added a setting to control fetching incoming rates for serial numbers.
This commit is contained in:
@@ -30,6 +30,10 @@ class DeprecatedSerialNoValuation:
|
||||
def get_incoming_value_for_serial_nos(self, serial_nos):
|
||||
from erpnext.stock.utils import get_combine_datetime
|
||||
|
||||
do_not_fetch_rate = frappe.db.get_single_value(
|
||||
"Stock Reposting Settings", "do_not_fetch_incoming_rate_from_serial_no"
|
||||
)
|
||||
|
||||
# get rate from serial nos within same company
|
||||
incoming_values = 0.0
|
||||
for serial_no in serial_nos:
|
||||
|
||||
Reference in New Issue
Block a user