Jump to content

Products quantities: Difference between revisions

Some more details
(Generic formula added)
(Some more details)
Line 44: Line 44:
Any generic quantity formula should reference the product(-name), the container and a volume or weight measure. The productname and container should (?) reference the corresponding fields.
Any generic quantity formula should reference the product(-name), the container and a volume or weight measure. The productname and container should (?) reference the corresponding fields.


The top level quantity formula, i.e. the package a customer buys is:
The quantity formula is:<br \>
<big>container_unit x package_name x product_name x quantity_value x quantity_unit</big>
<big>container_multiplyer x container_name x product_multiplyer x (sub_)product_name x quantity_value x quantity_unit</big>


For example:
For example:
* 1 bottle of red wine comprising 70 cl (on the bottle indicated as "70 cl")
* 1 bottle of red wine comprising 70 cl (on the bottle indicated as "70 cl");
* 1 package of granola cookies with a total weight of 276 g (just printed as 276g), which is equivalent to:
** 1 package of 12 biscuits with a total weight of 276g, which is equivalent to:
** 1 package of 12 biscuits with an individual weight of 23g per biscuit.


=== Practical usage ===
=== Practical usage ===
3,543

edits