2. SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Details - Contract manufacturing revenue ) - USD ($)
$ in Thousands
3 Months Ended
Jul. 31, 2018
Jul. 31, 2017
Total contract manufacturing revenue $ 12,589 $ 27,077
Manufacturing Revenue [Member]    
Total contract manufacturing revenue 10,300  
Process Development Revenue [Member]    
Total contract manufacturing revenue $ 2,289