# What 7.x's tariff page gained, 04-09 to 15-10-2026

Read on 15-10-2026 from `eRegulations-4.0-Public`, `-Admin`, `5.0-Admin-SPA` and `eRegulations-deploy` (origin, all branches), the pull requests' bodies and both live sites. `channel/stable` was at 7.6.48, `channel/next` at 7.6.49. Kept as written; the specifications carry what follows from it.

Unless a row says otherwise, a change is in the Public repository, reaches every site that runs `/Tariffs` (Burundi; Rwanda too since 08-10-2026), and shipped on next then stable.

| # | Date | Ticket | Pull request | Release | What the trader sees | Rules and edge cases |
|---|---|---|---|---|---|---|
| A | 04-09 | port | Public #38, Admin #25 | 7.3.0 | Burundi's calculator moved to .NET 8: search, product details, rates, preferences, estimate, `?embed=true`, CSV and print | Without credentials `/Tariffs` and `/api/tariffs/*` answer 404. Reference tables kept 7 days. 30 s time limit. OBR's missing intermediate certificate carried. Cylinder capacity asked on 8701–8705, 8709, 8716, 1 to 10 000 |
| B | 04-09 | – | Public #44, Admin #26 | 7.3.x | A first estimate with optional boxes left empty works; before, the spinner turned for ever | An empty box went as `null` and was refused (400); an error answer with no error list threw before the spinner stopped |
| C | 29-09 | ERN-1234 | #109 | 7.6.18 | The visible freight box is external freight and feeds the CIF; a new internal-freight box does not | OBR puts internal freight only in the RAD, TSR and TVA bases. External freight at 0 makes OBR answer a bare `SERVER-ERROR`; the page says "external freight cannot be zero" |
| D | 29-09 | ERN-1235 | #150 | 7.6.18 | Each of the four amounts has its own currency, converted in the browser into the declaration currency | Rates from `GetExchangeRates`, divided by the reference unit. An empty `200 []` counts as a failure. A currency without a rate (MZM) blocks the estimate. Amounts rounded to whole units after converting: 100 BIF in a USD declaration went as 0. The 7-day rate list was 0.03 % off the estimate's rate on 28-09 |
| E | 29-09 | ERN-1234, ERN-1254 | #154, Admin-SPA #75 | 7.6.20 | Four rows of amounts; "CIF value (USD)". Lists read "Name (CODE)": local, then EUR, USD, GBP, then the EAC block, then A–Z, with search | EAC block only for a member. Search is a plain substring, accents ignored (fuzzy search once found the Danish krone for "kes"). Abandoning a search keeps the currency |
| F | 01-10 | ERN-1251, ERN-1236 | #160 | 7.6.22 | Import and Export tabs. Export sends `EX`, regime 1, 2 or 3, FOB, the country as exporter and origin; destinations without the own country | OBR: DST 1 % only on 2614 and 2615, plus RIF and DMC; regimes 2 and 3 add RAD; regime 4 answers 400. A tab switch drops the other tab's result; a late answer is ignored |
| G | 02-10 | ERN-1251 | #164 | 7.6.24 | Export shows cost, insurance and internal freight, no external freight (OBR, 01-10). "FOB value" is the cost alone | OBR still adds the insurance to the export base. A reworded text needed a new key: a stored text beats a changed default |
| H | 02-10 | ERN-1251 | #169, #170 | 7.6.25 | The tabs became choice cards with a one-line description; `#export` in the address opens Export | `<base href="/">` sent the relative `#export` to the home page. A `;` in a text default shows as `|` |
| I | 08-10 | Rwanda migration | Admin #107, Public #185 | 7.6.32 | rwandatrade.rw runs the 7.x calculator against RRA (`api.stp.sw.rra.gov.rw/tariff`); every change above appeared on Rwanda with it, without a switch | RRA refuses the credentials as headers (401) and takes them in the query (200); in that mode the request log is removed, since the address holds the key. RRA refuses re-export with "Country of origin cannot be RW" |
| J | 10-10, 14-10 | ERN-1248 | #203, #218 | 7.6.40, 7.6.46 | Nothing visible; a failed estimate or lookup logs a warning | Type and at most 512 characters, one line, never the declaration or the query. A failed lookup still answers an empty 200 |
| K | 14-10 | ERN-1299 | #220 | 7.6.47 | Code boxes show the four pairs with their zeros, and a fifth box for digits 9 to 11 when they are not all zeros | The old filter dropped every `00` pair: another code shown for 323 of 6 285 Burundi lines and 133 of 6 010 Rwanda lines. National digits: Burundi 010, 020, 999; Rwanda 100, 900. Rwanda's data has 121 duplicate rows and 5 ten-digit codes |
| L | 14-10 | ERN-1300, ERN-1233 | #221, Admin #124 | 7.6.48 | Currencies are those customs quotes a rate for: Rwanda 13 → 56, Burundi 19 | Rate positive and finite. Excluded by default: XDR, DTS, ZWD, VEF, MRO, FRF, SKK, KPW, BAM, ZIG. Local currency always kept. UGS kept because RRA refuses UGX (TRF008); dropped where UGX is quoted (OBR). Before, the lists were the admin's step-cost currencies |
| M | 14-10, 15-10 | – | #215, #224 | 7.6.48, 7.6.49 | Nothing visible | 120 tariff requests a minute per client; the client is the address resolved through the trusted proxies; one IPv6 /64 is one client |
| N | 15-10 | ERN-1302 | #225 | 7.6.49 (next) | Codes typed with dots, spaces or dashes, or with 10 or 11 digits, reach the code lookup | Cause: `int.TryParse`. RRA's word search returns about 5 ranked lines; OBR's all ("oil": 167) |
| O | 15-10 | ERN-1303 | #226 | 7.6.49 (next) | The product box can be cleared; a click away never picks a line; a new product resets code boxes, units and quantities and clears the result | Boxes set up twice: the second removed the clear button and made a click away pick the highlighted line ("ken" set three countries to Kenya). A late product-details answer is ignored. Still open: hidden quantity figures are sent |

## Lessons from the bugs

1. A country's feature reached another country without a switch (I).
2. A display dropped digits of a code (K); codes were parsed as integers (N).
3. A box was set up twice, and a click away chose a line (O).
4. Late answers overwrote newer state (F, O).
5. An empty answer was taken as data (D, J).
6. Rounding after converting, stale rates, figures drifting through the currency list (D, L).
7. A secret in the address ends up in logs (I).
8. Two products shared one currency list (L).
9. A stored text beats a changed default; `;` is reserved (G, H).
10. A relative address broke under `<base>` (H).
11. The rate limit trusted a header the client writes (M).

## Not verified

- 7.6.49 (N, O) is on next only on 15-10-2026; nothing was checked on the live sites for it.
- No Jira ticket was read; OBR's answers on ERN-1235, the DTS/XDR question, OBR's "41 currencies" and RRA's guarantee answers come from notes and pull requests.
- Whether RRA would let the calculator call its service directly.
