结算问题
This commit is contained in:
@@ -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('该订单已增加待结算记录');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user