Jump to content

Products quantities: Difference between revisions

Small refactor and completions
No edit summary
(Small refactor and completions)
Line 1: Line 1:
== Quantities ==
Collecting quantity isn't so simple:
* we can see various units
* we can see various ways of dealing with net weight and drained weight
* sometimes portions are well specified and sometimes not
* we can see many ways of ordering printed data on the packages
* ...
=== Units ===
...
=== e sign ===
The ℮ is used in Europe and other countries, at least Australia: https://www.industry.gov.au/sites/default/files/2019-04/guide-to-the-average-quantity-system.pdf (p. 12)
It seems to refer to the Average Quantity System (AQS) which is in use in Australia, Canada, European Union, India, Japan, New Zealand, South Africa and Switzerland -- source: https://www.sfa.gov.sg/docs/default-source/tools-and-resources/resources-for-businesses/avabriefingonaqsslides1 (slide 3). I'll put all in the wiki.
== How to enter the data ==
For the moment, the best is to enter the data as it is printed on the product.
== How to handle it ==
== How to handle it ==
=== Logic to handle it ===
=== Logic to handle it ===
...
=== Existing libraries to parse weights and quantities ===
=== Existing libraries to parse weights and quantities ===
* https://github.com/iancanderson/ingreedy
* https://github.com/iancanderson/ingreedy