}
if ($exportImportTable) {
- $writeOffs = WriteOffs::find()->select(['items', 'type'])
+ $writeOffs = WriteOffs::find()->select(['items', 'type', 'date'])
->where(['between', 'date', $weekStart, $weekEnd])
->andWhere(['store_id' => $exportImportTable->export_val])
->asArray()->all();
-
+var_dump($writeOffs);
+var_dump("---------------");
$selfCostProduct = SelfCostProduct::find()->select(['price', 'product_guid'])
->where(['between', 'date', $weekStart, $weekEnd])
->andWhere(['store_id' => $store_id])
}
}
}
-
+die;
if ($motivation) {
$motivation->save();
if ($motivation->getErrors()) {