# Exemples d'Utilisation

### <span style="white-space: pre-wrap;">Exemple 1 : </span>**Devis avec remise en cascade**

**Contexte :**<span style="white-space: pre-wrap;"> Proposer une remise exceptionnelle</span>

```
Document : Devis

Lignes :
- Produit A : 10 × 50 € = 500 € HT
- Produit B : 5 × 100 € = 500 € HT
Sous-total : 1000 € HT

Remises InfraS :
- Remise commerciale : -10% sur tout → -100 € HT
- Remise fidélité : -5% sur tout → -45 € HT (5% de 900 €)

Total HT : 855 € HT
Total remises : 145 € (14,5%)
```

### <span style="white-space: pre-wrap;">Exemple 2 : </span>**Facture avec remise fixe**

**Contexte :**<span style="white-space: pre-wrap;"> Arrondir le total à un montant commercial</span>

```
Document : Facture

Lignes :
- Service consulting : 8h × 75 € = 600 € HT (TVA 20%)
- Produit logiciel : 1 × 250 € = 250 € HT (TVA 20%)
Sous-total : 850 € HT
Total TTC : 1020 € TTC

Objectif : Proposer à 1000 € TTC

Remise InfraS :
- Remise commerciale : -16,67 € HT (calculée pour atteindre 1000 € TTC)

Total HT : 833,33 € HT
Total TTC : 1000 € TTC
```

### <span style="white-space: pre-wrap;">Exemple 3 : </span>**Commande avec remise automatique**

```
Configuration :
- Limite : 3 premières commandes
- Quantité gratuite : 100 unités
- Références : Réf001, Réf002
- Pondérateur : aucun

Commande d'un nouveau client (1ère commande) :
- Réf001 : 50 unités à 2 € = 100 € HT
- Réf002 : 150 unités à 1 € = 150 € HT
- Autres produits : 200 € HT
Sous-total : 450 € HT

Remises automatiques appliquées :
- Réf001 : 50 × 2 € = 100 € (quantité < 100)
- Réf002 : 100 × 1 € = 100 € (quantité ≥ 100)
Total remises auto : 200 € HT

Total HT : 250 € HT
```

### <span style="white-space: pre-wrap;">Exemple 4 : </span>**Devis complexe avec remises mixtes**

**Contexte :**<span style="white-space: pre-wrap;"> Projet avec produits et services, client négociateur</span>

```
Document : Devis

Lignes produits :
- Matériel A : 2000 € HT (TVA 20%)
- Matériel B : 1000 € HT (TVA 20%)
Sous-total produits : 3000 € HT

Lignes services :
- Installation : 500 € HT (TVA 20%)
- Formation : 300 € HT (TVA 20%)
Sous-total services : 800 € HT

Total initial : 3800 € HT / 4560 € TTC

Négociation :
1. Remise générale : -10% sur tout → -380 € HT
   Nouveau total : 3420 € HT

2. Remise spéciale matériel : -5% sur produits uniquement → -142,50 € HT
   (5% de 2850 € = sous-total produits après 1ère remise)
   Nouveau total : 3277,50 € HT

3. Remise fixe finale : -77,50 € HT pour atteindre 3200 € HT rond
   Répartition :
   - Sur produits : -77,50 × (2707,50/3277,50) = -64 € HT
   - Sur services : -77,50 × (570/3277,50) = -13,50 € HT

Total final : 3200 € HT / 3840 € TTC
Économie client : 600 € HT (15,8%)
```

---

---

**Copyright © 2016-2026 InfraS - Sylvain Legrand &amp; Lucky Ranasolonirina**  
support@infras.fr | www.infras.fr | wiki.infras.fr