Bernd Bestel
af1f2aef96
Don't allow amounts <= 0 on purchase/consume
...
References https://github.com/grocy/grocy/issues/2156#issuecomment-2040336492
2024-04-05 20:12:11 +02:00
Bernd Bestel
27f9d70b56
Implemented a way to use the external barcode lookup plugin also from within the frontend as a product picker workflow
2023-11-03 20:47:43 +01:00
Bernd Bestel
35766bf5b3
Optimized CurrentVolatileStock
handling ( fixes #2341 )
2023-09-15 17:24:29 +02:00
Bernd Bestel
1f7580af3f
Fixed GetCurrentStock
caching
2023-09-02 09:12:37 +02:00
Bernd Bestel
60adda2b42
Optimized performance of CurrentVolatileStock
2023-09-01 18:11:36 +02:00
Bernd Bestel
fdbb8a045a
Optimized performance of GetProductDetails
2023-09-01 17:03:22 +02:00
Bernd Bestel
1d7f7b2992
Cache expensive stock data calculations
2023-08-06 13:28:14 +02:00
Bernd Bestel
61a3a4329b
Unified edited stock transactions handling ( fixes #2292 )
2023-08-05 09:58:21 +02:00
Bernd Bestel
d006436d49
Upgraded PHP-CS-Fixer / applied optimized rules
2023-08-02 18:44:30 +02:00
Bernd Bestel
5d48b02b37
Added the possibility to log executed SQL statements (DEV mode only)
2023-07-31 17:08:55 +02:00
Bernd Bestel
c415e2f8da
Fixed a (theoretical, not practically relevant for the target use case of Grocy) SQL injection possibility ( closes #2259 )
2023-06-22 15:07:47 +02:00
Bernd Bestel
8c033ff6c8
Revert "Cache StockService->GetCurrentStock
result"
...
This (partly) reverts commit bc5051351a6e582331c6c0f052439adf6ccb982e.
2023-05-23 21:26:53 +02:00
Bernd Bestel
bc5051351a
Cache StockService->GetCurrentStock
result
2023-05-23 17:34:38 +02:00
Bernd Bestel
5f65f2abd0
New logo
2023-05-19 18:08:26 +02:00
Bernd Bestel
d03175f75a
Added a separate QU for displaying prices ( closes #2225 )
2023-05-18 13:37:13 +02:00
Bernd Bestel
629333e1ab
Fixed QU conversion factor selection (API)
2023-05-14 17:05:28 +02:00
Bernd Bestel
dd5bd3852a
Optimized imports
2023-05-13 14:43:51 +02:00
Bernd Bestel
9cdb0908d6
Make it possible to hide locations/stores/QUs/product_groups/task_categories ( closes #2222 )
2023-05-13 14:24:52 +02:00
Bernd Bestel
df4907f5d4
Fixed a theoretical (not relevant for SQLite) SQL injection possibility (references #2201 )
2023-04-29 08:57:05 +02:00
Bernd Bestel
6857796ef0
Fixed produces product amount handling when consuming meal plan shadow recipes (references #2160 )
2023-03-12 22:45:04 +01:00
Bernd Bestel
d9667b4534
Removed type conversions where no longer needed
...
PHP 8.1 PDO SQLite now returns native data types
2023-02-06 20:22:10 +01:00
Bernd Bestel
4e56dee6f0
Finalized "Auto reprint stock entry label" ( closes #2092 )
2023-01-05 20:12:15 +01:00
Bernd Bestel
0585e80c70
Implemented "Default quantity unit consume" ( closes #1845 )
2022-12-26 11:11:55 +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
dd409b4bf9
Fixed consume amount calculation when consuming multiple substituted subproducts at once and when multiple/different conversion factors were involved ( fixes #2076 )
2022-12-21 21:00:49 +01:00
Bernd Bestel
f1bc2cc40f
Fixed that consuming partially fulfilled recipes was possible ( fixes #1981 )
2022-08-27 00:08:23 +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
Akosh Pinter
312dd8a200
Fixes for losing Stock Note field content #1961 ( #1962 )
...
* Fixed losing Note field content #1961
Fixed losing Note field content when splitting stock entries #1961
* Applied code formatting rules
Co-authored-by: Bernd Bestel <bernd@berrnd.de>
2022-08-06 17:35:11 +02:00
Bernd Bestel
57d70851c8
Fixed stock overview page status button counters related to the product option "Never show on stock overview" ( fixes #1956 )
2022-07-24 21:36:29 +02:00
Bernd Bestel
0b532f7624
Fixed StockService->ConsumeProduct $productStockAmount check ( fixes #1949 )
2022-07-18 17:35:35 +02:00
Bernd Bestel
8ab511361a
Do "auto add missing products to shopping list" also on product open actions ( fixes #1873 )
2022-04-27 22:50:20 +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
632db0d8d1
Fixed new user settings naming
2022-04-07 19:25:27 +02:00
Bernd Bestel
4da546fc80
Don't compact stock entries with userfields
2022-04-06 19:07:33 +02:00
Bernd Bestel
61ed756dd0
Implemented "default consume location" handling ( closes #1365 )
2022-04-03 21:15:05 +02:00
Bernd Bestel
a5294262e6
Added a user setting to automatically add missing products to the shopping list ( closes #1266 )
2022-04-03 13:00:14 +02:00
Bernd Bestel
f7c33a4579
Optionally show out of stock products on the location content sheet ( closes #1641 )
2022-04-01 21:55:06 +02:00
Bernd Bestel
b53d1a076f
Reviewed latest changes regarding price handling views
2022-04-01 17:04:09 +02:00
Bernd Bestel
cd60c239af
Squashed commit
...
Improved locale number display on stockoverview page
Fixed choresoverview chore execution color highlighting
Highlight recipe ingredients based on the new due score (references #1813 )
Reworked current price handling views (mostly needed for recipes)
2022-03-31 22:52:38 +02:00
Bernd Bestel
d3a39270de
Implemented notes and Userfields for stock entries ( closes #443 )
2022-03-30 17:32:53 +02:00
Bernd Bestel
66bd3f0d59
Added a new API endpoint to get all stock entries per location
...
References https://www.reddit.com/r/grocy/comments/srfwfs
2022-02-13 20:34:49 +01:00
Bernd Bestel
d1d52aea44
Move FEATURE_SETTING_STOCK_COUNT_OPENED_PRODUCTS_AGAINST_MINIMUM_STOCK_AMOUNT
to per product option ( closes #1753 )
2022-02-07 19:12:31 +01:00
Bernd Bestel
3a6f04f770
Optionally remove only done shopping list items (/stock/shoppinglist/clear
API endpoint, closes #1730 )
2022-01-06 14:07:29 +01:00
Bernd Bestel
ad0dbdfc22
Lookup product barcodes case insensitive ( fixes #1734 )
2022-01-06 13:42:38 +01:00
Bernd Bestel
a711bbd8f6
Print stock entry labels also on inventory when adding products ( closes #1713 )
2021-12-09 18:32:59 +01:00
Bernd Bestel
b83e4f53b1
Don't print stock entry labels when not desired (server side WebHook execution) (references #1686 )
2021-11-15 09:06:19 +01:00
Bernd Bestel
6070507b04
Fixed per unit stock grocycodes weren't unique per unit ( fixes #1676 )
2021-11-14 15:26:38 +01:00
Graham Christensen
a7f3f64d89
StockService: Set the product's bestBeforeDate to the freezer date if it is being purchased to a freezer ( #1672 )
...
* StockService: Set the product's bestBeforeDate to the freezer date if it is being purchased to a freezer
* Formatting / feature flag checks / proper data type comparision
* Prefill due date also on location change
Co-authored-by: Bernd Bestel <bernd@berrnd.de>
2021-11-13 17:41:04 +01:00
Bernd Bestel
4338ccc132
Restore the original due date when undoing a product opened transaction ( fixes #1659 )
2021-11-12 18:12:34 +01:00
Bernd Bestel
bed7965989
Fixed undo consume stock transaction location handling (references #1602 )
2021-09-27 17:50:19 +02:00