Unified edited stock transactions handling (fixes #2292)

This commit is contained in:
Bernd Bestel
2023-08-05 09:58:21 +02:00
parent 491ad8c791
commit 61a3a4329b
5 changed files with 138 additions and 8 deletions

View File

@@ -838,7 +838,7 @@ class StockService extends BaseService
$returnData = [];
$shoppingLocations = $this->getDatabase()->shopping_locations();
$rows = $this->getDatabase()->product_price_history()->where('product_id = :1', $productId)->orderBy('purchased_date', 'DESC');
$rows = $this->getDatabase()->products_price_history()->where('product_id = :1', $productId)->orderBy('purchased_date', 'DESC');
foreach ($rows as $row)
{
$returnData[] = [