mirror of
https://github.com/grocy/grocy.git
synced 2026-04-07 05:16:15 +02:00
services StockService: include location_id
This commit is contained in:
parent
00f7a241f6
commit
d76b488a05
|
|
@ -322,7 +322,8 @@ class StockService extends BaseService
|
||||||
'transaction_type' => $transactionType,
|
'transaction_type' => $transactionType,
|
||||||
'price' => $stockEntry->price,
|
'price' => $stockEntry->price,
|
||||||
'opened_date' => $stockEntry->opened_date,
|
'opened_date' => $stockEntry->opened_date,
|
||||||
'recipe_id' => $recipeId
|
'recipe_id' => $recipeId,
|
||||||
|
'location_id' => $stockEntry->location_id
|
||||||
));
|
));
|
||||||
$logRow->save();
|
$logRow->save();
|
||||||
|
|
||||||
|
|
@ -345,7 +346,8 @@ class StockService extends BaseService
|
||||||
'transaction_type' => $transactionType,
|
'transaction_type' => $transactionType,
|
||||||
'price' => $stockEntry->price,
|
'price' => $stockEntry->price,
|
||||||
'opened_date' => $stockEntry->opened_date,
|
'opened_date' => $stockEntry->opened_date,
|
||||||
'recipe_id' => $recipeId
|
'recipe_id' => $recipeId,
|
||||||
|
'location_id' => $stockEntry->location_id
|
||||||
));
|
));
|
||||||
$logRow->save();
|
$logRow->save();
|
||||||
|
|
||||||
|
|
@ -460,7 +462,8 @@ class StockService extends BaseService
|
||||||
'stock_id' => $stockEntry->stock_id,
|
'stock_id' => $stockEntry->stock_id,
|
||||||
'transaction_type' => self::TRANSACTION_TYPE_PRODUCT_OPENED,
|
'transaction_type' => self::TRANSACTION_TYPE_PRODUCT_OPENED,
|
||||||
'price' => $stockEntry->price,
|
'price' => $stockEntry->price,
|
||||||
'opened_date' => date('Y-m-d')
|
'opened_date' => date('Y-m-d'),
|
||||||
|
'location_id' => $stockEntry->location_id
|
||||||
));
|
));
|
||||||
$logRow->save();
|
$logRow->save();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user