Subsidy balance and top-up balance
A code in a VENDING account holds two separate pots of money (EAS accounts have no balance: they are controlled by unit quota):
| Pot | Where it comes from | Credited |
|---|---|---|
| Subsidy balance | The profile: top-up value per period, capped by max balance, following the cumulative rule. | Automatically, on the profile's period. |
| Top-up balance | Money the user loads at the machine (or loaded manually for them). | On top-up; recorded in Recharges. |
How a delivery is charged
- On presenting the code, the machine checks subsidy + top-up ≥ price. If not, the delivery is rejected and logged as failed.
- On delivery, the subsidy is spent first and the top-up covers the remainder.
- The movement stores the split: Balance deducted and Recharge deducted columns in the deliveries table.
Cumulative or not
- Cumulative on: the period's top-up adds to the leftover balance, up to the profile's max balance.
- Cumulative off: the top-up replaces the balance. Anything unspent is lost when the new period is credited.
The top-up balance is never replaced by a subsidy credit: it is the user's own money.
Price: each device decides
Every VENDING device has the Charge the catalog sell price switch. When on, cashless charges the product's sell price; when off, it charges the device's price. See Cashless price.
Where to check balances
- Available balance: one row per code, with subsidy balance, top-up balance, profile, cumulative flag and the last subsidy / last top-up dates.
- The user's record: each code shows its Balance and Top-up.
The balance belongs to the code
Changing the code's value (re-key) or its profile keeps the balance and top-up. Since the line belongs to the account and cannot change, a VENDING code never loses its balance by switching to EAS.