| 8. | Income Taxes |
| | | Year Ended June 30, | | ||||
| | | 2017 | | 2016 | | ||
| Current: | | | | | | | |
| Federal | | $ | - | | $ | - | |
| State | | | 4,000 | | | 13,704 | |
| Total current | | | 4,000 | | | 13,704 | |
| | | | | | | | |
| Deferred: | | | | | | | |
| Federal | | | 26,613,369 | | | 273,000 | |
| State | | | 30,412 | | | 38,000 | |
| Total deferred | | | 26,643,781 | | | 311,000 | |
| | | | | | | | |
| Income tax provision | | $ | 26,647,781 | | $ | 324,704 | |
| | | Year Ended June 30, | | |||||||
| | | 2017 | | 2016 | | |||||
| Income taxes at the federal statutory rate | | $ | (1,894,749) | | $ | 1,901,000 | | | 34.00 | % |
| State income taxes, net of federal income tax effect | | | (143,944) | | | 51,704 | | | 0.92 | % |
| Permanent tax differences | | | 1,135,075 | | | (2,914,000) | | | 52.13 | % |
| 481(a) adjustments | | | - | | | 1,287,000 | | | 23.03 | % |
| Change in valuation allowance | | | 27,500,720 | | | - | | | 0.00 | % |
| Other | | | 679 | | | (1,000) | | | -0.01 | % |
| | | $ | 26,647,781 | | $ | 324,704 | | | 5.81 | % |
| | | Year Ended June 30, | | ||||
| | | 2017 | | 2016 | | ||
| Deferred tax assets: | | | | | | | |
| Accrued compensation | | $ | 615,000 | | $ | 395,000 | |
| Accounts receivable allowance | | | 367,000 | | | 292,000 | |
| Intangible assets | | | 287,000 | | | 352,000 | |
| Other liabilities | | | 237,000 | | | 43,000 | |
| Net operating loss and other carryforwards | | | 60,996,000 | | | 60,357,000 | |
| Total gross deferred assets | | | 62,502,000 | | | 61,439,000 | |
| Less: Valuation Allowance | | | (49,247,000) | | | (21,745,000) | |
| Deferred tax asset after valuation allowance | | | 13,255,000 | | | 39,694,000 | |
| Deferred tax liabilities: | | | | | | | |
| Depreciation | | | (705,000) | | | (644,000) | |
| Warrant derivative | | | (331,000) | | | - | |
| Change in accounting method | | | (371,000) | | | (557,000) | |
| Total deferred tax liability | | | (1,407,000) | | | (1,201,000) | |
| | | | | | | | |
| Net Deferred Tax Asset | | $ | 11,848,000 | | $ | 38,493,000 | |