Canteen cardKiosk 1
Till 1 · cashier
Menu
Order
- Total
- Student discount (10 %, before 11:00)
- To pay
Last receipt
Canteen manager
Daily report
Today's top-ups and payments, in the order they happened.
| No. | Time | Card | Operation | Amount |
|---|
Top-ups
·
Payments
·
Blocked cards
Release 1.0
Test environment
How this page stands in for the real system.
- The page stands in for the kiosk, one till and the manager's daily report of the canteen card system. Everything happens inside the page: no real card, bank or money is involved, and nothing is sent anywhere.
- Instead of tapping a card, you choose one of the five test cards. Instead of paying with a real bank card, you choose one of the two test bank cards.
- The system clock at the top is yours to set. It does not advance by itself; every top-up and every payment is stamped with the time it shows. If you set the clock back, the daily report still keeps the order in which things were done.
- The daily report starts with four operations from earlier today. Yours are added under them.
- Start again puts the test data back as it was. Reloading the page does the same.
Test cards
| Card | State at the start | Balance at the start |
|---|---|---|
| 0417 | active | 85.00 lei |
| 0550 | active | 990.00 lei |
| 0733 | active | 12.50 lei |
| 0102 | active | 0.00 lei |
| 0861 | blocked | 40.00 lei |
Test bank cards
| Bank card | What the bank does |
|---|---|
| ending 4242 | accepts every payment |
| ending 0002 | declines every payment |
Menu and prices
| Dish | Price |
|---|
Requirements
What release 1.0 of the canteen card system must do.
Kiosk: topping up the card
- R1
- A student tops up the canteen card at a kiosk with an amount from 5 to 500 lei, in whole lei, paid by bank card.
- R2
- After a successful payment, the kiosk shows the new balance.
- R3
- The card may hold at most 1,000 lei.
- R4
- The amount is typed with digits only; spaces before and after it are ignored. The kiosk refuses anything else (an empty field, a decimal part, letters, a sign) and any amount that R1 does not allow. A refused top-up shows a message, is not sent to the bank and does not change the balance.
- R5
- The kiosk refuses in the same way a top-up that would take the balance above 1,000 lei. A top-up that brings the balance to exactly 1,000 lei is accepted.
- R6
- If the bank declines the payment, nothing is added to the balance, and the kiosk says that the payment was declined.
Till: paying for a meal
- R7
- The cashier enters the meal line by line: a dish from the menu and a quantity from 1 to 9. A quantity is typed with digits only (spaces before and after it are ignored) and applies when Enter is pressed or the field is left. The till refuses anything else (an empty field, a decimal part, letters, a sign, 0, 10 or more) and keeps the line as it was. Choosing a dish that is already on the order raises its quantity by 1, up to 9.
- R8
- The total is the sum of price × quantity over the lines on the order. When a line is added, changed or removed, the total follows at once.
- R9
- Students receive a 10 % discount on meals paid before 11:00: the discount is 10 % of the total, and the amount to pay is the total minus the discount. From 11:00 on, there is no discount, and the amount to pay is the total.
- R10
- If the card's balance covers the amount to pay (it is equal to it or higher), the till charges the card: it takes exactly the amount to pay from the balance, prints a receipt and empties the order. If the balance does not cover it, the till refuses the meal, and the balance does not change.
- R11
- The receipt shows the lines, the total, the discount when there is one, the amount paid, the VAT included in it and the card's new balance. In this system the VAT rate is 9 %: VAT included = amount paid × 9 ÷ 109, rounded to the nearest ban.
Lost cards
- R12
- A student who has lost the card blocks it at the kiosk by typing its four-digit number as it is printed on the card, leading zero included (spaces before and after it are ignored). The kiosk refuses a number that is not a card of the system, and says so when the card is already blocked. Blocking takes effect at once; a blocked card cannot be unblocked.
- R13
- For a blocked card, no top-up and no payment is accepted: the kiosk shows its balance but offers no top-up, and the till refuses to charge it.
Daily report
- R14
- The daily report lists every top-up added to a card and every meal charged to a card, in the order they happened, each with its time, its card and its amount (for a meal, the amount paid). Refused top-ups, declined payments and refused meals move no money and are not listed.
- R15
- Under the list, the report gives the number and the sum of the top-ups, and the number and the sum of the payments, as listed.
- R16
- The report lists every blocked card with its balance.