| | | | | | | | |
| | Three Months Ended | |
(in thousands of U.S. dollars) | | September 27, 2019 | | | September 28, 2018 | |
Cash flows from operating activities | | | | | | | | |
Net income for the period | | $ | 25,957 | | | $ | 27,850 | |
Adjustments to reconcile net income to net cash provided by operating activities | | | | | | | | |
Depreciation and amortization | | | 7,465 | | | | 7,412 | |
Loss on disposal of property, plant and equipment | | | 8 | | | | 46 | |
Loss on disposal of intangibles | | | — | | | | 149 | |
(Gain) loss from sales and maturities ofavailable-for-sale securities | | | (67 | ) | | | 178 | |
Amortization of investment discount (premium) | | | 65 | | | | (94 | ) |
Amortization of deferred debt issuance costs | | | 2 | | | | — | |
(Reversal of) allowance for doubtful accounts | | | (5 | ) | | | — | |
Unrealized loss (gain) on exchange rate and fair value of foreign currency forward contracts | | | 1,479 | | | | (4,232 | ) |
Unrealized loss (gain) on fair value of interest rate swaps | | | 1,671 | | | | (50 | ) |
Share-based compensation | | | 5,995 | | | | 4,980 | |
Deferred income tax | | | 705 | | | | 3 | |
Severance liabilities | | | 811 | | | | 872 | |
Othernon-cash expenses | | | 53 | | | | (282 | ) |
Reversal of inventory obsolescence | | | (264 | ) | | | (478 | ) |
Changes in operating assets and liabilities | | | | | | | | |
Trade accounts receivable | | | (12,967 | ) | | | (10,887 | ) |
Contract assets | | | 827 | | | | (280 | ) |
Inventory | | | (27,634 | ) | | | (28,904 | ) |
Other current assets andnon-current assets | | | 4,225 | | | | (979 | ) |
Trade accounts payable | | | (5,263 | ) | | | 29,182 | |
Contract liabilities | | | 27 | | | | — | |
Income tax payable | | | 733 | | | | 1,680 | |
Other current liabilities andnon-current liabilities | | | (1,176 | ) | | | 8,427 | |
| | | | | | | | |
Net cash provided by operating activities | | | 2,647 | | | | 34,593 | |
| | | | | | | | |
Cash flows from investing activities | | | | | | | | |
Purchase of short-term investments | | | (62,880 | ) | | | (1,955 | ) |
Proceeds from sales of short-term investments | | | 49,472 | | | | 24,181 | |
Proceeds from maturities of short-term investments | | | 31,673 | | | | 19,863 | |
Purchase of property, plant and equipment | | | (6,343 | ) | | | (5,410 | ) |
Purchase of intangibles | | | (246 | ) | | | (78 | ) |
| | | | | | | | |
Net cash provided by investing activities | | | 11,676 | | | | 36,601 | |
| | | | | | | | |
Cash flows from financing activities | | | | | | | | |
Payment of debt issuance costs | | | (153 | ) | | | — | |
Proceeds from long-term borrowings | | | 60,938 | | | | — | |
Repayment of long-term borrowings | | | (60,938 | ) | | | (813 | ) |
Repayment of capital lease liability | | | (109 | ) | | | (123 | ) |
Release of restricted cash held in connection with business acquisition | | | — | | | | (3,478 | ) |
Withholding tax related to net share settlement of restricted share units | | | (4,144 | ) | | | (8,904 | ) |
| | | | | | | | |
Net cash used in financing activities | | | (4,406 | ) | | | (13,318 | ) |
| | | | | | | | |
Net increase in cash, cash equivalents and restricted cash | | | 9,917 | | | | 57,876 | |
| | | | | | | | |
Movement in cash, cash equivalents and restricted cash | | | | | | | | |
Cash, cash equivalents and restricted cashat beginning of period | | | 188,241 | | | | 161,433 | |
Increase in cash, cash equivalents and restricted cash | | | 9,917 | | | | 57,876 | |
Effect of exchange rate on cash, cash equivalents and restricted cash | | | (41 | ) | | | 667 | |
| | | | | | | | |
Cash, cash equivalents and restricted cash at end of period | | $ | 198,117 | | | $ | 219,976 | |
| | | | | | | | |
Non-cash investing and financing activities | | | | | | | | |
Construction, software and equipment-related payables | | $ | 9,816 | | | $ | 3,830 | |