68 $listFieldsInfoAdd = $this->
getListFieldInfo($this->
getFields(), [
'filter'=>[
'ignoredAttributes'=>[Attributes::Hidden, Attributes::ReadOnly],
'ignoredFields'=>[
'ORDER_ID',
'EXTERNAL_ORDER_ID']]]);
69 $listFieldsInfoUpdate = $this->
getListFieldInfo($this->
getFields(), [
'filter'=>[
'ignoredAttributes'=>[Attributes::Hidden, Attributes::ReadOnly, Attributes::Immutable]]]);
71 foreach ($fields[
'ORDER'][
'TRADE_BINDINGS'] as $k=>$item)
74 $this->isNewItem($item)? $listFieldsInfoAdd:$listFieldsInfoUpdate
76 if(!$required->isSuccess())
78 $r->addError(
new Error(
'[tradeBindings]['.$k.
'] - '.implode(
', ', $required->getErrorMessages()).
'.'));
88 $fieldsInfo = empty($fieldsInfo)? $this->
getFields():$fieldsInfo;
89 $listFieldsInfoAdd = $this->
getListFieldInfo($fieldsInfo, [
'filter'=>[
'ignoredAttributes'=>[Attributes::HIDDEN, Attributes::READONLY], [
'ignoredFields'=>[
'ORDER_ID',
'EXTERNAL_ORDER_ID']]]]);
90 $listFieldsInfoUpdate = $this->
getListFieldInfo($fieldsInfo, [
'filter'=>[
'ignoredAttributes'=>[Attributes::HIDDEN, Attributes::READONLY, Attributes::IMMUTABLE],
'skipFields'=>[
'ID']]]);
92 if(isset($fields[
'ORDER'][
'TRADE_BINDINGS']))
94 foreach ($fields[
'ORDER'][
'TRADE_BINDINGS'] as $k=>$item)
97 $this->isNewItem($item)? $listFieldsInfoAdd:$listFieldsInfoUpdate