add display money to account state close, delete ticket on customer tickets
This commit is contained in:
@@ -62,6 +62,9 @@ if ( $model ->type == AccountState::TYPE_OPEN ){
|
||||
<?php
|
||||
echo AccountStateWidget::widget(['model' => $model]);
|
||||
?>
|
||||
|
||||
|
||||
|
||||
|
||||
<?php if ( $model->hasDifferenceToPrevState() ){
|
||||
?>
|
||||
|
||||
31
common/views/total/total_cassa_open.php
Normal file
31
common/views/total/total_cassa_open.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
use common\components\DailyListing;
|
||||
/** @var $model common\components\DailyListing */
|
||||
?>
|
||||
<?php if ( $model->showWithCassaOpen && isset($model->cassaOpen) ){?>
|
||||
<h2>Aktuális záró összeg</h2>
|
||||
<table class="table table-bordered table-striped table-summary">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>Kasszanyitás </th>
|
||||
<td ><span style=' '><?php echo ( $model->cassaOpen->user->username ) ?> </span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Kasszanyitás ideje</th>
|
||||
<td ><span style=' '><?php echo ( $model->cassaOpen->created_at ) ?> </span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Kasszanyitás összege</th>
|
||||
<td class="money"><span style=' '><?php echo isset($model->cassaOpen) ? \Yii::$app->formatter->asInteger( $model->cassaOpen->money ) : ""?> FT</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Végösszeg</th>
|
||||
<td class="money"><span style=' '><?php echo \Yii::$app->formatter->asInteger($model->total)?> FT</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Kasszában lévő összeg</th>
|
||||
<td class="money"><span style='border-bottom: 1px solid black'><?php echo \Yii::$app->formatter->asInteger( $model->totalWithCassa ) ?> FT</span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php }?>
|
||||
@@ -8,6 +8,7 @@
|
||||
<th>Név</th>
|
||||
<th>Típus</th>
|
||||
<th>Összeg</th>
|
||||
<th>Megjegyzés</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -19,6 +20,7 @@
|
||||
<td><?php echo $p['money_movement_name'] ?></td>
|
||||
<td><?php echo $p['money_movement_type_name'] ?></td>
|
||||
<td class='money'><?php echo \Yii::$app->formatter->asInteger( $p['signed_money'])?> Ft</td>
|
||||
<td><?php echo $p['money_movement_comment'] ?></td>
|
||||
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
Reference in New Issue
Block a user