Changed type of reference and invoice numbers to String from int.