XML 52 R38.htm IDEA: XBRL DOCUMENT v3.7.0.1
Debt (Tables)
12 Months Ended
Jun. 30, 2017
Debt Disclosure [Abstract]  
Schedule of long-term debt
  June 30, 
  2017  2016 
       
Convertible Senior Notes, net $121,676  $115,829 
Revolving bank loans  90,000   - 
Term bank loans  139,227   - 
Mortgage  2,763   2,960 
   353,666   118,789 
Less current portion  14,466   197 
  $339,200  $118,592 
Schedule of carrying value of the notes
  

June 30,

2017

  

June 30,

2016

 
       
Principal amount $143,750  $143,750 
Unamortized debt discount  (19,255)  (24,267)
Unamortized debt issuance costs  (2,819)  (3,654)
Net carrying value $121,676  $115,829 
Schedule of components of total interest expense related to the notes
  2017  2016 
       
Contractual coupon $2,867  $1,788 
Amortization of debt discount  5,012   2,974 
Amortization of debt issuance costs  835   522 
  $8,714  $5,284 
Schedule of maturities of long-term debt
2018 $14,466 
2019  14,466 
2020  14,466 
2021  138,115 
2022  172,153 
Thereafter  - 
  $353,666