fix view of euro now caming as float from gdt server

This commit is contained in:
einhornimmond 2021-09-13 13:38:18 +02:00
parent 764fb5110f
commit 8ff23b3dba

View File

@ -50,8 +50,8 @@ $this->assign('header', $header);
<?php if(intval($entry['gdt_entry_type_id']) == 7) : ?>
<?= $this->element('printGDT', ['number' => $entry['amount']*100.0]); ?>
<?php else : ?>
<?= $this->element('printEuro', ['number' => $entry['amount']]); ?>
<?php if($entry['amount2']) echo ' + ' . $this->element('printEuro', ['number' => $entry['amount2']]) ?>
<?= $this->element('printEuro', ['number' => $entry['amount']*100.0]); ?>
<?php if($entry['amount2']) echo ' + ' . $this->element('printEuro', ['number' => $entry['amount2']*100.0]) ?>
<?php endif; ?>
</div>
<div class="cell c2">
@ -96,8 +96,8 @@ $this->assign('header', $header);
<?php if(intval($gdtEntry['gdt_entry_type_id']) == 7) : ?>
<?= $this->element('printGDT', ['number' => $gdtEntry['amount']*100.0]); ?>
<?php else : ?>
<?= $this->element('printEuro', ['number' => $gdtEntry['amount']]); ?>
<?php if($gdtEntry['amount2']) echo ' + ' . $this->element('printEuro', ['number' => $gdtEntry['amount2']]) ?>
<?= $this->element('printEuro', ['number' => $gdtEntry['amount']*100.0]); ?>
<?php if($gdtEntry['amount2']) echo ' + ' . $this->element('printEuro', ['number' => $gdtEntry['amount2']*100.0]) ?>
<?php endif; ?>
</div>
<div class="cell c2">