fix: can't multiply sequence by non-int of type 'float'

This commit is contained in:
Rohit Waghchaure 2021-03-31 15:28:26 +05:30
parent 7366b5d3eb
commit 94c145f3c3

View File

@ -110,7 +110,7 @@ def get_item_details(args, doc=None, for_validate=False, overwrite_warehouse=Tru
get_gross_profit(out)
if args.doctype == 'Material Request':
out.rate = args.rate or out.price_list_rate
out.amount = flt(args.qty * out.rate)
out.amount = flt(args.qty) * flt(out.rate)
return out