Tolérance
This commit is contained in:
@@ -108,16 +108,18 @@ quantity_theorical
|
||||
|
||||
### Tolerances
|
||||
|
||||
> **Gap to Confirm**
|
||||
> Full remaining-tolerance control in `LotQt.add_physical_lots` /
|
||||
> `LotQt.add_physical_lot` still needs confirmation.
|
||||
>
|
||||
| Point | Target Rule |
|
||||
| Point | Rule |
|
||||
| --- | --- |
|
||||
| Level | Global tolerance on line or contract. |
|
||||
| Level | Tolerance is defined on the `purchase` / `sale` header. |
|
||||
| Inheritance | Lines inherit the header tolerance by default. |
|
||||
| Transport | No independent tolerance per transport. |
|
||||
| Over-execution | Consumes remaining tolerance. |
|
||||
| Under-execution | Restores remaining tolerance. |
|
||||
| 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. |
|
||||
| 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. |
|
||||
| Other lines | Their `+` tolerance is reduced according to the remaining envelope. |
|
||||
| Under-execution | Mechanically restores tolerance available to other lines on the next recalculation. |
|
||||
|
||||
## Developer Section
|
||||
|
||||
|
||||
@@ -107,16 +107,18 @@ quantity_theorical
|
||||
|
||||
### Tolérances
|
||||
|
||||
> **Gap à confirmer**
|
||||
> Le contrôle complet de tolérance restante dans `LotQt.add_physical_lots` /
|
||||
> `LotQt.add_physical_lot` reste à confirmer.
|
||||
>
|
||||
| Point | Règle cible |
|
||||
| Point | Règle |
|
||||
| --- | --- |
|
||||
| Niveau | Tolérance globale sur ligne ou contrat. |
|
||||
| Niveau | La tolérance est définie au header `purchase` / `sale`. |
|
||||
| Héritage | Les lignes héritent de la tolérance header par défaut. |
|
||||
| Transport | Pas de tolérance indépendante par transport. |
|
||||
| Surconsommation | Consomme la tolérance restante. |
|
||||
| Sous-consommation | Restitue de la tolérance restante. |
|
||||
| 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. |
|
||||
| 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. |
|
||||
| Autres lignes | Leur tolérance `+` est réduite selon l'enveloppe restante. |
|
||||
| Sous-consommation | Restitue mécaniquement de la tolérance disponible aux autres lignes lors du recalcul suivant. |
|
||||
|
||||
## Section développeur
|
||||
|
||||
|
||||
Reference in New Issue
Block a user