ui: reconcile mismatch hint links to add payment receipt form
This commit is contained in:
@@ -247,6 +247,8 @@
|
||||
<div class="muted text-danger" style="margin-top:10px; margin-bottom:10px;">
|
||||
提示:该订单「回执总额 vs 已付金额」存在差异,可能对账不一致。
|
||||
<span class="muted">|</span>
|
||||
<a class="link" href="#add-payment-receipt">去补一条支付回执</a>
|
||||
<span class="muted">|</span>
|
||||
<a class="link" href="/admin/platform-orders?reconcile_mismatch=1">查看全部对账不一致订单</a>
|
||||
</div>
|
||||
@endif
|
||||
@@ -283,7 +285,7 @@
|
||||
<p class="muted">暂无支付回执记录。</p>
|
||||
@endif
|
||||
|
||||
<details style="margin-top:12px;">
|
||||
<details style="margin-top:12px;" id="add-payment-receipt">
|
||||
<summary class="muted">追加一条支付回执(不自动改状态)</summary>
|
||||
<form method="post" action="/admin/platform-orders/{{ $order->id }}/add-payment-receipt" style="margin-top:10px;">
|
||||
@csrf
|
||||
|
||||
@@ -64,6 +64,7 @@ class AdminPlatformOrderShowReconcileMismatchHintTest extends TestCase
|
||||
$this->get('/admin/platform-orders/' . $order->id)
|
||||
->assertOk()
|
||||
->assertSee('对账不一致')
|
||||
->assertSee('#add-payment-receipt', false)
|
||||
->assertSee('/admin/platform-orders?reconcile_mismatch=1', false);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user