Automatically attach Invoice PDF to confirmation receipt based on the gl...

...obal setting
document the parameters.