From ec072cee23e0748cca35486237af24d554451a7d Mon Sep 17 00:00:00 2001 From: James Cole Date: Sat, 22 Sep 2018 07:09:41 +0200 Subject: [PATCH] Add debug info to currency screen. --- app/Factory/TransactionFactory.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Factory/TransactionFactory.php b/app/Factory/TransactionFactory.php index a53e314045..ab66656da7 100644 --- a/app/Factory/TransactionFactory.php +++ b/app/Factory/TransactionFactory.php @@ -108,6 +108,7 @@ class TransactionFactory { Log::debug('Start of TransactionFactory::createPair()', $data); // all this data is the same for both transactions: + Log::debug('Searching for currency info.'); $currency = $this->findCurrency($data['currency_id'], $data['currency_code']); $description = $journal->description === $data['description'] ? null : $data['description']; @@ -164,6 +165,7 @@ class TransactionFactory } // set foreign currency + Log::debug('Trying to find foreign currency information.'); $foreign = $this->findCurrency($data['foreign_currency_id'], $data['foreign_currency_code']); $this->setForeignCurrency($source, $foreign); $this->setForeignCurrency($dest, $foreign);