$monthSpeciesGoal = $service->getMonthSpeciesGoalDirty($monthSpeciesShare, $monthSubcategoryGoal);
}
+ foreach ($monthSpeciesShare as $species) {
+ $monthCategoryShareResult[$species['store_id']][$species['category']][$species['subcategory']][$species['species']]['total_sum'] = $species['total_sum'];
+ $monthCategoryShareResult[$species['store_id']][$species['category']][$species['subcategory']][$species['species']]['percent_of_month'] = $species['percent_of_month'];
+ }
<th>Подкатегория сумма</th>
<th>Подкатегория доля</th>
<th>Вид</th>
+ <th>Вид сумма</th>
+ <th>Вид доля</th>
<th>Неделя</th>
<th>Доля (%)</th>
<th>Цель месяца</th>
<td><?= $monthCategoryShare[$model->storeId][$r['category']][$r['subcategory']]['total_sum'] ?>
<td><?= Yii::$app->formatter->asPercent($monthCategoryShare[$model->storeId][$r['category']][$r['subcategory']]['percent_of_month'], 2) ?></td>
<td><?= Html::encode($r['species']) ?></td>
+ <td><?= $monthCategoryShare[$model->storeId][$r['category']][$r['subcategory']][$r['species']]['total_sum'] ?>
+ <td><?= Yii::$app->formatter->asPercent($monthCategoryShare[$model->storeId][$r['category']][$r['subcategory']][$r['species']]['percent_of_month'], 2) ?></td>
<td><?= $r['week'] ?> неделя - начало <?= \yii_app\services\AutoPlannogrammaService::getIsoWeekStart((int)date('Y'), (int)$r['week']) ?></td>
<td>
<?php if ($r['percent'] === null): ?>