admin: 平台订单列表退款相关数字点击直达追加退款面板
This commit is contained in:
@@ -1748,7 +1748,7 @@
|
|||||||
$refundTotal = (float) $order->refundTotal();
|
$refundTotal = (float) $order->refundTotal();
|
||||||
$isRefundInconsistent = (bool) $order->isRefundInconsistent();
|
$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
|
@endphp
|
||||||
@if($refundTotal > 0)
|
@if($refundTotal > 0)
|
||||||
@if($isRefundInconsistent)
|
@if($isRefundInconsistent)
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ class AdminPlatformOrderIndexReceiptRefundCountLinksContainBackTest extends Test
|
|||||||
|
|
||||||
$refundLink = '/admin/platform-orders/' . $order->id . '?' . Arr::query([
|
$refundLink = '/admin/platform-orders/' . $order->id . '?' . Arr::query([
|
||||||
'back' => $indexSelfWithoutBack,
|
'back' => $indexSelfWithoutBack,
|
||||||
]) . '#refund-receipts';
|
]) . '#add-refund-receipt';
|
||||||
|
|
||||||
$res->assertSee($receiptLink, false);
|
$res->assertSee($receiptLink, false);
|
||||||
$res->assertSee($refundLink, false);
|
$res->assertSee($refundLink, false);
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ class AdminPlatformOrderIndexReconcileRefundDeltaLinksContainBackTest extends Te
|
|||||||
|
|
||||||
$refundShowUrl = '/admin/platform-orders/' . $order->id . '?' . Arr::query([
|
$refundShowUrl = '/admin/platform-orders/' . $order->id . '?' . Arr::query([
|
||||||
'back' => $indexSelfWithoutBack,
|
'back' => $indexSelfWithoutBack,
|
||||||
]) . '#refund-receipts';
|
]) . '#add-refund-receipt';
|
||||||
|
|
||||||
$res->assertSee($reconcileShowUrl, false);
|
$res->assertSee($reconcileShowUrl, false);
|
||||||
$res->assertSee($reconcileFixUrl, false);
|
$res->assertSee($reconcileFixUrl, false);
|
||||||
|
|||||||
Reference in New Issue
Block a user