commit | 1bc53a32bfe0dd1b52c11e82ace6929b10804f6a | [log] [tgz] |
---|---|---|
author | Rohit Waghchaure <rohitw1991@gmail.com> | Wed Mar 31 15:28:26 2021 +0530 |
committer | Rohit Waghchaure <rohitw1991@gmail.com> | Wed Mar 31 15:30:42 2021 +0530 |
tree | b2595d08a872c7c409dd6e2b578126d05d88bec4 | |
parent | 720f69caafb8e035b29e66db0c823b53a3162eec [diff] [blame] |
fix: can't multiply sequence by non-int of type 'float'
diff --git a/erpnext/stock/get_item_details.py b/erpnext/stock/get_item_details.py index 70e4c2c..e23f7d4 100644 --- a/erpnext/stock/get_item_details.py +++ b/erpnext/stock/get_item_details.py
@@ -110,7 +110,7 @@ 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