refactor customer and order ref
Merge pull request #325 from thelia/ref

refactor customer and order ref