fix some syntax errors

This commit is contained in:
Dario Rekowski on RockPI 2021-03-10 14:53:51 +00:00 committed by Ulf Gebhardt
parent 478bc660b0
commit f3d76bda73
No known key found for this signature in database
GPG Key ID: 81308EFE29ABFEBD
2 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@
namespace App\Model\Entity;
use Cake\ORM\Entity;
use Cake\I18n\Time;
/**
* StateBalance Entity

View File

@ -235,7 +235,7 @@ class TransactionCreation extends TransactionBase {
if(false === $final_balance) {
return false;
}
$target_date = new DateTime($transactionCreationEntity->target_date);
$target_date = new FrozenDate($transactionCreationEntity->target_date);
$stateBalancesTable = self::getTable('stateBalances');
$state_balance = $stateBalancesTable->newEntity();
$state_balance->amount = $this->getAmount();