1
0

20 Commits

Author SHA1 Message Date
cryptogopher
6b3714817c Formula reports ambiguous quantity identifiers
Formula returns error.details for Rails 4
Formula distinguishes root path (::Identifier)
Quantity validates name changes against introducing formulas'
ambiguities
2020-06-13 18:18:53 +02:00
cryptogopher
6785090045 Checking ambiguity of quantity paths in formulas 2020-06-06 00:18:13 +02:00
cryptogopher
a8d31f26d2 Simplified QuantityInput#lastBefore 2020-05-23 17:24:32 +02:00
cryptogopher
580e9156e6 Implemented QuantityInput#lastBefore 2020-05-22 22:10:34 +02:00
cryptogopher
a416e1ce9b Fixed importing Foods with QuantityValue
Fixed double flash when not followed by request
Added Food#destroy error reporting
Simplified prepare_meals with no ingredients
Renamed scope on item with subitems: subitems -> with_subitems
2020-05-20 23:33:34 +02:00
cryptogopher
fa9c329a81 Formula#calculate is using QuantityInput
Updated FormulaBuilder to properly index parts[]
2020-05-17 18:14:19 +02:00
cryptogopher
7584c650da Fixed formula validation during import of defaults
Previously it did not consider in-memory records and failed sometimes
2020-05-11 22:38:27 +02:00
cryptogopher
abd7d02b89 Added QuantityInput class 2020-05-10 21:55:12 +02:00
cryptogopher
1f5ea1cfb6 compute_quantities: allow indirect associations and model dependencies 2020-05-10 18:06:32 +02:00
cryptogopher
9d19890f6f Extracted quantity value resolving to Formula#resolve 2020-05-08 15:46:38 +02:00
cryptogopher
9c3d31c131 Fixes for formula computation
Added default quantity
2020-05-05 22:02:48 +02:00
cryptogopher
8749710330 Formula can contain model method calls 2020-05-05 01:52:34 +02:00
cryptogopher
e7a33c684f Dispplaying units of computed values
Fixed formula error messages display when filter formula not given
2020-03-25 23:07:59 +01:00
cryptogopher
2efdc08931 Added setting Formula unit in form and when loading defaults 2020-03-25 21:40:24 +01:00
cryptogopher
031b857925 Added reference to Unit in Formula
Updated defaults identifiers and units in default formulas
2020-03-25 17:57:49 +01:00
cryptogopher
08860cbfab Query optimizations 2020-03-24 22:16:27 +01:00
cryptogopher
08ac719566 Fixes after introducing Formula model 2020-03-24 00:53:02 +01:00
cryptogopher
c3b783e942 Displaying errors for uncomputable formulas in nutrients view 2020-03-21 00:38:39 +01:00
cryptogopher
9a79e8fa55 Making Formula#calculate public 2020-03-20 00:57:20 +01:00
cryptogopher
4e537f3981 Moved Formula to separate model 2020-02-16 18:34:07 +01:00