View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0010506 | Taler | merchant backend | public | 2025-10-17 20:49 | 2025-10-17 20:59 |
Reporter | Bohdan | Assigned To | Bohdan | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | assigned | Resolution | open | ||
Product Version | git (master) | ||||
Target Version | 1.3 | ||||
Summary | 0010506: Standardised units of products for Merchant Backend | ||||
Description | To make a better UX for the future order template update, we want to introduce the idea of N+ and R+ numbers for the quantity of the products in orders. Which can theoretically be added just by changing int to float, yet it will create a possible situation: A merchant sells Gruyère 400g, described as “1 piece.” After switching to floats, a buyer could theoretically order 1.2 pieces — representing 480g — which is valid in terms of math, but nonsensical in terms of inventory management and packaging. To avoid such a situation, we have to introduce preset strings, depending on which it will be prescribed for which units, you can have a float positive number, and for which integer To int we define: Piece, Set, Custom(means merchant provided its own string, will be processed as legacy option) To float: WeightUnitTon, WeightUnitKg, WeightUnitG, WeightUnitMg, WeightUnitOunce, WeightUnitPound, SizeUnitM, SizeUnitDm, SizeUnitCm, SizeUnitMm, SizeUnitFoot, SizeUnitInch, SurfaceUnitM2, SurfaceUnitDm2, SurfaceUnitCm2, SurfaceUnitMm2, SurfaceUnitFoot2, SurfaceUnitInch2, VolumeUnitM3, VolumeUnitDm3, VolumeUnitCm3, VolumeUnitMm3, VolumeUnitFoot3, VolumeUnitInch3, VolumeUnitOunce, VolumeUnitLitre, VolumeUnitGallon, TimeUnitSecond, TimeUnitMinute, TimeUnitHour, TimeUnitDay, TimeUnitWeek, TimeUnitMonth, TimeUnitYear To keep it fully customizable, a new object has to be specified to override the predefined behavior (e.g., allow_fractional_quantity?: boolean;) GET/POST/PATCH of products is affected. Verification on the order creation must be added based on the product options. | ||||
Tags | No tags attached. | ||||