feat: add PlatformOrder isReconcileMismatch and reuse in subscription summary
This commit is contained in:
@@ -74,10 +74,7 @@ class SiteSubscriptionController extends Controller
|
||||
$noReceiptOrders++;
|
||||
}
|
||||
|
||||
// reconcile_mismatch 口径:支付回执总额 与订单 paid_amount 不一致(按分取整,差额>=0.01)
|
||||
$receiptCents = (int) round($receiptTotal * 100);
|
||||
$paidCents = (int) round(((float) ($o->paid_amount ?? 0)) * 100);
|
||||
if (abs($receiptCents - $paidCents) >= 1) {
|
||||
if ($o->isReconcileMismatch()) {
|
||||
$reconcileMismatchOrders++;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user