Merge pull request #22246 from marination/backflush-rm-rate

fix: Wrong key sent to get_valuation_rate
This commit is contained in:
rohitwaghchaure 2020-06-15 14:50:19 +05:30 committed by GitHub
commit d9fbc737e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -349,7 +349,7 @@ class BuyingController(StockController):
})
if not rm.rate:
rm.rate = get_valuation_rate(raw_material_data.item_code, self.supplier_warehouse,
rm.rate = get_valuation_rate(raw_material_data.rm_item_code, self.supplier_warehouse,
self.doctype, self.name, currency=self.company_currency, company=self.company)
rm.amount = qty * flt(rm.rate)