diff --git a/services/StockService.php b/services/StockService.php index 2b3c20d7..52685a9f 100644 --- a/services/StockService.php +++ b/services/StockService.php @@ -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,