mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-15 16:57:09 +00:00
More code for new importer
This commit is contained in:
@@ -30,7 +30,7 @@ class CurrencyCode extends BasicConverter implements ConverterInterface
|
||||
*/
|
||||
public function convert($value): TransactionCurrency
|
||||
{
|
||||
Log::debug('Going to convert ', ['value' => $value]);
|
||||
Log::debug('Going to convert currency code', ['value' => $value]);
|
||||
|
||||
/** @var CurrencyRepositoryInterface $repository */
|
||||
$repository = app(CurrencyRepositoryInterface::class);
|
||||
|
@@ -32,7 +32,7 @@ class Date extends BasicConverter implements ConverterInterface
|
||||
*/
|
||||
public function convert($value): Carbon
|
||||
{
|
||||
Log::debug('Going to convert ', ['value' => $value]);
|
||||
Log::debug('Going to convert date', ['value' => $value]);
|
||||
Log::debug('Format: ', ['format' => $this->config['date-format']]);
|
||||
try {
|
||||
$date = Carbon::createFromFormat($this->config['date-format'], $value);
|
||||
|
@@ -29,7 +29,7 @@ class INGDebetCredit extends BasicConverter implements ConverterInterface
|
||||
*/
|
||||
public function convert($value)
|
||||
{
|
||||
Log::debug('Going to convert ', ['value' => $value]);
|
||||
Log::debug('Going to convert ing debet credit', ['value' => $value]);
|
||||
|
||||
if ($value === 'Af') {
|
||||
Log::debug('Return -1');
|
||||
|
@@ -31,7 +31,7 @@ class OpposingAccountIban extends BasicConverter implements ConverterInterface
|
||||
public function convert($value): Account
|
||||
{
|
||||
$value = trim($value);
|
||||
Log::debug('Going to convert ', ['value' => $value]);
|
||||
Log::debug('Going to convert opposing IBAN', ['value' => $value]);
|
||||
|
||||
if (strlen($value) === 0) {
|
||||
$this->setCertainty(0);
|
||||
|
@@ -31,10 +31,11 @@ class OpposingAccountName extends BasicConverter implements ConverterInterface
|
||||
public function convert($value): Account
|
||||
{
|
||||
$value = trim($value);
|
||||
Log::debug('Going to convert ', ['value' => $value]);
|
||||
Log::debug('Going to convert opposing account name', ['value' => $value]);
|
||||
|
||||
if (strlen($value) === 0) {
|
||||
$value = '(empty account name)';
|
||||
$this->setCertainty(0);
|
||||
return new Account;
|
||||
}
|
||||
|
||||
/** @var AccountCrudInterface $repository */
|
||||
|
Reference in New Issue
Block a user