Yes, you can only claim a deduction for a bad debt written off in the same financial year. The debt must also have been included in the business’s assessable income, which means you must account on an accrual basis.