Example #1
0
                        if (isset($arQuoteClientFields['CLIENT_PHONE'])) {
                            $arInvoiceProperties[$propertyKey]['VALUE'] = $arQuoteClientFields['CLIENT_PHONE'];
                        }
                        break;
                    case 'ADDRESS':
                        if (isset($arQuoteClientFields['CLIENT_ADDR'])) {
                            $arInvoiceProperties[$propertyKey]['VALUE'] = $arQuoteClientFields['CLIENT_ADDR'];
                        }
                        break;
                }
            }
        }
    }
}
unset($arQuoteClientFields);
$htmlInputs = CCrmInvoice::__MakePropsHtmlInputs($arInvoiceProperties);
// PAYER PROPERTIES
//foreach ($arInvoiceProperties as $propertyId => $property)
//{
//	if ($property['FIELDS']['CODE'] !== 'LOCATION')
//	{
//		$arResult['FIELDS']['tab_1'][] = array(
//			'id' => $propertyId,
//			'name' => $property['FIELDS']['NAME'],
//			'type' => ToLower($property['FIELDS']['TYPE']),
//			'value' => $property['VALUE']
//		);
//	}
//}
// ----------- Payer info dialog settings ----------->
$dlgSettings = array('personTypeId' => $personTypeId);