'product_id' => $productId,
'store_id' => $store->id,
'is_archive' => false,
+ 'auto_forecast' => true,
'capacity_type' => 1,
'details' => json_encode($details, JSON_UNESCAPED_UNICODE),
'calculate' => $quantity,
'month' => $model->month,
'storeId' => $model->store_id,
'status' => 'pending',
+ 'info' => 'auto',
'startTime' => date('Y-m-d H:i:s'),
'progress' => 0,
'error' => null
$log->context = json_encode($cacheValue, JSON_UNESCAPED_UNICODE);
$log->year = (int)$cacheValue['year'];
$log->month = (int)$cacheValue['month'];
+ $log->info = $cacheValue['info'];
$log->active = 1;
$log->progress = 0;
$log->status = 1;
$year = (int)Yii::$app->request->get('year');
$month = (int)Yii::$app->request->get('month');
$store = (int)Yii::$app->request->get('store_id');
+ $changes = (int)Yii::$app->request->get('changes');
+ var_dump($year, $month, $store, $changes); die();
$taskName = "taskApRecalculate";
$scriptLauncherLog = ScriptLauncherLog::find()
->andWhere(['name' => $taskName])
'year' => $year,
'month' => $month,
'storeId' => $store,
+ 'info' => 'corrected',
'status' => 'pending',
'startTime' => date('Y-m-d H:i:s'),
'progress' => 0,
$log->category = 'autoplannogramma';
$log->prefix = 'actionAutoplannogrammaRecalculate';
$log->name = $taskName;
+ $log->info = $cacheValue['info'];
$log->context = json_encode($cacheValue, JSON_UNESCAPED_UNICODE);
$log->year = (int)$cacheValue['year'];
$log->month = (int)$cacheValue['month'];
year: $('#dynamicmodel-year').val(),
month: $('#dynamicmodel-month').val(),
store_id: store_id,
+ changes: localStorage.getItem('planChanges'),
[param26]: token26
},
success: function (data) {