Fix search code here too.

This commit is contained in:
James Cole 2025-02-05 07:46:26 +01:00
parent 41c0e6fe2d
commit 134194a95b
No known key found for this signature in database
GPG Key ID: B49A324B7EAD6D80

View File

@ -603,6 +603,7 @@ class AccountController extends Controller
}
// Log::debug(sprintf('Will process expense array "%s" with amount %s', $key, $endBalance));
$searchCode = $this->convertToNative ? $this->defaultCurrency->code : $key;
$searchCode = 3 !== strlen($searchCode) ? $this->defaultCurrency->code : $searchCode;
// Log::debug(sprintf('Search code is %s', $searchCode));
// see if there is an accompanying start amount.
// grab the difference and find the currency.