Does Standard SAP takes into account only sold-to party into account when creating invoice
No it also takes into account Payer. This means, if you have different Sold To and Payer at sale order header level and Payer is set to Billing Block, then system will not allow to generate billing document.
G. Lakshmipathi