MT#7867 Changes for invoice_template per subscriber.

(cherry picked from commit 5193028fc80c812f67021984ad4f11cb487dba0c)