projectwife / mtesitoo-android

Android mobile app for the Tesitoo project
6 stars 5 forks source link

Need a unit of measure #23

Open JimPiquant opened 7 years ago

JimPiquant commented 7 years ago

When entering the quantity for a new product we need to also include a unit of measure - Kilos, Grams, etc. It appears on the edit screen but it should be an input when an item is created.

JimPiquant commented 7 years ago

@david-r-edgar we need some input from you about what the API supports.

carlpoole commented 7 years ago

Website has dimensions (LxWxD) and length class, and weight value and weight class. Phone references "SI UNIT" but not seeing on web. Discussion needed on how to proceed to unify both

david-r-edgar commented 7 years ago

I added "length_class_id" and "weight_class_id" to the GET product request. This follows the standard OpenCart implementation. methods to retrieve the available ids and descriptions are already available as GET /common/weight and GET /common/length.

I'd suggest the labels simply be 'unit' rather than 'SI unit', since there's no requirement for them to be SI.