admin: 平台订单列表退款相关数字点击直达追加退款面板

This commit is contained in:
萝卜
2026-03-17 22:23:15 +08:00
parent 94dcb5fca1
commit 837f066881
3 changed files with 3 additions and 3 deletions

View File

@@ -1748,7 +1748,7 @@
$refundTotal = (float) $order->refundTotal();
$isRefundInconsistent = (bool) $order->isRefundInconsistent();
$refundShowUrl = \App\Support\BackUrl::withBackAndFragment('/admin/platform-orders/' . $order->id, $selfWithoutBack, 'refund-receipts');
$refundShowUrl = \App\Support\BackUrl::withBackAndFragment('/admin/platform-orders/' . $order->id, $selfWithoutBack, 'add-refund-receipt');
@endphp
@if($refundTotal > 0)
@if($isRefundInconsistent)

View File

@@ -77,7 +77,7 @@ class AdminPlatformOrderIndexReceiptRefundCountLinksContainBackTest extends Test
$refundLink = '/admin/platform-orders/' . $order->id . '?' . Arr::query([
'back' => $indexSelfWithoutBack,
]) . '#refund-receipts';
]) . '#add-refund-receipt';
$res->assertSee($receiptLink, false);
$res->assertSee($refundLink, false);

View File

@@ -84,7 +84,7 @@ class AdminPlatformOrderIndexReconcileRefundDeltaLinksContainBackTest extends Te
$refundShowUrl = '/admin/platform-orders/' . $order->id . '?' . Arr::query([
'back' => $indexSelfWithoutBack,
]) . '#refund-receipts';
]) . '#add-refund-receipt';
$res->assertSee($reconcileShowUrl, false);
$res->assertSee($reconcileFixUrl, false);