mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 20:26:42 +00:00
Fixed Location Content Sheet product ordering (fixes #590)
This commit is contained in:
@@ -3,6 +3,7 @@ If you run grocy in a subdirectory, you need to set a new `config.php` setting (
|
|||||||
|
|
||||||
### Stock fixes
|
### Stock fixes
|
||||||
- Fixed purchase/consume/inventory problems when `FEATURE_FLAG_STOCK_LOCATION_TRACKING` was set to `false`
|
- Fixed purchase/consume/inventory problems when `FEATURE_FLAG_STOCK_LOCATION_TRACKING` was set to `false`
|
||||||
|
- Fixed that products on the Location Content Sheet were not ordered by the product name
|
||||||
|
|
||||||
### Shopping list improvements/fixes
|
### Shopping list improvements/fixes
|
||||||
- Added an option to hide the month-calendar (in the shopping list settings / top right corner settings menu) (defaults to disabled, so please enable this option if you still want to have the month-calendar on the shopping list)
|
- Added an option to hide the month-calendar (in the shopping list settings / top right corner settings menu) (defaults to disabled, so please enable this option if you still want to have the month-calendar on the shopping list)
|
||||||
|
@@ -41,7 +41,7 @@ class StockService extends BaseService
|
|||||||
|
|
||||||
public function GetCurrentStockLocationContent()
|
public function GetCurrentStockLocationContent()
|
||||||
{
|
{
|
||||||
$sql = 'SELECT * FROM stock_current_location_content';
|
$sql = 'SELECT sclc.* FROM stock_current_location_content sclc JOIN products p ON sclc.product_id = p.id ORDER BY p.name';
|
||||||
return $this->getDatabaseService()->ExecuteDbQuery($sql)->fetchAll(\PDO::FETCH_OBJ);
|
return $this->getDatabaseService()->ExecuteDbQuery($sql)->fetchAll(\PDO::FETCH_OBJ);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user