If you can't find another way, you could set the workflow to approve any invoice that is matched to a receipt, and to carry on with the regular workflow process otherwise.
If this is useful, please take a moment to select this response and click the Helpful button.
We done the similar requirement where we are auto approving the Invoices which are created on 3-Way POs having Receipts and sending for approval if invoice is on 2-Way.
For this we have customized the workflow by adding a function in workflow. This workflow function is nothing but a DB Package procedure, where we are checking whether the invoice is created on 3-Way PO based or 2-Way PO based. Accordingly we are auto approving or sending for approval
Mark my response as helpful/correct if it anyway helped you