Check tolerance

This commit is contained in:
2026-05-14 21:37:49 +02:00
parent 4395884754
commit 07ddb212e3
5 changed files with 27 additions and 6 deletions

View File

@@ -114,7 +114,8 @@ quantity_theorical
| Inheritance | Lines inherit the header tolerance by default. |
| Transport | No independent tolerance per transport. |
| Physical lot addition | The check is performed during `Add physical lots`. |
| Line excess | Confirmable warning in English when the projected physical quantity exceeds the current line tolerance. |
| Matched forecast | If `lot_qt` carries both `lot_p` and `lot_s`, the check applies to both purchase and sale sides. |
| Line excess | Confirmable warning in English when the projected physical quantity exceeds the current line tolerance. The message names the blocking side: `purchase`, `sale`, or both if both checks are triggered successively. |
| Global envelope | A line excess is accepted after confirmation and consumes the contract-level envelope. |
| Remaining tolerance | Contract lines are recalculated with `inherit_tol = False`. |
| Over-execution | A line exceeding the header tolerance keeps a `+` tolerance at least equal to its actual excess. |

View File

@@ -113,7 +113,8 @@ quantity_theorical
| Héritage | Les lignes héritent de la tolérance header par défaut. |
| Transport | Pas de tolérance indépendante par transport. |
| Ajout physique | Le contrôle se fait au moment de `Add physical lots`. |
| Dépassement ligne | Warning confirmable en anglais si la quantité physique projetée dépasse la tolérance courante de la ligne. |
| Forecast matché | Si `lot_qt` porte `lot_p` et `lot_s`, le contrôle porte sur les deux côtés achat et vente. |
| Dépassement ligne | Warning confirmable en anglais si la quantité physique projetée dépasse la tolérance courante de la ligne. Le message indique le côté bloquant : `purchase`, `sale`, ou les deux si les deux checks déclenchent successivement. |
| Enveloppe globale | Le dépassement ponctuel d'une ligne est accepté après confirmation et consomme l'enveloppe globale du contrat. |
| Tolérance restante | Les lignes du contrat sont recalculées avec `inherit_tol = False`. |
| Surconsommation | Une ligne qui dépasse la tolérance header garde une tolérance `+` au moins égale à son dépassement réel. |