Beispiel #1
0
def get_valuation_method(item_code):
    """get valuation method from item or default"""
    val_method = webnotes.conn.get_value('Item', item_code, 'valuation_method')
    if not val_method:
        val_method = get_global_default('valuation_method') or "FIFO"
    return val_method
Beispiel #2
0
def get_valuation_method(item_code):
	"""get valuation method from item or default"""
	val_method = webnotes.conn.get_value('Item', item_code, 'valuation_method')
	if not val_method:
		val_method = get_global_default('valuation_method') or "FIFO"
	return val_method