add transfer#list pdf download, fix helper#fixascii function
This commit is contained in:
69
backend/views/transfer/_total_easy.php
Normal file
69
backend/views/transfer/_total_easy.php
Normal file
@@ -0,0 +1,69 @@
|
||||
<?php
|
||||
use common\components\RoleDefinition;
|
||||
use yii\helpers\Html;
|
||||
use yii\helpers\Url;
|
||||
?>
|
||||
|
||||
<?php
|
||||
echo $this->render('_list_pdf_head',[ 'searchModel' =>$searchModel, 'label' => 'Napi bevételek - Egyszerű','type' =>'easy']);
|
||||
?>
|
||||
|
||||
<h2>Egyszerű összesítés</h2>
|
||||
<?php
|
||||
|
||||
if ( !isset($searchModel->output) ){
|
||||
|
||||
$pdfUrl = Url::current([ Html::getInputName($searchModel, 'output') => 'pdf']);
|
||||
echo Html::a("Teljes PDF letöltése", $pdfUrl,['class' => 'btn btn-primary btn-all' ]);
|
||||
|
||||
$pdfUrl = Url::current([ Html::getInputName($searchModel, 'output') => 'pdf', Html::getInputName($searchModel, 'outputView') => 'easy']);
|
||||
echo Html::a("Egyszerű összesítő Pdf", $pdfUrl,['class' => 'btn btn-primary' ]);
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
<h3>Bruttó</h3>
|
||||
<table class="table table-bordered table-striped table-summary">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>Bérletek</th>
|
||||
<td class="money"><?php echo $searchModel->ticketMoney?> FT</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Termékek</th>
|
||||
<td class="money"><?php echo $searchModel->productMoney?> FT</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Pénzmozgások</th>
|
||||
<td class="money"><?php echo $searchModel->moneyMovementMoneis?> FT</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Végösszeg bruttó</th>
|
||||
<td class="money"><span style='border-bottom: 1px solid black'><?php echo $searchModel->total?> FT</span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<?php if( RoleDefinition::isAdmin() ) {?>
|
||||
<h3>Nettó</h3>
|
||||
<table class="table table-bordered table-striped table-summary">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>Bérletek</th>
|
||||
<td class="money"><?php echo $searchModel->ticketMoney?> FT</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Termékek</th>
|
||||
<td class="money"><?php echo $searchModel->productMoneyNetto?> FT</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Pénzmozgások</th>
|
||||
<td class="money"><?php echo $searchModel->moneyMovementMoneis?> FT</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Végösszeg nettó</th>
|
||||
<td class="money"><span style='border-bottom: 1px solid black'><?php echo $searchModel->totalNetto?> FT</span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php }?>
|
||||
Reference in New Issue
Block a user