[fix] get_valuation_rate takes 4 arguments 3 given in gross profit report
This commit is contained in:
parent
c040015bb5
commit
34b1dba9aa
@ -224,7 +224,7 @@ class GrossProfitGenerator(object):
|
||||
else:
|
||||
average_buying_rate = get_incoming_rate(row)
|
||||
if not average_buying_rate:
|
||||
average_buying_rate = get_valuation_rate(item_code, row.warehouse, allow_zero_rate=True)
|
||||
average_buying_rate = get_valuation_rate(item_code, row.warehouse, row.parenttype, row.parent, allow_zero_rate=True)
|
||||
self.average_buying_rate[item_code] = average_buying_rate
|
||||
|
||||
return self.average_buying_rate[item_code]
|
||||
|
Loading…
Reference in New Issue
Block a user