\p modèles/Facture.Totaux.sql
SELECT
  ID,
  SUM(ROUND(quantité,2) * euros) as prix_total
  FROM "Factures"
  GROUP BY ID
;
select * from "Factures";
SELECT "Prod".nom_complet
     , SUM(ROUND(quantité,2) * euros) as prix_total
  FROM "Factures"
  JOIN TABLE (choisirUnProduit()) AS "Prod" ON "Prod".ID = produit
  WHERE "ID" = '1'
  GROUP BY ID, "Prod".nom_complet
;
