VAT-498 Automatically attach Invoice PDF to confirmation receipt based o...

...n the global setting
Add space's between 2 parameters in function