If a ride has not taken place you can still edit its reference field. If the ride has been completed go to the reporting tab search and select the order.
The pencil icon allows you to edit the reference. If you have updated this before the invoice cycle the information will show on the invoice.