mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 10:47:00 +00:00 
			
		
		
		
	Skip empty foreign currency
This commit is contained in:
		| @@ -151,7 +151,7 @@ class ShowController extends Controller | ||||
|                 ]; | ||||
|             } | ||||
|             $amounts[$symbol]['amount'] = bcadd($amounts[$symbol]['amount'], $transaction['amount']); | ||||
|             if (null !== $transaction['foreign_amount'] && '' !== $transaction['foreign_amount']) { | ||||
|             if (null !== $transaction['foreign_amount'] && '' !== $transaction['foreign_amount'] && bccomp('0', $transaction['foreign_amount']) !== 0) { | ||||
|                 // same for foreign currency: | ||||
|                 $foreignSymbol = $transaction['foreign_currency_symbol']; | ||||
|                 Log::debug(sprintf('Foreign currency symbol is "%s"', $foreignSymbol)); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user