Aaron Moses
027b614050
Fix for start up bug. Re factoring singleton code had brroken due to scope of clas var.
2019-12-26 02:42:11 +00:00
Aaron Moses
a0e0870f1a
More fixes following merge
2019-12-22 23:38:30 +00:00
Aaron Moses
8d4b8c91d7
fixes for things broken
2019-12-22 23:29:22 +00:00
Aaron Moses
146c7b6011
Merge branch 'master' of https://github.com/grocy/grocy into grocy-448
2019-12-22 23:28:50 +00:00
Aaron Moses
f12766ca19
Complete removal of acpu from localisation
2019-12-22 23:10:03 +00:00
Aaron Moses
2666cb7a41
remove acpu from localisation
2019-12-22 23:07:27 +00:00
Aaron Moses
ce75d6bca8
Clean up and tuen all services into singletons
2019-12-22 22:51:54 +00:00
kriddles
6c7420ea08
Stock Service Updates ( #421 )
...
* viewjs consume: implement location and update stock specific
* Transfer Products
* services StockService#GetProductStockEntriesByLocation: add method
* services StockService#AddProduct: check for stock and locations
* services StockService: include location_id
* services StockService#LocationExists: add method
* services StockService#UndoBooking: fix based on stockRow
* Reimplement StockServer->TransferProduct (one loop for the whole action to preserve stock_id)
* Ensure that the location_id is never NULL in the stock and stock_log table (checked by an INSERT trigger, sets the products default location if empty)
* Only consider stock amount at the given location on consume, if supplied
* Restore more/old display text for "specific stock entry"
* Don't allow transfering tare weight enabled products
* Various small changes (code style, missing OpenAPI endpoint, remove location_id null checking)
* Updated translations strings
* Added transaction_id and correlation_id to stock_log entries to group them together
* ProductCard - location to default location label change
* Also undo correlated bookings on undo
* Added API endpoints for listing and undoing transactions and use them on purchase/consume/inventory/stockoverview
* Initial Stock detail page
* Allow Undo for Tranfers
* Price step to .01
* Some localization string changes & fixes
2019-12-19 19:48:36 +01:00
zebardy
35e88ba5f1
fix calendar service
2019-11-23 21:15:54 +00:00
zebardy
90c00680fa
fix chores service
2019-11-23 20:47:42 +00:00
zebardy
5b214dbf27
fix userfieldservice
2019-11-23 19:24:14 +00:00
zebardy
fce767b0ad
fix userservice
2019-11-23 17:48:19 +00:00
zebardy
a4c9239214
correct mistake
2019-11-23 17:13:03 +00:00
zebardy
f8dffbac4c
lazy loading of services in services
2019-11-23 16:45:15 +00:00
zebardy
8b9790417d
lazy loading of open api spec
2019-11-23 14:38:37 +00:00
zebardy
62d3015509
correct scope of variable
2019-11-23 13:20:57 +00:00
zebardy
86c577c7c0
correct scope for Pot variable
2019-11-21 18:56:40 +00:00
zebardy
aabc719f5b
correct indentation and variable out of scope
2019-11-21 15:51:18 +00:00
zebardy
1b458dcbd0
forgot to uncomment instance map
2019-11-21 14:50:31 +00:00
zebardy
4f6db32ba9
correct syntax error
2019-11-21 11:06:07 +00:00
zebardy
9d131ee334
stor translations in apcu instead of localisation service (due to database connection)
2019-11-21 09:06:31 +00:00
zebardy
1d9e69dbda
store localisation service in apcu
2019-11-20 22:14:47 +00:00
zebardy
06e210a0b9
try storing app in apcu
2019-11-18 22:07:52 +00:00
zebardy
962c6e9eea
fix errent line that should have been commented
2019-11-17 21:49:45 +00:00
zebardy
9f277f51b3
utilise Localisation service as a singleton
2019-11-17 19:25:56 +00:00
zebardy
aa1cc4ad88
correct typo of treating self() as a var instead of a function
2019-11-17 17:02:38 +00:00
zebardy
1659e151a7
comment out debug printing to log file
2019-11-17 16:32:48 +00:00
zebardy
72f60bc321
unable to make the constructor private
2019-11-17 15:39:42 +00:00
Aaron Moses
fca0bd73ad
use singletons to reduce need to recreate the same objects
2019-11-17 11:59:43 +00:00
Bernd Bestel
21b9c1a8aa
Always use the proper URL for meal plan links in iCal calendar export (references #417 )
2019-10-12 10:22:17 +02:00
kriddles
c6ae8cc348
Calendar descriptions (iCal export) ( #417 )
...
* controllers CalendarApiController: setDescription for events
* services CalendarService: include link to mealplan in calendar descriptions
2019-10-12 10:16:06 +02:00
Bernd Bestel
ba6bfa6a2c
Added a chore period type "yearly" ( closes #407 )
2019-10-04 11:24:51 +02:00
Bernd Bestel
e59a35c6d1
Also refresh the parent product on sub product actions on the stock overview page ( closes #394 )
2019-09-27 08:30:08 +02:00
Bernd Bestel
cf3217ada4
Fixed expired products count on stock overview page ( fixes #392 )
2019-09-26 16:42:59 +02:00
Bernd Bestel
5351828e79
Reuse existing shopping list items when adding products from the stock overview page ( closes #375 )
2019-09-24 18:27:50 +02:00
Marc Ole Bulling
f444d3e095
Fixed API call AddProductToShoppingList ( #376 )
...
$productId->id was undefined, therefore all items added to the shopping list with the API call had a null entry for "product_id"
2019-09-24 15:50:35 +02:00
Bernd Bestel
53c56cc1cb
Include meal plan recipes in the calendar ( closes #368 )
2019-09-24 09:40:56 +02:00
Bernd Bestel
66571f662f
Hotfix (will be included in v2.5.0 release): Don't break image loading when php-gd extension is not installed
2019-09-22 14:48:50 +02:00
Bernd Bestel
d16f3c2daf
Optimized demo instance localization & data handling
2019-09-22 08:21:15 +02:00
Bernd Bestel
d8360993cc
Internal change that the demo instances (stable and pre-release) can be served through a single instance for all localizations (references #241 )
2019-09-21 15:07:29 +02:00
Bernd Bestel
e4437f5db1
Fixed that "Spoil rate" and "Average shelf life" on the product card was wrong in most cases
2019-09-21 13:30:44 +02:00
Bernd Bestel
c228126c3a
Added a new field calories for products ( closes #268 )
2019-09-20 20:06:24 +02:00
Bernd Bestel
292b652437
Updated localizations & improved some special and demo translation string data handling
2019-09-20 16:26:50 +02:00
Bernd Bestel
35a409f462
Fixed/refined some things regarding purchase/consume/inventory of products with enabled tare weight handling
2019-09-19 21:10:36 +02:00
Bernd Bestel
a4d479d047
Also consider opened products for minimum stock amounts (optionally, but by default) ( closes #353 )
2019-09-19 18:11:03 +02:00
Bernd Bestel
5e9a7fb7ca
Implemented browser barcode scanning ( closes #102 )
2019-09-19 12:48:02 +02:00
Bernd Bestel
ca470ed4ee
Fixed version display in prerelease mode
2019-09-18 17:27:47 +02:00
Bernd Bestel
096fb7a116
Implement custom entities / objects ( closes #242 )
2019-09-18 16:18:15 +02:00
Bernd Bestel
918f84f568
Lazy load all images to increase page load times (references #275 )
2019-09-18 13:59:37 +02:00
Bernd Bestel
d209c0bd22
Automatically downscale pictures to reduce page loading times ( closes #275 )
2019-09-18 11:04:59 +02:00