chore(admin-dashboard): dedupe add-refund-receipt link (reuse fixRefundReceiptUrl)

This commit is contained in:
萝卜
2026-03-16 17:05:46 +08:00
parent 73e557230a
commit cef5783612
2 changed files with 8 additions and 1 deletions

View File

@@ -312,6 +312,7 @@
$hasReceiptEvidence = (data_get($po->meta, 'payment_summary.total_amount') !== null)
|| (data_get($po->meta, 'payment_receipts.0.amount') !== null);
$fixReceiptUrl = \App\Support\BackUrl::withBackAndFragment('/admin/platform-orders/' . $po->id, $selfWithoutBack, 'add-payment-receipt');
$fixRefundReceiptUrl = \App\Support\BackUrl::withBackAndFragment('/admin/platform-orders/' . $po->id, $selfWithoutBack, 'add-refund-receipt');
$noReceiptListUrl = \App\Support\BackUrl::withBack('/admin/platform-orders?payment_status=paid&receipt_status=none', $selfWithoutBack);
$syncErrMsg = (string) (data_get($po->meta, 'subscription_activation_error.message') ?? '');
@@ -498,7 +499,7 @@
<span class="muted"></span>
<a class="link" href="{!! $scanGoRefundUrl !!}">去核对退款</a>
<span class="muted"></span>
<a class="link" href="{!! \App\Support\BackUrl::withBackAndFragment('/admin/platform-orders/' . $po->id, $selfWithoutBack, 'add-refund-receipt') !!}">去补退款记录</a>
<a class="link" href="{!! $fixRefundReceiptUrl !!}">去补退款记录</a>
</div>
@endif
@if((string) $po->order_type === 'renewal' && empty($po->site_subscription_id))