Travis Raup
340832c361
Feature: Stock Purchase Metrics ( #2135 )
...
* Feature: Stock Purchase Metrics
* chart update
* Refactor to chartjs
* More suggestion edits
- locale in javascript
- global translations
- commit migrations sql file
* Rename 0215.sql to 0216.sql
Fixed merge conflict
* Fixed merge conflict
* Applied code style
* Added missing demo data translations
* Removed unused package "canvasjs"
* Don't include daterangepicker globally when only needed on a single page / fixed view section imports
* Rename this to "Spendings" / name it more generically "Stock reports"
* Reuse the existing product_price_history view
* Final cleanup
* Whitespace fix
---------
Co-authored-by: Travis Raup <travis.raup@platform.sh>
Co-authored-by: Bernd Bestel <bernd@berrnd.de>
2023-04-01 17:05:41 +02:00
Bernd Bestel
3d01854fa1
Don't use double quotes for SQL string literals (references #2170 )
2023-03-16 21:16:27 +01:00
Bernd Bestel
7336693ca2
Optimized stock_missing_products
view ( fixes #2154 )
2023-03-02 19:36:57 +01:00
Bernd Bestel
d8d3c3ef0b
Split the quick consume and open amount product option ( closes #2127 )
2023-02-05 20:37:39 +01:00
Bernd Bestel
efc7b999bb
Fixed product average price/last price/price history chart handling regarding empty/0 prices ( fixes #2106 )
2023-01-13 13:19:22 +01:00
Bernd Bestel
4e56dee6f0
Finalized "Auto reprint stock entry label" ( closes #2092 )
2023-01-05 20:12:15 +01:00
Bernd Bestel
76500c57bd
Optimize recipe ingredient costs/calories calculation when only_check_single_unit_in_stock is used ( closes #780 )
2022-12-26 19:48:26 +01:00
Bernd Bestel
0585e80c70
Implemented "Default quantity unit consume" ( closes #1845 )
2022-12-26 11:11:55 +01:00
Bernd Bestel
2d62f8ddeb
Automatically create a default (product specific 1 to 1) QU conversion when a product with qu_stock != qu_purchase was created and when no default QU conversion applies
2022-12-26 09:28:18 +01:00
Bernd Bestel
b76abf54ab
Simplified qu_factor_purchase_to_stock handling
2022-12-26 09:20:41 +01:00
Daniel Albert
79590cd5ac
Add migration for improved quantity_unit_conversions_resolved view ( #2082 )
2022-12-26 09:06:17 +01:00
Bernd Bestel
0229d187ae
Removed qu_factor_purchase_to_stock (migrated existing factors to normal product specific QU conversions)
2022-12-25 19:48:22 +01:00
Bernd Bestel
407344e86a
Fixed recipe ingredient costs/calories calculation when product substitution and unit conversions is involved at the same time ( fixes #2075 )
2022-12-21 20:16:22 +01:00
Bernd Bestel
2ebb9b2cd9
Show product group Userfields on the shopping list ( closes #2069 )
2022-12-18 20:56:02 +01:00
Bernd Bestel
50fac692ad
Added a dialog to show product related resolved QU conversions (references #2056 and #1360 )
2022-12-04 19:02:15 +01:00
Daniel Albert
d889e9d3ad
Fix quantity_unit_conversions_resolved view ( #2057 )
...
This change makes the view work for products to which only default
conversions apply.
Before, they would not have appeared in the results.
2022-12-04 18:39:33 +01:00
Bernd Bestel
daa0a59c5f
Support transitive QU conversions on the frontend (references #2056 , closes #1360 )
2022-12-04 13:12:01 +01:00
Bernd Bestel
46313e2c75
Applied code formatting rules for #2056
2022-12-04 12:33:12 +01:00
Daniel Albert
541c0be6be
Add support for transitive unit conversions ( #2056 )
...
* Add support for transitive unit conversions
* Rewrite quantity_unit_conversions_resolved view
2022-12-04 12:18:18 +01:00
Bernd Bestel
e8f76e5694
Prevent adding recipe ingredients with a unit for which no conversion exists ( closes #2013 )
...
Wasn't a problem of the web frontend, only possible by externally/manually using the API and not thinking about that that's bullshit.
2022-09-30 12:32:39 +02:00
Bernd Bestel
af4715e17f
Fixed product average price rounding
2022-08-29 20:56:15 +02:00
Bernd Bestel
c0d0b8fc90
Fixed default consume rule ORDER BY handling related to stock_next_use ( fixes #1979 )
2022-08-26 11:15:15 +02:00
Bernd Bestel
c396c2a84c
Also update from_qu_id and to_qu_id of inverse unit conversions automatically ( closes #1977 )
2022-08-24 21:10:22 +02:00
Bernd Bestel
52e2c6d480
Fixed qu_id_stock change handling related to product_barcode amounts ( fixes #1976 )
2022-08-22 23:58:34 +02:00
Bernd Bestel
2fbd559105
Fixed qu_id_stock change handling related to the products own amount properties ( fixes #1975 )
2022-08-22 23:46:47 +02:00
Bernd Bestel
58c6b72d77
Fixed qu_id_stock change handling when needed conversion is only defined by the products qu_factor_purchase_to_stock ( fixes #1973 )
2022-08-22 20:11:57 +02:00
Bernd Bestel
dfe9868a48
Fixed qu_id_stock change handling when needed conversion is only defined globally ( fixes #1974 )
2022-08-22 19:53:58 +02:00
Bernd Bestel
06968ac289
Fixed stock entry Userfield edit handling ( fixes #1969 )
2022-08-18 21:29:19 +02:00
Bernd Bestel
a80e048c2d
Optimized product_barcodes
handling (references #1928 )
2022-06-30 13:38:30 +02:00
Bernd Bestel
bef261d869
Fixed average shelf life (productcard) for edited stock entries ( fixes #1924 )
2022-06-27 20:26:32 +02:00
Bernd Bestel
27582611c1
Split user setting stock_decimal_places_prices
into separate settings for input/display ( closes #1893 )
2022-06-04 14:09:35 +02:00
Bernd Bestel
3b8944d61b
Fixed recipes_pos_resolved.missing_amount calculation (references #1903 )
2022-06-01 20:32:31 +02:00
Bernd Bestel
e757cab0da
Fixed recipe ingredient costs/calories when using substituted product with unit conversions ( fixes #1903 )
2022-05-29 22:48:48 +02:00
Rosemary Orchard
5e30e89737
Add support for "Move on Open" ( #1863 )
...
* Add functionality to move a product when it is opened
* Update the API to support this (and some other new fields)
* Remove console, update move on open when either the default or the consume location change
* Fix conflict from fridge
* Ignore .DS_STORE from macOS
* Fix the migration conflict
* Fix the default location not appending properly
* Revert changes no longer needed
* Fix the checkbox disable logic, and call the function on page load
* Simplify the transfer to use the existing function (which also adds logs)
* Only move it if it's moving
* Code formatting / naming
* Clarify help text (it's not always about one unit, but about the corresponding amount opened)
* Handle splitted stock entries + optimized/unified product property checks
* Added UI feedback on auto moving
Co-authored-by: Bernd Bestel <bernd@berrnd.de>
2022-04-18 18:25:08 +02:00
Bernd Bestel
0152f1c69d
Fixed typo
2022-04-17 21:32:54 +02:00
Bernd Bestel
00ac935367
Enforce a conversion factor of 1 between QU stock/purchase when they are the same (references #1862 )
2022-04-17 21:28:58 +02:00
Bernd Bestel
35474f2466
Improved QU conversion validation messages (references #1844 )
2022-04-07 18:12:02 +02:00
Bernd Bestel
ca77ba6d19
Improved QU conversion validation messages (references #1844 )
2022-04-07 07:26:06 +02:00
Bernd Bestel
6ecf94073d
Automatically create/update/delete inverse QU conversions ( closes #1844 )
2022-04-06 22:21:21 +02:00
Bernd Bestel
4da546fc80
Don't compact stock entries with userfields
2022-04-06 19:07:33 +02:00
Bernd Bestel
03bba4b9e5
Fixed "Search for recipes containing this product" ( fixes #1842 )
2022-04-05 18:21:25 +02:00
Bernd Bestel
61ed756dd0
Implemented "default consume location" handling ( closes #1365 )
2022-04-03 21:15:05 +02:00
Bernd Bestel
97626b4a59
Added userfield default values for userfield types date & datetime ( closes #1166 )
2022-04-03 14:32:31 +02:00
Bernd Bestel
3efecb8bed
Make it possible to manually re-assign chores ( closes #1492 , references #1830 )
2022-04-03 13:56:14 +02:00
Bernd Bestel
2042db29ee
Use prefers-color-scheme for night mode by default ( closes #1334 )
2022-04-02 19:26:55 +02:00
Bernd Bestel
3e4f2eaf5d
Delete userfield values when deleting a product/chore/battery/userfield ( closes #1632 )
2022-04-02 18:05:54 +02:00
Bernd Bestel
6a50f74a14
Optimizations regarding displaying prices ( closes #1743 )
2022-04-02 17:49:35 +02:00
Bernd Bestel
7ad979cba9
Also convert prices when changing a products stock QU (references #1326 )
2022-04-02 16:00:47 +02:00
Bernd Bestel
a5ff947936
Show the substituted product for parent product ingredients currently not in-stock ( closes #1797 )
2022-04-02 11:54:07 +02:00
Bernd Bestel
ebfc55064e
Prevent adding "Disable own stock"-products to stock (references #564 )
2022-04-01 19:52:43 +02:00