View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0011853 | Taler | wallet-core | public | 2026-10-06 11:09 | 2026-10-06 11:14 |
| Reporter | MarcS | Assigned To | Florian Dold | ||
| Priority | high | Severity | major | Reproducibility | have not tried |
| Status | assigned | Resolution | open | ||
| Product Version | 1.6 | ||||
| Summary | 0011853: Need calls getUnits() and getUnitById | ||||
| Description | Merchant units are not yet defined in https://docs.taler.net/wallet/wallet-core.html but in https://docs.taler.net/core/api-merchant.html#managing-measurement-units ProductSold has a field "unit" which identifies a merchant unit by name. However, this is not unique - different merchants could define the same name but with different specs (like different exchanges could use the same currency name. We solved that with ScopeInfo). Luckily there is already a <Unique serial for the unit>: "unit_serial: Integer" But we currently don’t get this unique identifier in ProductSold, only the (ambiguous) name. So we need to add the field "unit_serial", and deprecate the field "unit". Finally wallet-core needs to provide calls "getUnits()" and "getUnitById(serial: Integer)". | ||||
| Tags | No tags attached. | ||||