I would think an inventory management solution is what you are looking for. Should be numerous templates available in that category and one is included as a starter solution when you acquire FileMaker Pro.
Starting Point is a free template that has an Invoice and Products table.
It is fairly complex and requires some study to modify for your needs.
Screenshot of Products Entry layout.