统一对账差额阈值使用 amounts.tolerance 配置

This commit is contained in:
萝卜
2026-03-13 11:25:31 +00:00
parent 916796f58e
commit ffbf68679b
3 changed files with 15 additions and 2 deletions

View File

@@ -227,7 +227,8 @@
<div class="muted muted-xs">对账不一致订单:
<a class="link" href="{{ request()->fullUrlWithQuery(['reconcile_mismatch' => '1', 'page' => null]) }}">{{ $summaryStats['reconcile_mismatch_orders'] ?? 0 }}</a>
</div>
@if(abs($delta) >= 0.01)
@php $tol = (float) config('saasshop.amounts.tolerance', 0.01); @endphp
@if(abs($delta) >= $tol)
<div class="muted text-danger mt-6">提示:差额非 0,可能存在回执金额与订单金额不一致的订单。</div>
@endif
</div>