mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-12-03 19:41:54 +00:00
Fixed a bug where the opening balance could not be stored.
This commit is contained in:
@@ -2,6 +2,10 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
This project adheres to [Semantic Versioning](http://semver.org/).
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
||||||
|
|
||||||
|
## [4.4.2] - 2017-04-27
|
||||||
|
### Fixed
|
||||||
|
Fixed a bug where the opening balance could not be stored.
|
||||||
|
|
||||||
## [4.4.1] - 2017-04-27
|
## [4.4.1] - 2017-04-27
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|||||||
@@ -625,9 +625,7 @@ class AccountRepository implements AccountRepositoryInterface
|
|||||||
*/
|
*/
|
||||||
protected function validOpeningBalanceData(array $data): bool
|
protected function validOpeningBalanceData(array $data): bool
|
||||||
{
|
{
|
||||||
if (isset($data['openingBalance'])
|
if (isset($data['openingBalance']) && isset($data['openingBalanceDate'])
|
||||||
&& isset($data['openingBalanceDate'])
|
|
||||||
&& isset($data['openingBalanceCurrency'])
|
|
||||||
&& bccomp(strval($data['openingBalance']), '0') !== 0
|
&& bccomp(strval($data['openingBalance']), '0') !== 0
|
||||||
) {
|
) {
|
||||||
Log::debug('Array has valid opening balance data.');
|
Log::debug('Array has valid opening balance data.');
|
||||||
|
|||||||
Reference in New Issue
Block a user