Merge branch 'stage1' of ssh://**REDACTED**/~/_cakephp/gradido_single_node into stage1

This commit is contained in:
einhornimmond 2021-03-10 15:54:25 +01:00 committed by Ulf Gebhardt
commit d87850db8c
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();