# 3.1- Règles sur une ligne et plusieurs lignes

#### <span style="color: rgb(0, 0, 0);">**3.1.2- Règles sur une ligne**</span>

##### **<span style="color: rgb(0, 0, 0);">3.1.2.1- Les critères des colonnes d'une même ligne se cumulent (opérateur logique ET)</span>**

**<span style="color: rgb(0, 0, 0);">Par exemple :</span>**

<table border="1" id="bkmrk-les-crit%C3%A8res-%3A%C2%A0-type" style="border-collapse: collapse; width: 100%;"><colgroup><col style="width: 13.512%;"></col><col style="width: 86.6072%;"></col></colgroup><tbody><tr><td><span style="color: rgb(0, 0, 0);">Les critères : </span></td><td><span style="color: rgb(0, 0, 0);">Type de contact = Commercial rattaché au tiers + Taux = 3%</span></td></tr><tr><td><span style="color: rgb(0, 0, 0);">Donnent :</span></td><td><span style="color: rgb(0, 0, 0);">Tout commercial rattaché à un client aura 3% de commission. Valable pour tous les clients ayant des commerciaux rattachés</span></td></tr></tbody></table>

**<span style="color: rgb(0, 0, 0);">Ajoutons un critère supplémentaire :</span>**

<table border="1" id="bkmrk-les-crit%C3%A8res-%3A-agent" style="border-collapse: collapse; width: 100%;"><colgroup><col style="width: 13.5876%;"></col><col style="width: 86.4104%;"></col></colgroup><tbody><tr><td><span style="color: rgb(0, 0, 0);">Les critères :</span></td><td><span style="color: rgb(0, 0, 0);">Agent commercial = John Doe </span><span style="color: rgb(0, 0, 0);">+ type de contact = Commercial rattaché au tiers </span><span style="color: rgb(0, 0, 0);">+ taux = 4%</span></td></tr><tr><td><span style="color: rgb(0, 0, 0);">Donnent :</span></td><td><span style="color: rgb(0, 0, 0);">Si le commercial rattaché au client est John Doe, alors il sera commissionné à 4%.</span></td></tr></tbody></table>

<span style="color: rgb(0, 0, 0);">Ou encore :</span>

<table border="1" id="bkmrk-les-crit%C3%A8res-%3A-agent-1" style="border-collapse: collapse; width: 100%;"><colgroup><col style="width: 13.5869%;"></col><col style="width: 86.4131%;"></col></colgroup><tbody><tr><td><span style="color: rgb(0, 0, 0);">Les critères :</span></td><td><span style="color: rgb(0, 0, 0);">Agent commercial =Alain Dupont </span><span style="color: rgb(0, 0, 0);">+ facture inférieure à 1000 € </span><span style="color: rgb(0, 0, 0);">+ taux = 3%</span></td></tr><tr><td><span style="color: rgb(0, 0, 0);">Donnent :</span></td><td><span style="color: rgb(0, 0, 0);">Si l'utilisateur (qu'il soit rattaché au client ou ajouté via l'onglet Contact/Adresses) est Alain Dupont ET que la facture est inférieure à 1 000 €, alors Alain Dupont sera commissionné à 3%.</span></td></tr></tbody></table>

#### <span style="color: rgb(0, 0, 0);">**3.1.2- Règles sur plusieurs lignes** </span>

<span style="color: rgb(0, 0, 0);">Les diﬀérentes lignes de règles sont cumulatives (opérateur logique **ET**) ou non cumulatives (opérateur logique **OU**) selon le choix que vous avez fait dans la configuration du module, paramètre cumul des commissions.</span>

##### **<span style="color: rgb(0, 0, 0);">3.1.2.1- Paramètre cumuler des commissions activé (opérateur logique ET)</span>**

<span style="color: rgb(0, 0, 0);">Si vous choisissez de cumuler les commissions, l**es règles de plusieurs lignes se cumulent**.</span>

<span style="color: rgb(0, 0, 0);">**Par exemple**, les lignes suivantes :</span>

<table border="1" id="bkmrk-ligne-1-%3A-type-de-co" style="border-collapse: collapse; width: 100%;"><colgroup><col style="width: 14.7025%;"></col><col style="width: 85.4167%;"></col></colgroup><tbody><tr><td><span style="color: rgb(0, 0, 0);">Ligne 1 :</span></td><td><span style="color: rgb(0, 0, 0);">T</span><span style="color: rgb(0, 0, 0);">ype de contact = Commercial rattaché au client + taux = 3%</span></td></tr><tr><td><span style="color: rgb(0, 0, 0);">Ligne 2 :</span></td><td><span style="color: rgb(0, 0, 0);">A</span><span style="color: rgb(0, 0, 0);">gent commercial = John Doe + type de contact = Responsable suivi facture + taux = 1%</span></td></tr><tr><td><span style="color: rgb(0, 0, 0);">Donnent :</span></td><td><span style="color: rgb(0, 0, 0);">Si l'utilisateur John Doe, rattaché au client, est aussi le responsable suivi facture client sur la facture, alors John Doe sera commissionné à 3 + 1 = 4% sur cette facture.</span></td></tr></tbody></table>

<span style="color: rgb(0, 0, 0);">En revanche, s'il n'est pas précisé sur l'onglet contacts/Adresses que cet utilisateur est responsable suivi facture client, alors il ne touchera que 3%.</span>

<span style="color: rgb(0, 0, 0);">Ou encore, si John Doe n'est pas rattaché au client mais qu'il est désigné comme responsable suivi facture client sur l'onglet contacts/Adresses de la facture, alors il sera commissionné à 1% .</span>

##### **<span style="color: rgb(0, 0, 0);">3.1.2.2- Paramètre pas de cumul activé (opérateur logique OU)</span>**

<span style="color: rgb(0, 0, 0);">Si vous choisissez de ne pas cumuler les diﬀérentes règles de plusieurs lignes, **c'est la règle la plus précise qui sera appliquée**.</span>

<span style="color: rgb(0, 0, 0);">Plus vous sélectionnez de critères pour définir une règle, plus votre règle est "fine". Et c'est la règle la plus fine qui s'appliquera au moment du calcul des commissions.</span>

<span style="color: rgb(0, 0, 0);">**Par exemple**, les lignes suivantes : </span>

<table border="1" id="bkmrk-ligne-1-%3A-type-de-co-1" style="border-collapse: collapse; width: 100%;"><colgroup><col style="width: 13.8258%;"></col><col style="width: 86.1742%;"></col></colgroup><tbody><tr><td><span style="color: rgb(0, 0, 0);">Ligne 1 :</span></td><td><span style="color: rgb(0, 0, 0);">T</span><span style="color: rgb(0, 0, 0);">ype de contact = Commercial rattaché au client + taux = 3%</span></td></tr><tr><td><span style="color: rgb(0, 0, 0);">Ligne 2 :</span></td><td><span style="color: rgb(0, 0, 0);">Agent commercial = Alain Dupont + type de contact = Commercial rattaché au client + taux = 3.5%</span></td></tr><tr><td><span style="color: rgb(0, 0, 0);">Donnent :</span></td><td><span style="color: rgb(0, 0, 0);">Si le commercial rattaché au client est Alain Dupont, il sera commissionné à 3.5%. </span>

<span style="color: rgb(0, 0, 0);">Si ce n'est pas cet utilisateur, quelque soit le commercial rattaché au client, il sera commissionné à 3%.</span>

</td></tr></tbody></table>

<span style="color: rgb(0, 0, 0);">Le chapitre suivant précise quelques cas d'usages.</span>