getCurrencyCode($row); $row['account_id'] = $this->getAccountId($row); $row['category_id'] = $this->getCategoryId($row, $transaction_type); $row['contact_id'] = $this->getContactId($row, $transaction_type); if ($transaction_type == 'income') { $row['document_id'] = Document::invoiceRecurring()->number($row['invoice_bill_number'])->pluck('id')->first(); } else { $row['document_id'] = Document::billRecurring()->number($row['invoice_bill_number'])->pluck('id')->first(); } return $row; } }