mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Merge branch 'release/3.8.4'
# Conflicts: # app/Helpers/Csv/PostProcessing/Bill.php
This commit is contained in:
@@ -26,7 +26,7 @@ class AssetAccountIban extends BasicConverter implements ConverterInterface
|
||||
|
||||
// is mapped? Then it's easy!
|
||||
if (isset($this->mapped[$this->index][$this->value])) {
|
||||
$account = $repository->find($this->mapped[$this->index][$this->value]);
|
||||
$account = $repository->find(intval($this->mapped[$this->index][$this->value]));
|
||||
Log::debug('Found mapped account for value "' . $this->value . '". It is account #' . $account->id);
|
||||
|
||||
return $account;
|
||||
|
||||
@@ -25,7 +25,7 @@ class AssetAccountName extends BasicConverter implements ConverterInterface
|
||||
|
||||
// is mapped? Then it's easy!
|
||||
if (isset($this->mapped[$this->index][$this->value])) {
|
||||
$account = $repository->find($this->mapped[$this->index][$this->value]);
|
||||
$account = $repository->find(intval($this->mapped[$this->index][$this->value]));
|
||||
|
||||
return $account;
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ class AssetAccountNumber extends BasicConverter implements ConverterInterface
|
||||
|
||||
// is mapped? Then it's easy!
|
||||
if (isset($this->mapped[$this->index][$this->value])) {
|
||||
$account = $repository->find($this->mapped[$this->index][$this->value]);
|
||||
$account = $repository->find(intval($this->mapped[$this->index][$this->value]));
|
||||
|
||||
return $account;
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ class CategoryId extends BasicConverter implements ConverterInterface
|
||||
/**
|
||||
* @return Category
|
||||
*/
|
||||
public function convert(): Budget
|
||||
public function convert(): Category
|
||||
{
|
||||
/** @var SingleCategoryRepositoryInterface $repository */
|
||||
$repository = app('FireflyIII\Repositories\Category\SingleCategoryRepositoryInterface');
|
||||
|
||||
@@ -17,7 +17,7 @@ class CategoryName extends BasicConverter implements ConverterInterface
|
||||
/**
|
||||
* @return Category
|
||||
*/
|
||||
public function convert(): Budget
|
||||
public function convert(): Category
|
||||
{
|
||||
/** @var SingleCategoryRepositoryInterface $repository */
|
||||
$repository = app('FireflyIII\Repositories\Category\SingleCategoryRepositoryInterface');
|
||||
|
||||
@@ -28,7 +28,7 @@ class Importer
|
||||
/** @var Data */
|
||||
protected $data;
|
||||
/** @var array */
|
||||
protected $errors;
|
||||
protected $errors = [];
|
||||
/** @var array */
|
||||
protected $importData;
|
||||
/** @var array */
|
||||
|
||||
@@ -20,7 +20,7 @@ class Bill implements PostProcessorInterface
|
||||
{
|
||||
|
||||
// get bill id.
|
||||
if (!is_null($this->data['bill']->id)) {
|
||||
if (!is_null($this->data['bill']) && !is_null($this->data['bill']->id)) {
|
||||
$this->data['bill-id'] = $this->data['bill']->id;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user