| | | | | | | | |
| | Six Months Ended | |
(in thousands of U.S. dollars) | | December 27, 2019 | | | December 28, 2018 | |
Cash flows from operating activities | | | | | | | | |
Net income for the period | | $ | 57,188 | | | $ | 59,363 | |
Adjustments to reconcile net income to net cash provided by operating activities | | | | | | | | |
Depreciation and amortization | | | 15,279 | | | | 15,000 | |
Loss on disposal of property, plant and equipment | | | 242 | | | | 528 | |
Loss on disposal of intangibles | | | — | | | | 149 | |
(Gain) loss from sales and maturities ofavailable-for-sale securities | | | (79 | ) | | | 1,060 | |
Amortization of investment discount (premium) | | | 117 | | | | (533 | ) |
Amortization of deferred debt issuance costs | | | 10 | | | | — | |
Allowance for doubtful accounts | | | 6 | | | | — | |
Unrealized loss (gain) on exchange rate and fair value of foreign currency forward contracts | | | 1,205 | | | | (5,775 | ) |
Unrealized loss (gain) on fair value of interest rate swaps | | | 1,672 | | | | 849 | |
Amortization of interest rate swaps’ fair value at hedge inception | | | (433 | ) | | | — | |
Share-based compensation | | | 12,183 | | | | 8,949 | |
Deferred income tax | | | 1,543 | | | | 481 | |
Severance liabilities | | | 2,015 | | | | 1,339 | |
Othernon-cash expenses | | | (851 | ) | | | (759 | ) |
Changes in operating assets and liabilities | | | | | | | | |
Trade accounts receivable | | | (24,970 | ) | | | (14,381 | ) |
Contract assets | | | 1,333 | | | | (3,459 | ) |
Inventories | | | (767 | ) | | | (28,880 | ) |
Other current assets andnon-current assets | | | 7,471 | | | | 2,128 | |
Trade accounts payable | | | (22,816 | ) | | | 29,276 | |
Contract liabilities | | | 121 | | | | — | |
Income tax payable | | | 1,336 | | | | 1,859 | |
Other current liabilities andnon-current liabilities | | | 805 | | | | 2,104 | |
| | | | | | | | |
Net cash provided by operating activities | | | 52,610 | | | | 69,298 | |
| | | | | | | | |
Cash flows from investing activities | | | | | | | | |
Purchase of short-term investments | | | (101,727 | ) | | | (82,141 | ) |
Proceeds from sales of short-term investments | | | 72,664 | | | | 70,472 | |
Proceeds from maturities of short-term investments | | | 62,666 | | | | 34,788 | |
Other receivable provided to customer | | | (24,310 | ) | | | — | |
Purchase of property, plant and equipment | | | (15,411 | ) | | | (9,732 | ) |
Purchase of intangibles | | | (808 | ) | | | (251 | ) |
Proceeds from disposal of property, plant and equipment | | | 1,195 | | | | 5 | |
| | | | | | | | |
Net cash (used in) provided by investing activities | | | (5,731 | ) | | | 13,141 | |
| | | | | | | | |
Cash flows from financing activities | | | | | | | | |
Payment of debt issuance costs | | | (153 | ) | | | — | |
Proceeds from long-term borrowings | | | 60,938 | | | | — | |
Repayment of long-term borrowings | | | (63,985 | ) | | | (813 | ) |
Repayment of capital lease liability | | | (189 | ) | | | (255 | ) |
Release of restricted cash held in connection with business acquisition | | | — | | | | (3,478 | ) |
Withholding tax related to net share settlement of restricted share units | | | (4,377 | ) | | | (9,103 | ) |
| | | | | | | | |
Net cash used in financing activities | | | (7,766 | ) | | | (13,649 | ) |
| | | | | | | | |
Net increase in cash, cash equivalents and restricted cash | | | 39,113 | | | | 68,790 | |
| | | | | | | | |
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 | | | 39,113 | | | | 68,790 | |
Effect of exchange rate on cash, cash equivalents and restricted cash | | | 351 | | | | 773 | |
| | | | | | | | |
Cash, cash equivalents and restricted cash at end of period | | $ | 227,705 | | | $ | 230,996 | |
| | | | | | | | |
Non-cash investing and financing activities | | | | | | | | |
Construction, software and equipment-related payables | | $ | 14,307 | | | $ | 2,888 | |