Deploy Ladill Mini / deploy (push) Successful in 23s
Staff-facing counter register at pos.ladill.com with catalog cart, cash and MoMo/card checkout via Ladill Pay, CRM timeline/import, invoice prefill, and Merchant catalog import. Co-authored-by: Cursor <cursoragent@cursor.com>
22 lines
559 B
PHP
22 lines
559 B
PHP
<?php
|
|
|
|
namespace App\Console\Commands;
|
|
|
|
use App\Services\Mini\AutoWithdrawService;
|
|
use Illuminate\Console\Command;
|
|
|
|
class ProcessAutoWithdrawals extends Command
|
|
{
|
|
protected $signature = 'mini:process-auto-withdrawals';
|
|
|
|
protected $description = 'Withdraw wallet balances that have reached each user\'s auto-withdraw threshold.';
|
|
|
|
public function handle(AutoWithdrawService $autoWithdraw): int
|
|
{
|
|
$count = $autoWithdraw->processAll();
|
|
$this->info("Processed {$count} auto-withdrawal(s).");
|
|
|
|
return self::SUCCESS;
|
|
}
|
|
}
|