mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-29 18:20:01 +00:00
Catch the error in #760
This commit is contained in:
@@ -85,6 +85,7 @@ class ImportJournal
|
||||
|
||||
/**
|
||||
* @return string
|
||||
* @throws FireflyException
|
||||
*/
|
||||
public function getAmount(): string
|
||||
{
|
||||
@@ -102,6 +103,9 @@ class ImportJournal
|
||||
}
|
||||
}
|
||||
}
|
||||
if(bccomp($this->amount,'0') === 0) {
|
||||
throw new FireflyException('Amount is zero.');
|
||||
}
|
||||
|
||||
return $this->amount;
|
||||
}
|
||||
|
Reference in New Issue
Block a user