hoja-ruta.html
4.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<div class="crear-hoja-ruta foca-crear row">
<foca-cabecera-facturador
titulo="'Hoja de ruta'"
numero="puntoVenta + '-' + comprobante"
fecha="now"
class="mb-0 col-lg-12"
></foca-cabecera-facturador>
<div class="col-lg-12">
<div class="row mt-4">
<div class="col-12 col-md-10 border border-light rounded">
<div class="row px-5 py-2 botonera-secundaria">
<div class="col-12">
<foca-botonera-facturador botones="botonera" extra="4" class="row"></foca-botonera-facturador>
</div>
</div>
<!-- PC -->
<div class="row grilla-articulo align-items-end d-none d-sm-flex">
<table class="table tabla-articulo table-striped table-sm mb-0 rounded-bottom">
<thead>
<tr class="d-flex">
<th class="col-auto">#</th>
<th class="col-2">Remito</th>
<th class="col">Cliente</th>
<th class="col">Dirección</th>
<th class="col-auto"></th>
<th class="col-auto">
<button
class="btn btn-outline-light selectable"
ng-click="show = !show; masMenos()"
>
<i
class="fa fa-chevron-down"
ng-show="show"
aria-hidden="true"
>
</i>
<i
class="fa fa-chevron-up"
ng-hide="show"
aria-hidden="true">
</i>
</button>
</th>
</tr>
</thead>
<tbody class="tabla-articulo-body">
<tr
ng-repeat="(key, remito) in hojaRuta.remitosTabla"
class="d-flex"
ng-show="show || key == hojaRuta.remitosTabla.length - 1"
>
<td ng-bind="key + 1" class="col-auto"></td>
<td
class="col-2"
>{{remito.sucursal | rellenarDigitos: 4}}-{{remito.numeroRemito | rellenarDigitos: 8}}</td>
<th class="col" ng-bind="remito.nombreCliente"></th>
<th class="col" ng-bind="remito.domicilioStamp"></th>
<td class="text-center col-auto">
<button
class="btn btn-outline-light"
ng-click="verProductosRemito(remito.id)"
title="Ver productos"
>
<i class="fa fa-eye"></i>
</button>
</td>
<td class="text-center col-auto">
<button
class="btn btn-outline-light"
ng-click="desasociarRemito(key, remito.id)"
title="Eliminar"
>
<i class="fa fa-trash"></i>
</button>
</td>
</tr>
</tbody>
<tfoot>
<tr class="d-flex">
<td class="col-auto px-1">
<strong>Remitos:</strong>
<a ng-bind="hojaRuta.remitosTabla.length"></a>
</td>
<td class="col"></td>
<td class="col-auto px-1">
<strong>Cantidad:</strong>
<a ng-bind="hojaRuta.litros"></a>
</td>
</tr>
</tfoot>
</table>
</div>
</div>
</div>
</div>
</div>