结算问题

This commit is contained in:
2024-12-23 11:19:58 +08:00
parent d631ba6ea4
commit a766743e10

View File

@@ -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('该订单已增加待结算记录');
}