| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- <div class="row">
- <div class="col-md-12">
- <label>
- <h3>Pedido {{userdata.nombre}} {{userdata.apellido}} - {{fecha | date: 'dd/MM/yyyy'}}</h3>
- </label>
- </div>
- </div>
- <div class="row">
- <div class="col-md-6">
- <label class="col-md-12">
- Filtro:
- <input type="text" class="form-control form-control-small" ng-model="filtro" style="display:block">
- </label>
- </div>
- </div>
- <div class="col-md-6 col-sm-12 col-xs-12">
- <table class="table table-striped">
- <tr>
- <th>Cantidad</th>
- <th>ID</th>
- <th>Nombre</th>
- <th>Precio</th>
- <th>Total</th>
- </tr>
- <tr ng-repeat="p in listaproductos | filter: filtro | filter:filterCero(criteria) track by p.id" ng-class="{'no-disponible': false&&p.disponible==0}">
- <td>
- <input ng-keydown="validateKeypress($event)" ng-change="updateTotal(this)" type="number" onclick="this.select();" class="form-control" ng-model="p.cantidad" value="0" min="0" max="100" max-length="2" step="1"
- ng-disabled="!cero || (p.disponible==0 && false)"
- style='width:70px;text-align:center;'>
- </td>
- <td>{{p.id}}</td>
- <td>
- {{p.nombre}}
- <div class="low" ng-if="false && p.disponible==0">Este producto no está en stock</div>
- <div class="low" ng-if="false && p.low==1 && p.disponible==1">Este producto tiene bajo stock, confirmar el pedido</div>
- </td>
- <td>${{p.precio}}</td>
- <td>${{p.cantidad*p.precio}}</td>
- </tr>
- </table>
- </div>
- <div class="col-md-6 col-sm-12 col-xs-12">
- <div class="row">
- <div class="col-md-12">
- <b>Total sin descuento:</b>
- ${{total}}
- </div>
- </div>
- <div class="row">
- <div class="col-md-12">
- <label>Observaciones:</label>
- <textarea class="form-control" ng-model="observaciones" multiline="true" maxlength="80" style="max-width:100%;max-height:200px;"> </textarea>
- </div>
- </div>
- <div class="row">
- <div class="col-md-12">
- <button ng-show="cero==true" class="css-button" ng-click="confirmar()">Confirmar</button>
- <button ng-show="cero==false" class="css-button" ng-click="modificar()">Modificar</button>
- <!--
- <button class="css-button" ng-click="">Ver pedido</button>
- -->
- <button ng-show="cero==false" class="css-button" ng-click="ok()">Guardar Pedido</button>
- </div>
- </div>
- </div>
|