mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-18 18:44:16 +00:00
Add account number to export #107
This commit is contained in:
@@ -58,6 +58,7 @@ class Entry
|
|||||||
public $fromAccountId;
|
public $fromAccountId;
|
||||||
/** @var string */
|
/** @var string */
|
||||||
public $fromAccountName;
|
public $fromAccountName;
|
||||||
|
public $fromAccountNumber;
|
||||||
/** @var string */
|
/** @var string */
|
||||||
public $fromAccountType;
|
public $fromAccountType;
|
||||||
/** @var string */
|
/** @var string */
|
||||||
@@ -66,6 +67,7 @@ class Entry
|
|||||||
public $toAccountId;
|
public $toAccountId;
|
||||||
/** @var string */
|
/** @var string */
|
||||||
public $toAccountName;
|
public $toAccountName;
|
||||||
|
public $toAccountNumber;
|
||||||
/** @var string */
|
/** @var string */
|
||||||
public $toAccountType;
|
public $toAccountType;
|
||||||
|
|
||||||
@@ -107,6 +109,8 @@ class Entry
|
|||||||
$entry->setFromAccountName($sourceAccount->name);
|
$entry->setFromAccountName($sourceAccount->name);
|
||||||
$entry->setFromAccountIban($sourceAccount->iban);
|
$entry->setFromAccountIban($sourceAccount->iban);
|
||||||
$entry->setFromAccountType($sourceAccount->accountType->type);
|
$entry->setFromAccountType($sourceAccount->accountType->type);
|
||||||
|
$entry->setFromAccountNumber($sourceAccount->getMeta('accountNumber'));
|
||||||
|
|
||||||
|
|
||||||
/** @var Account $destination */
|
/** @var Account $destination */
|
||||||
$destination = TransactionJournal::destinationAccount($journal);
|
$destination = TransactionJournal::destinationAccount($journal);
|
||||||
@@ -114,6 +118,7 @@ class Entry
|
|||||||
$entry->setToAccountName($destination->name);
|
$entry->setToAccountName($destination->name);
|
||||||
$entry->setToAccountIban($destination->iban);
|
$entry->setToAccountIban($destination->iban);
|
||||||
$entry->setToAccountType($destination->accountType->type);
|
$entry->setToAccountType($destination->accountType->type);
|
||||||
|
$entry->setToAccountNumber($destination->getMeta('accountNumber'));
|
||||||
|
|
||||||
return $entry;
|
return $entry;
|
||||||
|
|
||||||
@@ -339,6 +344,22 @@ class Entry
|
|||||||
$this->fromAccountName = $fromAccountName;
|
$this->fromAccountName = $fromAccountName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return mixed
|
||||||
|
*/
|
||||||
|
public function getFromAccountNumber()
|
||||||
|
{
|
||||||
|
return $this->fromAccountNumber;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param mixed $fromAccountNumber
|
||||||
|
*/
|
||||||
|
public function setFromAccountNumber($fromAccountNumber)
|
||||||
|
{
|
||||||
|
$this->fromAccountNumber = $fromAccountNumber;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
@@ -403,6 +424,22 @@ class Entry
|
|||||||
$this->toAccountName = $toAccountName;
|
$this->toAccountName = $toAccountName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return mixed
|
||||||
|
*/
|
||||||
|
public function getToAccountNumber()
|
||||||
|
{
|
||||||
|
return $this->toAccountNumber;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param mixed $toAccountNumber
|
||||||
|
*/
|
||||||
|
public function setToAccountNumber($toAccountNumber)
|
||||||
|
{
|
||||||
|
$this->toAccountNumber = $toAccountNumber;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user