MT#7867 Invoice template per customer.

(cherry picked from commit 025cafed56ea87fb70e1f543f9baa442f57065d5)