From a766743e109db56d25c14ce199bce43ecd5f91c6 Mon Sep 17 00:00:00 2001 From: liqi Date: Mon, 23 Dec 2024 11:19:58 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=93=E7=AE=97=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/forms/LedgerForm.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/forms/LedgerForm.php b/common/forms/LedgerForm.php index b9aada5..70eb2a8 100644 --- a/common/forms/LedgerForm.php +++ b/common/forms/LedgerForm.php @@ -88,7 +88,7 @@ class LedgerForm extends BaseModel if(!$store){ throw new Exception('仓库不存在'); } - $isLegder = Ledger::find()->where(['order_id' => $this->order_id])->one(); + $isLegder = Ledger::find()->where(['order_id' => $this->order_id])->andWhere(['order_type' => 1])->one(); if(!empty($isLegder)){ throw new Exception('该订单已增加待结算记录'); }