$salesProducts = SalesProducts::find()
->select(['check_id', 'product_id', 'quantity'])
->where(['check_id' => $salesIds])
-
+ ->andWhere(['type_id' => 1])
->asArray()
->all();
<?php foreach ($data as $item): ?>
<tr>
<td><?= Html::encode($item['product_id']) ?>
- </td><td><?= Html::encode($item['check_id']) ?></td>
+ </td>
+ <td><?= Html::encode($item['check_id']) ?></td>
<td><?= Html::encode($item['product_name']) ?></td>
<td><?= Html::encode($item['price']) ?></td>
<td><?= Html::encode($item['quantity']) ?></td>