-
-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
use Illuminate\Contracts\View\View; | ||
use Livewire\WithPagination; | ||
use LivewireUI\Modal\ModalComponent; | ||
use Shopper\Core\Models\Product; | ||
use Shopper\Core\Repositories\Ecommerce\ProductRepository; | ||
use Shopper\Core\Repositories\InventoryHistoryRepository; | ||
use Shopper\Core\Repositories\InventoryRepository; | ||
|
@@ -21,6 +22,7 @@ class UpdateVariantStock extends ModalComponent | |
|
||
public function mount(int $id): void | ||
{ | ||
/** @var Product $variant */ | ||
$this->product = $variant = (new ProductRepository())->getById($id); | ||
Check failure on line 26 in packages/admin/src/Http/Livewire/Modals/UpdateVariantStock.php GitHub Actions / P8.2 - L10.* - prefer-stable
Check failure on line 26 in packages/admin/src/Http/Livewire/Modals/UpdateVariantStock.php GitHub Actions / P8.2 - L9.* - prefer-stable
Check failure on line 26 in packages/admin/src/Http/Livewire/Modals/UpdateVariantStock.php GitHub Actions / P8.1 - L10.* - prefer-stable
Check failure on line 26 in packages/admin/src/Http/Livewire/Modals/UpdateVariantStock.php GitHub Actions / P8.1 - L9.* - prefer-stable
Check failure on line 26 in packages/admin/src/Http/Livewire/Modals/UpdateVariantStock.php GitHub Actions / P8.2 - L10.* - prefer-stable
Check failure on line 26 in packages/admin/src/Http/Livewire/Modals/UpdateVariantStock.php GitHub Actions / P8.2 - L9.* - prefer-stable
Check failure on line 26 in packages/admin/src/Http/Livewire/Modals/UpdateVariantStock.php GitHub Actions / P8.1 - L10.* - prefer-stable
Check failure on line 26 in packages/admin/src/Http/Livewire/Modals/UpdateVariantStock.php GitHub Actions / P8.1 - L9.* - prefer-stable
|
||
$this->stock = $variant->stock; | ||
Check failure on line 27 in packages/admin/src/Http/Livewire/Modals/UpdateVariantStock.php GitHub Actions / P8.2 - L10.* - prefer-stable
Check failure on line 27 in packages/admin/src/Http/Livewire/Modals/UpdateVariantStock.php GitHub Actions / P8.2 - L9.* - prefer-stable
Check failure on line 27 in packages/admin/src/Http/Livewire/Modals/UpdateVariantStock.php GitHub Actions / P8.1 - L10.* - prefer-stable
Check failure on line 27 in packages/admin/src/Http/Livewire/Modals/UpdateVariantStock.php GitHub Actions / P8.1 - L9.* - prefer-stable
Check failure on line 27 in packages/admin/src/Http/Livewire/Modals/UpdateVariantStock.php GitHub Actions / P8.2 - L10.* - prefer-stable
Check failure on line 27 in packages/admin/src/Http/Livewire/Modals/UpdateVariantStock.php GitHub Actions / P8.2 - L9.* - prefer-stable
Check failure on line 27 in packages/admin/src/Http/Livewire/Modals/UpdateVariantStock.php GitHub Actions / P8.1 - L10.* - prefer-stable
|
||
$this->realStock = $variant->stock; | ||
Check failure on line 28 in packages/admin/src/Http/Livewire/Modals/UpdateVariantStock.php GitHub Actions / P8.2 - L10.* - prefer-stable
Check failure on line 28 in packages/admin/src/Http/Livewire/Modals/UpdateVariantStock.php GitHub Actions / P8.2 - L9.* - prefer-stable
Check failure on line 28 in packages/admin/src/Http/Livewire/Modals/UpdateVariantStock.php GitHub Actions / P8.1 - L10.* - prefer-stable
Check failure on line 28 in packages/admin/src/Http/Livewire/Modals/UpdateVariantStock.php GitHub Actions / P8.1 - L9.* - prefer-stable
Check failure on line 28 in packages/admin/src/Http/Livewire/Modals/UpdateVariantStock.php GitHub Actions / P8.2 - L10.* - prefer-stable
Check failure on line 28 in packages/admin/src/Http/Livewire/Modals/UpdateVariantStock.php GitHub Actions / P8.2 - L9.* - prefer-stable
Check failure on line 28 in packages/admin/src/Http/Livewire/Modals/UpdateVariantStock.php GitHub Actions / P8.1 - L10.* - prefer-stable
|
||
|