...Человеческий поиск в разработке...
- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/lib/entity/paymentdocumentsrepository.php
- Класс: Bitrix\Crm\Entity\PaymentDocumentsRepository
- Вызов: PaymentDocumentsRepository::fetchDocuments
private function fetchDocuments() { $documents = $this->fetchPaymentDocuments(); $shipments = $this->fetchShipments(); if ($shipments) { $shipmentDocuments = $this->fetchShipmentDocuments($shipments); $documents = array_merge($documents, $shipmentDocuments); if ($this->isUsedInventoryManagement) { $realizationDocuments = $this->fetchRealizationDocuments($shipments); $documents = array_merge($documents, $realizationDocuments); } } $documents = array_merge($documents, $this->fetchCheckDocuments()); foreach ($documents as &$document) { if ($document['CURRENCY'] && $document['CURRENCY'] !== $this->currencyId) { $document['SUM'] = \CCrmCurrency::ConvertMoney( $document['ORIG_SUM'], $document['ORIG_CURRENCY'], $this->currencyId ); $document['CURRENCY'] = $this->currencyId; } if (isset($document['DATE'])) { $document['FORMATTED_DATE'] = ConvertTimeStamp($document['DATE']->getTimestamp(), 'SHORT'); } } $this->documents = $documents; }