Some checks failed
Tests / PHP 8.1 (push) Has been cancelled
Tests / PHP 8.2 (push) Has been cancelled
Tests / PHP 8.3 (push) Has been cancelled
20 lines
554 B
PHP
20 lines
554 B
PHP
<?php
|
|
|
|
namespace Modules\EcommerceFinance\Http\Controllers\Api;
|
|
|
|
use App\Abstracts\Http\ApiController;
|
|
use Modules\EcommerceFinance\Models\ReconciliationMatch;
|
|
|
|
class ReconciliationExceptions extends ApiController
|
|
{
|
|
public function index()
|
|
{
|
|
$matches = ReconciliationMatch::with('settlementLine.settlement.store', 'order')
|
|
->whereIn('status', ['unmatched', 'partial_matched'])
|
|
->latest('id')
|
|
->paginate(min(max((int) request('limit', 25), 1), 100));
|
|
|
|
return response()->json($matches);
|
|
}
|
|
}
|