From 3e222e00351a7e5e69f47baad3484ac3cc78e976 Mon Sep 17 00:00:00 2001 From: yueyang <2495544247@qq.com> Date: Thu, 15 Oct 2026 15:37:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=9A=E7=BB=A9=E6=98=8E=E7=BB=86=EF=BC=9A?= =?UTF-8?q?=E5=AE=9E=E6=94=B6=E5=AF=B9=E4=B8=8D=E4=B8=8A=E8=B4=A6=E5=8D=95?= =?UTF-8?q?=E6=97=B6=E4=B9=9F=E9=80=80=E5=9B=9E=E6=8C=89=E5=BA=94=E4=BB=98?= =?UTF-8?q?/=E5=B7=B2=E4=BB=98=E6=A0=B8=E5=AF=B9=EF=BC=88=E8=A6=86?= =?UTF-8?q?=E7=9B=96=E6=8B=86=E5=8D=95=E4=B8=BB=E5=8D=95=E5=AE=9E=E6=94=B6?= =?UTF-8?q?=E4=B8=BA=E7=A9=BA=E3=80=81=E5=AD=90=E5=8D=95=E6=9C=89=E5=80=BC?= =?UTF-8?q?=E7=9A=84=E6=83=85=E5=86=B5=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Console/Commands/SyncStoreReceiptOrderMatches.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Console/Commands/SyncStoreReceiptOrderMatches.php b/app/Console/Commands/SyncStoreReceiptOrderMatches.php index dcf0f8d1..a8648cfe 100644 --- a/app/Console/Commands/SyncStoreReceiptOrderMatches.php +++ b/app/Console/Commands/SyncStoreReceiptOrderMatches.php @@ -758,7 +758,9 @@ class SyncStoreReceiptOrderMatches extends Command $altValue = $altMatched ? (float) $altAmount : 0.0; // 实收有值且能对上 → 按实收核对;实收缺失(0/空)时退回「应付/已付」核对(拆单主单实收常为空)。 $payAmount = null; - if (! ($altMatched && $altValue > 0.005)) { + // 实收缺失、或实收对不上账单时,都退回去试「应付/已付」(拆单主单实收为空、 + // 或主单没写实收而子单写了值的情况都覆盖到)。 + if (! ($altMatched && abs($income + $promoAmount - $altValue) <= 0.02)) { [$payStatus, $payValue] = $this->matchOrderSide( $core, (string) $group['shop_key'],