Accounts and contracts receivables consisted of the following (in thousands): | | | | | | As of January 31, | | 2018 | | 2017 | Accounts receivable | $16,392 | | $21,762 | Contracts receivable | 4,921 | | 2,752 | | 21,313 | | 24,514 | Less long-term portion | (6,934) | | (4,968) | Current accounts and contracts receivable | 14,379 | | 19,546 | Less current portion of allowance for doubtful accounts | (3,885) | | (3,716) | Current portion of accounts and contracts receivable, net of allowance for doubtful accounts | $10,494 | | $15,830 |
|