feat(platform-orders): 列表/导出回执数优先读 payment_summary.count(含测试)
This commit is contained in:
@@ -574,7 +574,9 @@
|
||||
</td>
|
||||
<td>
|
||||
@php
|
||||
$receiptCount = count((array) (data_get($order->meta, 'payment_receipts', []) ?? []));
|
||||
$receipts = (array) (data_get($order->meta, 'payment_receipts', []) ?? []);
|
||||
$receiptSummaryCount = data_get($order->meta, 'payment_summary.count');
|
||||
$receiptCount = $receiptSummaryCount !== null ? (int) $receiptSummaryCount : count($receipts);
|
||||
@endphp
|
||||
@if($receiptCount > 0)
|
||||
<a href="/admin/platform-orders/{{ $order->id }}" class="muted">{{ $receiptCount }}</a>
|
||||
|
||||
Reference in New Issue
Block a user