DEBT AND OTHER LONG-TERM OBLIGATIONS (Tables)  | 
12 Months Ended | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Aug. 31, 2022  | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| DEBT AND OTHER LONG-TERM OBLIGATIONS [Abstract] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Schedule of maturities of notes payable | 
 The total scheduled maturities of the Company’s loans for each of the years ending August 31 are as follows, with each loan described below the table: 
  | 
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ROU Lease Assets and Lease Liabilities | 
 ROU lease assets and lease liabilities for the Company’s operating leases were recorded in the consolidated balance sheet as follows:  
  | 
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| X | ||||||||||
- Definition Tabular disclosure of lessee's operating lease assets and liabilities recognized in the statement of financial position. No definition available. 
  | 
| X | ||||||||||
- References No definition available. 
  | 
| X | ||||||||||
- Definition Tabular disclosure of maturity and sinking fund requirement for long-term debt. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
  |