Implement sales order functional test

I copy the quote function test and adapt it to test sales orders.
During test I fix a minor inconsistency in the show view of sales
orders.

Additionally, I implement a dynamically generated year in the copyright
notice on each page.