commit | ac5df1abbe80255d685966c108835cdb75f90659 | [log] [tgz] |
---|---|---|
author | Rohit Waghchaure <rohitw1991@gmail.com> | Mon Apr 04 15:38:42 2022 +0530 |
committer | Rohit Waghchaure <rohitw1991@gmail.com> | Mon Apr 04 17:57:57 2022 +0530 |
tree | 2727651c9bf68c4387fa1392a6c0dd798498157c | |
parent | 0a71cabab13075fa05a7df1942776a2f08c47089 [diff] [blame] |
test: test case to validate rejected qty without accepted warehouse
diff --git a/erpnext/controllers/buying_controller.py b/erpnext/controllers/buying_controller.py index 2bac726..eda3686 100644 --- a/erpnext/controllers/buying_controller.py +++ b/erpnext/controllers/buying_controller.py
@@ -466,7 +466,7 @@ if d.item_code not in stock_items: continue - if d.item_code in stock_items and d.warehouse: + if d.warehouse: pr_qty = flt(d.qty) * flt(d.conversion_factor) if pr_qty: