commit | 94c145f3c3789a2648347930e5f885e13568ed17 | [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:28:26 2021 +0530 |
tree | a26d962ba39251542f1d6d65b7481bdee0e859a2 | |
parent | 7366b5d3eb114d725135e8be6af7153ba0cab95d [diff] |
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