diff --git a/erpnext/controllers/selling_controller.py b/erpnext/controllers/selling_controller.py index e758dd1a707..86d883784ba 100644 --- a/erpnext/controllers/selling_controller.py +++ b/erpnext/controllers/selling_controller.py @@ -339,7 +339,7 @@ class SellingController(StockController): reserved_warehouse = "" reserved_qty_for_main_item = 0 - if not d.qty: + if d.qty is None: frappe.throw(_("Row {0}: Qty is mandatory").format(d.idx)) if self.doctype == "Sales Order":