I’m not sure what you are asking, the two forms are not interchangeable, an invoice posts by default to a/r, a sales receipt posts to (usually) undeposited funds

You control the look and feel of the two templates.  Bring up an invoice or  sales receipt, click the formatting tab, click customize […]

Resolution for 'Bring up an invoice issue: 'Can I change a template type from sales receipt to invoice?' available: Yes.

The Bring up an invoice issue or error code is a known issue in Quickbooks Online (QBO) and/or Quickbooks. Support for this issue is available either by self-service or paid support options. Experts are available to resolve your Quickbooks issue to ensure minimal downtime and continue running your business. First try to resolve the Bring up an invoice issue yourself by looking for a resolution described in the article. If it is a complex Bring up an invoice issue or you are unable to solve the issue, you may contact us by clicking here or by using other Bring up an invoice support options.

For more information about resolving issues related to Bring up an invoice in Quickbooks/QBO or to get support for the issue 'Can I change a template type from sales receipt to invoice?', click the link below: