fix(admin-dashboard): scanline hides receipt/reconcile for non-paid orders
This commit is contained in:
@@ -321,9 +321,16 @@
|
||||
$bmpaFailedListUrl = \App\Support\BackUrl::withBack('/admin/platform-orders?bmpa_failed_only=1', $selfWithoutBack);
|
||||
|
||||
// 运营扫描用的“治理状态摘要”(不替代下方的治理提示入口,只用于快速判断)
|
||||
$receiptStatusText = $hasReceiptEvidence ? '有' : '无';
|
||||
$reconcileStatusText = $hasReceiptEvidence ? ($po->isReconcileMismatch() ? '不一致' : '一致') : '-';
|
||||
$refundStatusText = $po->isRefundInconsistent() ? '异常' : '正常';
|
||||
// 注意:为避免对“未支付订单”造成误导,回执/对账/退款在非 paid/refunded 时显示 "-"。
|
||||
$isPaid = ((string) $po->payment_status === 'paid');
|
||||
$isRefunded = ((string) $po->payment_status === 'refunded');
|
||||
|
||||
$receiptStatusText = $isPaid ? ($hasReceiptEvidence ? '有' : '无') : '-';
|
||||
$reconcileStatusText = ($isPaid && $hasReceiptEvidence)
|
||||
? ($po->isReconcileMismatch() ? '不一致' : '一致')
|
||||
: '-';
|
||||
$refundStatusText = ($isPaid || $isRefunded) ? ($po->isRefundInconsistent() ? '异常' : '正常') : '-';
|
||||
|
||||
$syncStatusText = $syncErrMsg !== '' ? '失败' : '正常';
|
||||
$bmpaStatusText = $bmpaErrMsg !== '' ? '失败' : '正常';
|
||||
$subscriptionStatusText = ((string) $po->order_type === 'renewal')
|
||||
|
||||
Reference in New Issue
Block a user