feat(admin): improve payments and server settings
This commit is contained in:
@@ -267,6 +267,7 @@ class TransactionController extends Controller
|
||||
'public_code' => $t->public_code,
|
||||
'trans' => $t->trans,
|
||||
'description' => $t->typeLabel(),
|
||||
'direction' => $t->direction,
|
||||
'amount' => (float) $t->amount,
|
||||
'status' => $t->status,
|
||||
'status_label' => TransactionStatus::from((int) $t->status)->label(),
|
||||
@@ -283,6 +284,7 @@ class TransactionController extends Controller
|
||||
'public_code' => $inv->invoice_number,
|
||||
'trans' => null,
|
||||
'description' => 'Thanh toán đơn hàng: ' . ($inv->order?->orderItems->first()?->product?->name ?? $inv->order?->order_num),
|
||||
'direction' => 'debit',
|
||||
'amount' => (float) $inv->total,
|
||||
'status' => $inv->status,
|
||||
'status_label' => \App\Enums\Invoice\InvoiceStatus::tryFrom((int) $inv->status)?->label() ?? '-',
|
||||
@@ -368,4 +370,4 @@ class TransactionController extends Controller
|
||||
],
|
||||
]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user