Fix `quantity.value` to use NUMERIC type affinity.
Fix `quantity.value` to use NUMERIC type affinity.

For more info, see "Datatypes In SQLite":
    https://www.sqlite.org/datatype3.html#type_affinity

shawnbrown/gpn,shawnbrown/gpn