$waybillIncomingIds = $waybillIncomingArray['waybillIncomingIds'];
if (!empty($waybillIncoming)) {
- $mess['create_waybill_incoming'] = $waybillIncoming;
+ $mess['create_write_ons'] = $waybillIncoming;
}
$createEmployeeArray = $this->getCreateEmployee();
'store_guid',
'number',
'date',
-// 'write_offs_type',
'comment',
'quantity',
'summ'
])
->indexBy('id')
- ->andWhere(['and', ['status' => 2], ['active' => 1]])
+ ->andWhere(['status' => 2])
->asArray()
->all();
$waybillIncomingResult[] = [
'id' => $row['guid'],
'store_id' => $row['store_guid'],
-// 'type' => $row['write_offs_type'],
-// 'cause' => 'Документ списания в ERP ' . $row['number'],
+ 'type' => 'ревизия при передаче смены',
+ 'cause' => 'Документ ревизии при передаче смены в ERP ' . $row['number'],
'items' => $row['items'],
'summ' => $row['summ'],
'comment' => $row['comment'],