Thank you
Thanks Eric,
The solution worked.
Just a note for other users. I had a checkout button which was set to Update cart before checkout. What seemed to happen was that the records were put in twice.
Once I removed that everything worked fine.
Paul