The invoice module in the downloads section provides a payment method called "invoice" that only shows up for customers in a group whose name begins with "invoice."