Change index sites for invoices and payments.

This commit is contained in:
2025-01-17 12:10:43 +01:00
parent dcedbc71c4
commit 6427dfdc5d
3 changed files with 25 additions and 10 deletions

View File

@@ -16,7 +16,7 @@ class InvoiceController extends Controller
{
$from = $from . ' 00:00:00';
$end = $end . ' 23:59:59';
return response()->json(Invoice::whereBetween('created_at', [$from, $end])->with('address')->orderBy('created_at', 'desc')->get());
return response()->json(Invoice::whereBetween('created_at', [$from, $end])->with(['address', 'customer'])->orderBy('created_at', 'desc')->get());
}
public function open(): JsonResponse