new: make the eye icon work to see an invoice in admin customer view

This commit is contained in:
Valentin Lab
2025-10-04 15:37:28 +02:00
parent 7913576f1a
commit c0737e3bce
6 changed files with 35 additions and 13 deletions

View File

@@ -36,7 +36,13 @@ class Invoices
public static function view($uuid)
{
$data = self::getFullByUUID($uuid)->toArray();
$invoice = self::getFullByUUID($uuid);
if (! $invoice) {
return false;
}
$data = $invoice->toArray();
$data['payment_type'] = InvoicePayments::getPaymentType($data['payment_type']);
$data['status'] = self::getStatus($data['status']);