mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 03:09:09 +00:00
Merge pull request #8047 from KanchanChauhan/warehouse-for-dropship
[Fix] Warehouse not required for Dropship
This commit is contained in:
@@ -65,7 +65,7 @@ class PurchaseCommon(BuyingController):
|
|||||||
validate_end_of_life(d.item_code, item.end_of_life, item.disabled)
|
validate_end_of_life(d.item_code, item.end_of_life, item.disabled)
|
||||||
|
|
||||||
# validate stock item
|
# validate stock item
|
||||||
if item.is_stock_item==1 and d.qty and not d.warehouse:
|
if item.is_stock_item==1 and d.qty and not d.warehouse and not d.delivered_by_supplier:
|
||||||
frappe.throw(_("Warehouse is mandatory for stock Item {0} in row {1}").format(d.item_code, d.idx))
|
frappe.throw(_("Warehouse is mandatory for stock Item {0} in row {1}").format(d.item_code, d.idx))
|
||||||
|
|
||||||
items.append(cstr(d.item_code))
|
items.append(cstr(d.item_code))
|
||||||
|
|||||||
Reference in New Issue
Block a user