add reception account state view and pdf export
This commit is contained in:
45
common/views/total/total_medium_product.php
Normal file
45
common/views/total/total_medium_product.php
Normal file
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
foreach ( $model->productsByCategory ['categories'] as $categoryHolder ) {
|
||||
|
||||
$products = $categoryHolder ['products'];
|
||||
?>
|
||||
<h4><?php echo $categoryHolder['category']['name']?></h4>
|
||||
|
||||
<table
|
||||
class="table table-bordered table-striped table-summary table-category-product">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Termék</th>
|
||||
<th>Mennyiség</th>
|
||||
<th>Összeg</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach ( $products as $p){?>
|
||||
|
||||
<tr>
|
||||
<td class='name'><?php echo $p['product_name'] ?></td>
|
||||
<td class='count'><?php echo $p['product_count'] ?> Db</td>
|
||||
<td class='money'><?php echo \Yii::$app->formatter->asInteger( $p['product_money'])?> FT</td>
|
||||
</tr>
|
||||
|
||||
<?php }?>
|
||||
<tr class="warning">
|
||||
<td><?php echo "Összesen" ?></td>
|
||||
<td><?php ?></td>
|
||||
<td class='money'><?php echo \Yii::$app->formatter->asInteger( $categoryHolder['total'])?> FT</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php
|
||||
}
|
||||
|
||||
?>
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right" style="text-decoration: underline;">
|
||||
Összesen:
|
||||
<?php
|
||||
echo \Yii::$app->formatter->asInteger( $model->productsByCategory ['total']);
|
||||
?> Ft
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user