VAT-388  Added action for Print or Email Invoice. Created template for invoice.

Move above line to outside foreach loop