<?php

declare(strict_types=1);

namespace App\Console\Commands;

use App\Business\Inventory\InventoryExceptionService;
use Illuminate\Console\Command;

class DberpInventoryExceptionsSynchronizeCommand extends Command
{
    protected $signature = 'dberp:inventory-exceptions-sync';

    protected $description = '同步库存异常快照（批次、序列号、盘点差异、补货建议）';

    public function handle(InventoryExceptionService $exceptionService): int
    {
        $exceptionService->synchronize();

        $this->info('库存异常快照同步完成。');

        return self::SUCCESS;
    }
}
