test: test case to validate rejected qty without accepted warehouse

(cherry picked from commit ac5df1abbe)
This commit is contained in:
Rohit Waghchaure
2022-04-04 15:38:42 +05:30
committed by mergify-bot
parent 157461ed02
commit 3038a5cd5a
2 changed files with 40 additions and 1 deletions

View File

@@ -467,7 +467,7 @@ class BuyingController(StockController, Subcontracting):
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: