mirror of
https://github.com/grocy/grocy.git
synced 2026-04-04 03:46:16 +02:00
Only move it if it's moving
This commit is contained in:
parent
e2e2cb6d93
commit
4374712346
|
|
@ -1059,7 +1059,7 @@ class StockService extends BaseService
|
|||
}
|
||||
if ($product->move_on_open) {
|
||||
$locationIdTo = $product->default_consume_location_id;
|
||||
if ($locationIdTo) {
|
||||
if ($locationIdTo && $locationIdTo !== $stockEntry->location_id) {
|
||||
$this->TransferProduct($stockEntry->product_id, $amount, $stockEntry->location_id, $locationIdTo, $stockEntry->stock_id, $transactionId);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user