mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 12:20:22 +00:00
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)
This commit is contained in:
@@ -696,7 +696,6 @@ class StockService extends BaseService
|
||||
$lastPrice = null;
|
||||
$lastShoppingLocation = null;
|
||||
$avgPrice = null;
|
||||
$oldestPrice = null;
|
||||
if ($productLastPurchased)
|
||||
{
|
||||
$lastPurchasedDate = $productLastPurchased->purchased_date;
|
||||
@@ -707,11 +706,6 @@ class StockService extends BaseService
|
||||
{
|
||||
$avgPrice = $avgPriceRow->price;
|
||||
}
|
||||
$oldestPriceRow = $this->getDatabase()->products_oldest_stock_unit_price()->where('product_id', $productId)->fetch();
|
||||
if ($oldestPriceRow)
|
||||
{
|
||||
$oldestPrice = $avgPriceRow->price;
|
||||
}
|
||||
}
|
||||
|
||||
$product = $this->getDatabase()->products($productId);
|
||||
@@ -746,7 +740,6 @@ class StockService extends BaseService
|
||||
'quantity_unit_stock' => $quStock,
|
||||
'last_price' => $lastPrice,
|
||||
'avg_price' => $avgPrice,
|
||||
'oldest_price' => $oldestPrice,
|
||||
'last_shopping_location_id' => $lastShoppingLocation,
|
||||
'default_shopping_location_id' => $product->shopping_location_id,
|
||||
'next_due_date' => $nextDueDate,
|
||||
|
Reference in New Issue
Block a user