diff --git a/resources/views/admin/platform_orders/index.blade.php b/resources/views/admin/platform_orders/index.blade.php index 734d4f3..3954212 100644 --- a/resources/views/admin/platform_orders/index.blade.php +++ b/resources/views/admin/platform_orders/index.blade.php @@ -723,7 +723,7 @@
¥{{ number_format((float) ($summaryStats['total_refunded_amount'] ?? 0), 2) }}
基于 meta.refund_summary.total_amount(缺省回退汇总)
- 查看有退款订单 + 查看有退款订单
@@ -743,7 +743,7 @@
有回执口径:payment_summary.total_amount 存在或 payment_receipts 有记录
- 查看无回执订单 + 查看无回执订单
@@ -753,7 +753,7 @@
无 payment_summary 且无 payment_receipts
- 查看有回执订单 + 查看有回执订单
diff --git a/tests/Feature/AdminPlatformOrderIndexSummaryReceiptRefundLinksShouldHaveDataRoleAndKeepBackTest.php b/tests/Feature/AdminPlatformOrderIndexSummaryReceiptRefundLinksShouldHaveDataRoleAndKeepBackTest.php index c6acb3e..4898749 100644 --- a/tests/Feature/AdminPlatformOrderIndexSummaryReceiptRefundLinksShouldHaveDataRoleAndKeepBackTest.php +++ b/tests/Feature/AdminPlatformOrderIndexSummaryReceiptRefundLinksShouldHaveDataRoleAndKeepBackTest.php @@ -33,6 +33,10 @@ class AdminPlatformOrderIndexSummaryReceiptRefundLinksShouldHaveDataRoleAndKeepB 'role' => 'po-summary-link-refund-orders', 'expect' => ['refund_status' => 'has'], ], + [ + 'role' => 'po-summary-link-view-refund-orders', + 'expect' => ['refund_status' => 'has'], + ], [ 'role' => 'po-summary-link-no-refund-orders', 'expect' => ['refund_status' => 'none'], @@ -41,10 +45,18 @@ class AdminPlatformOrderIndexSummaryReceiptRefundLinksShouldHaveDataRoleAndKeepB 'role' => 'po-summary-link-receipt-orders', 'expect' => ['receipt_status' => 'has'], ], + [ + 'role' => 'po-summary-link-view-receipt-orders', + 'expect' => ['receipt_status' => 'has'], + ], [ 'role' => 'po-summary-link-no-receipt-orders', 'expect' => ['receipt_status' => 'none'], ], + [ + 'role' => 'po-summary-link-view-no-receipt-orders', + 'expect' => ['receipt_status' => 'none'], + ], ]; foreach ($cases as $c) {