Apologies for not being clear. In answer to your questions:
I was using invoices and payment receipts as reference numbers. So what has happened since the update, manager is using those references to automatically produce new reference numbers when l enter cash transactions. Hence the long number is from a previous payment receipt number plus one.
I have found a solution to the problem. Thank you for your assistance.