Thanks, seems to be much better.
Still problem though, the automatically generated reference number is NOT the Bransom reference. It is the reference. Bransom is our POS software which the shops use to generate reference numbers.
This reference number should also be WSHOP-0000001 not HO-0000001. The HO-x number is generated by Bransom.
Have attached the changes that I have made.