One report with kind (revenue for delivered, refund for returned) and amount, then the net as a final row net.
kind
revenue
refund
amount
net
Each hint gives a little more help. Try on your own first.
Run your code to see the output here.