XML 60 R50.htm IDEA: XBRL DOCUMENT v3.8.0.1
LONG-TERM DEBT (Details) - USD ($)
Apr. 30, 2018
Jan. 31, 2018
Jul. 31, 2017
Debt Instrument [Line Items]      
Principal amount $ 20,000,000 $ 20,000,000 $ 20,000,000
Unamortized discount (761,832)   (745,165)
Long-term debt, net of unamortized discount 19,238,168   19,254,835
Current portion 5,000,000   0
Long-term debt, net of current portion $ 14,238,168   $ 19,254,835