Change index sites for invoices and payments.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user