If you use a 3rd party invoicing system, you choose to disable the invoice from being attached to either the Order Confirmation emails. Simply go to the Acceptance & Payments tab to uncheck the box to the left of Send Invoice under Options as seen in the example below:
If disabled, you’ll need to modify the confirmation emails by going to Settings > Labels & Messages > Emails to update the Order Confirmation emails accordingly: