mirror of
https://github.com/grocy/grocy.git
synced 2026-04-07 13:26:14 +02:00
StockService#GetProductDetails: include stock_value
This commit is contained in:
parent
e997815ee7
commit
5a6098aac1
|
|
@ -105,6 +105,7 @@ class StockService extends BaseService
|
|||
{
|
||||
$stockCurrentRow = new \stdClass();
|
||||
$stockCurrentRow->amount = 0;
|
||||
$stockCurrentRow->value = 0;
|
||||
$stockCurrentRow->amount_opened = 0;
|
||||
$stockCurrentRow->amount_aggregated = 0;
|
||||
$stockCurrentRow->amount_opened_aggregated = 0;
|
||||
|
|
@ -145,6 +146,7 @@ class StockService extends BaseService
|
|||
'last_purchased' => $productLastPurchased,
|
||||
'last_used' => $productLastUsed,
|
||||
'stock_amount' => $stockCurrentRow->amount,
|
||||
'stock_value' => $stockCurrentRow->value,
|
||||
'stock_amount_opened' => $stockCurrentRow->amount_opened,
|
||||
'stock_amount_aggregated' => $stockCurrentRow->amount_aggregated,
|
||||
'stock_amount_opened_aggregated' => $stockCurrentRow->amount_opened_aggregated,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user