|
|
@@ -87,7 +87,7 @@ class SystemStoreProductStockLog extends BaseModel
|
|
|
}
|
|
|
if ($number > 0) {
|
|
|
$balance = $stock['stock'] + $number;
|
|
|
- SystemStoreProductStock::where('id', $stock['id'])->inc('stock', $number)->update();
|
|
|
+ SystemStoreProductStock::where('id', $stock['id'])->inc('stock', $number)->update(['in_use' => 1]);
|
|
|
$pm = 1;
|
|
|
$add_time = time();
|
|
|
$stock_id = $stock['id'];
|