$model = new Autoplannogramma();
$model->month = $month;
$model->year = $year;
+ $model->week = $item['week'];
$model->product_id = $item['product_id'];
$model->store_id = $item['store_id'];
$model->quantity = $item['forecast_week_pieces'];
$model->is_archive = false;
$model->capacity_type = 1;
- foreach ($item as $key => $value) {
- $this->stdout($key . ": {$value}\n", BaseConsole::FG_GREEN);
- }
if (!$model->save()) {
$errors = [];
foreach ($model->getErrors() as $attr => $attrErrors) {