Merge pull request #8258 from rohitwaghchaure/gross_profit_issue_v_8

[fix] get_valuation_rate takes 4 arguments 3 given in gross profit report
This commit is contained in:
Nabin Hait 2017-03-31 17:39:58 +05:30 committed by GitHub
commit 9f84a99158

View File

@ -225,8 +225,10 @@ class GrossProfitGenerator(object):
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, currency=self.filters.currency)
self.average_buying_rate[item_code] = average_buying_rate
row.parenttype, row.parent, allow_zero_rate=True,
currency=self.filters.currency)
self.average_buying_rate[item_code] = average_buying_rate
return self.average_buying_rate[item_code]