对账差额
@php $delta = (float) ($summaryStats['reconciliation_delta'] ?? 0); @endphp
¥{{ number_format($delta, 2) }}
diff --git a/tests/Feature/AdminPlatformOrderSummaryCardsShouldHaveJumpLinksTest.php b/tests/Feature/AdminPlatformOrderSummaryCardsShouldHaveJumpLinksTest.php
new file mode 100644
index 0000000..235dfa8
--- /dev/null
+++ b/tests/Feature/AdminPlatformOrderSummaryCardsShouldHaveJumpLinksTest.php
@@ -0,0 +1,36 @@
+seed();
+
+ $this->post('/admin/login', [
+ 'email' => 'platform.admin@demo.local',
+ 'password' => 'Platform@123456',
+ ])->assertRedirect('/admin');
+ }
+
+ public function test_platform_order_summary_cards_should_have_jump_links(): void
+ {
+ $this->loginAsPlatformAdmin();
+
+ $res = $this->get('/admin/platform-orders');
+ $res->assertOk();
+
+ $html = (string) $res->getContent();
+ $this->assertStringContainsString('data-role="po-summary-jump-links"', $html);
+ $this->assertStringContainsString('href="#po-summary-card-paid-no-receipt"', $html);
+ $this->assertStringContainsString('href="#po-summary-card-reconcile-mismatch"', $html);
+ $this->assertStringContainsString('href="#po-summary-card-syncable"', $html);
+ $this->assertStringContainsString('href="#po-summary-card-renewal-missing-sub"', $html);
+ }
+}