In the stockentries view the ordering by expiration date, amount, price
and purchase date did not work as expected. b5fc64cf already addressed a
similar issue for other views. This commit now does the same: set
DataTables types on the specific columns.
Since the units being part of the "amount" column break numeric sorting,
this commit adds a "data-order" field for that column, so numeric
sorting can still work. This is done in aligment with the stockoverview
page, that already contains such an entry to facilitate proper sorting.
* Replaced timeago with moment.fromNow
* Fixed datetime when best_before_date is empty
* Removed the now unnecessary timeago package
* Removed not longer localization strings
* Check for empty instead of string comparison
Co-authored-by: Bernd Bestel <bernd@berrnd.de>
* 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>
* Hide elements when printing
* Hide elements when printing
* Also hide the title menu collapse button
* Added a print button
All print-optimized pages have that
Co-authored-by: Bernd Bestel <bernd@berrnd.de>
Always execute migration 9999 (can be used to fix things manually)
Optimized meal plan navigation / date range filtering
Prepared next release
Pulled translations from Transifex
Various code optimizations
Improve journal pages loading time (new date range filter)
Various small style adjustments (meal plan page and others)
Pulled German translations from Transifex
Show the shopping list total value (closes#1309)
Make it possible to copy recipes (closes#714)
Implemented optional "auto decimal separator for price inputs" (closes#1345)
Removed table grouped column fixed order restriction (closes#1402)
Don't filter out style, class, id attributes of html text (closes#1298)
Added product picture as column on the stock overview page (closes#1283)
Added grocycodes also for chores and batteries (+ camera barcode scanning for /choretracking and /batterytracking, this now closes#221)
More a workaround for now, the max constraint is just removed when the product has child products,
but the amount to be consumed is checked by StockService anyway, so should not be a problem...