'forecast' => null,
'fact' => null,
'deviation' => null,
+ 'is_combined' => $costsItem->is_combined
];
}
}
$result[$costsItem->order][$groupAlias] = $actualValue;
- }
+ if ($result[$costsItem->order]['is_combined'] == true
+ && (empty($result[$costsItem->order]['fact']) || $result[$costsItem->order]['fact'] == 0)) {
+ $result[$costsItem->order]['fact'] = $result[$costsItem->order]['plan'];
+ }
+ }
// Подстановка значений расходных материалов
//190 - порядок для расходных материалов