Remember that under cash accounting, profit and expenses are recognized when received or paid regardless of the period to which they relate.
For example, if you have sold an annual magazine subscription in March (with June year end) and you have received $120 while the cost of sales is 60, under cash accounting you have:
Revenue 120
COS (60)
Profit (60)