Answer the question
In order to leave comments, you need to log in
How to write a Yii2 condition correctly?
There is an expression in the function:
return self::find()->where(['or',
['in', 'order_status', self::$orderStatusesForCookWorker],
['is', 'order_status', null]
])
->andWhere(['pos_id' => $seller->pos_id])
->with('packagings')
->andWhere(['DATE(order_datetime)' => date('Y-m-d')])
->all();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question