Numéroter les tickets par caisse, sans doublon, hors-ligne compris SMP-128
À tester
Automatisable
Tablette
Desktop
Instructions
Objectif : chaque caisse numérote ses propres tickets, en ligne comme hors-ligne, sans que deux appareils émettent le même numéro.
Étapes :
- Encaisser plusieurs ventes sur la caisse A, dont une hors-ligne.
- Encaisser une vente sur la caisse B.
- Effacer les données locales de la caisse A, rouvrir une session et encaisser une nouvelle vente.
Résultat attendu : les numéros de la caisse A se suivent sans trou ni doublon, la série de la caisse B est indépendante ; après effacement, la numérotation reprend au-dessus du dernier numéro connu du serveur, jamais en arrière ; elle repart dans une nouvelle série au changement d'exercice.
Liens
Aucun lien.
Tests automatiques liés
| Source | Référence du test | Niveau |
|---|---|---|
| phpunit | OfflineCheckoutReplayTest::testHighWaterIsBucketedByGeneration | partial |
| phpunit | OfflineCheckoutReplayTest::testHighWaterReadsMaxCounterPerBucket | partial |
| phpunit | OfflineCheckoutReplayTest::testRejectsDuplicateTicketFromADifferentSale | partial |
| phpunit | OfflineCheckoutReplayTest::testRejectsTicketRefFromAnotherTillSeries | partial |
| playwright | 28-ticket-numbering.spec.js::consecutive on a till online and offline, independent per till, never backwards after a wipe | full |
| vitest | tillCounter.test.js::till counter allocation (bucketed) allocates monotonically increasing refs per bucket | partial |
| vitest | tillCounter.test.js::till counter allocation (bucketed) gives distinct numbers to concurrent allocations in a bucket | partial |
| vitest | tillCounter.test.js::till counter allocation (bucketed) keeps each till's series independent | partial |
| vitest | tillCounter.test.js::till counter allocation (bucketed) peek returns 0 for an untouched bucket | partial |
| vitest | tillCounter.test.js::till counter allocation (bucketed) rebases on a new fiscal year (New Year's Eve reset by bucket) | partial |
| vitest | tillCounter.test.js::till counter allocation (bucketed) rebases on a new generation (counter restarts in the fresh bucket) | partial |
| vitest | tillCounter.test.js::till counter recalibration (cash-session entry) lifts a wiped device (local 0) up to the server high-water | partial |
| vitest | tillCounter.test.js::till counter recalibration (cash-session entry) never moves the counter backwards (unsynced local sales stay ahead) | partial |
| vitest | tillCounter.test.js::till counter recalibration (cash-session entry) recalibrates a new generation bucket independently of the old one | partial |
| vitest | tillCounter.test.js::till ticket format helpers (must mirror TicketSeries.php) builds the prefix and the v2 padded ref (caisse-exercice-generation-compteur) | partial |
| vitest | tillCounter.test.js::till ticket format helpers (must mirror TicketSeries.php) builds the series code with a 2-digit minimum | partial |
Vidéos de test
Aucune vidéo. Les tests automatiques publient ici la vidéo de référence (succès, une seule fois) et, en cas d'échec, la vidéo d'échec à comparer.
Historique des verdicts
Aucun verdict enregistré.
Discussion
Aucun commentaire pour l'instant.