feat: reconcile mismatch row hint link to payment receipts anchor
This commit is contained in:
@@ -597,9 +597,15 @@
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
@php $rowDelta = (float) ($order->reconciliation_delta_row ?? 0); @endphp
|
||||
@if(abs($rowDelta) >= 0.01)
|
||||
<span class="muted text-danger">¥{{ number_format($rowDelta, 2) }}</span>
|
||||
@php
|
||||
$rowDelta = (float) ($order->reconciliation_delta_row ?? 0);
|
||||
// 统一口径:按分取整判断是否对账不一致,避免浮点误差导致 0.01 边界不稳定
|
||||
$isReconcileMismatchRow = (bool) $order->isReconcileMismatch();
|
||||
$reconcileShowUrl = '/admin/platform-orders/' . $order->id . '#payment-receipts';
|
||||
@endphp
|
||||
@if($isReconcileMismatchRow)
|
||||
<a class="link text-danger" href="{{ $reconcileShowUrl }}">¥{{ number_format($rowDelta, 2) }}</a>
|
||||
<div class="muted text-danger muted-xs">对账不一致</div>
|
||||
@else
|
||||
<span class="muted">¥0.00</span>
|
||||
@endif
|
||||
|
||||
@@ -235,7 +235,7 @@
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div class="card mb-20">
|
||||
<div class="card mb-20" id="payment-receipts">
|
||||
<h3>支付回执(对账留痕)</h3>
|
||||
<p class="muted muted-tight">用于“线下收款/转账/人工核对”的留痕记录(当前阶段先落 meta,不引入独立表)。</p>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user