View Issue Details

IDProjectCategoryView StatusLast Update
0010506Talermerchant backendpublic2025-10-17 20:59
ReporterBohdan Assigned ToBohdan  
PrioritynormalSeveritymajorReproducibilityalways
Status assignedResolutionopen 
Product Versiongit (master) 
Target Version1.3 
Summary0010506: Standardised units of products for Merchant Backend
DescriptionTo 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.
TagsNo tags attached.

Relationships

related to 0010382 confirmed Standardised units for SPA 
related to 0010507 assignedBohdan New type of templates that includes products selection 

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2025-10-17 20:49 Bohdan New Issue
2025-10-17 20:49 Bohdan Status new => assigned
2025-10-17 20:49 Bohdan Assigned To => Bohdan
2025-10-17 20:59 Bohdan Relationship added related to 0010382
2025-10-17 20:59 Bohdan Relationship added related to 0010507