caisse-bliss/app/Resources/views/logged/angular/totals.html.twig

31 lines
1.1 KiB
Twig
Raw Normal View History

2019-06-12 14:13:36 +02:00
{% verbatim %}
<div class="text-right">
<div class="row clickable" >
<div class="col-xs-12 col-sm-6">
<h3 ng-click="setRightAmountPaid()">Total: </h3>
</div>
<div class="col-xs-12 col-sm-6">
<h3 ng-click="setRightAmountPaid()">
<strong>
{{ CurrentSellingTotal() }}
</strong>€
</h3>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-sm-6">
Le client paie:
</div>
<div class="col-xs-12 col-sm-6">
<input class="text-right" type="number" id="paid_amount" ng-model="paidAmount">
</div>
</div>
<div class="alert alert-success" ng-if="paidAmount && CurrentSellingTotal() - paidAmount <=0">
<h3>Rendu: {{ -1*(CurrentSellingTotal() - paidAmount) }} €</h3>
</div>
<div class="alert alert-warning" ng-if="paidAmount && CurrentSellingTotal() - paidAmount >0">
<h3>il manque: {{ CurrentSellingTotal() - paidAmount }} €</h3>
</div>
</div>
{% endverbatim %}