fix: syntax missing )
diff --git a/erpnext/stock/stock_balance.py b/erpnext/stock/stock_balance.py
index 682ac5d..0ab530a 100644
--- a/erpnext/stock/stock_balance.py
+++ b/erpnext/stock/stock_balance.py
@@ -174,6 +174,7 @@
 			)
 		)
 		.where(dnpi_parent.so_item_qty >= dnpi_parent.so_item_delivered_qty)
+	)
 
 	reserved_qty = q.run()
 	return flt(reserved_qty[0][0]) if reserved_qty else 0