Textile units to get treated wastewater