factura.html
8.91 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
<div class="crear-nota-remito foca-crear row">
<foca-cabecera-facturador
titulo="'Factura'"
numero="puntoVenta + '-' + comprobante"
fecha="now"
class="mb-0 col-lg-12"
busqueda="seleccionarRemito"
></foca-cabecera-facturador>
<marquee
bgcolor="#FF9900"
behavior="scroll"
direction="left"
ng-bind="factura.observaciones"
></marquee>
<div class="col-lg-12">
<div class="row mt-4">
<div class="col-12 col-md-10 col-lg-10 border border-light rounded">
<div class="row p-1 botonera-secundaria px-5 py-2">
<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="">#</th>
<th class="col">Código</th>
<th class="col-4">Descripción</th>
<th class="col text-right">Cantidad</th>
<th class="col text-right">Precio Unitario</th>
<th class="col text-right">SubTotal</th>
<th class="text-right">
<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, articulo) in articulosFiltro()"
ng-show="show || key == (articulosFiltro().length - 1)"
class="d-flex"
>
<td ng-bind="key + 1"></td>
<td
class="col"
ng-bind="articulo.SEC + '-' + articulo.ART"
></td>
<td
class="col-4"
ng-bind="articulo.DES"
></td>
<td class="col text-right">
<input
ng-show="articulo.editCantidad"
ng-model="tmpCantidad"
class="form-control"
foca-tipo-input
min="1"
foca-focus="articulo.editCantidad"
ng-keypress="editarArticulo($event.keyCode, articulo, tmpCantidad, tmpPrecio);"
esc-key="cancelarEditar(articulo)"
ng-focus="selectFocus($event); tmpCantidad = articulo.CAN; tmpPrecio = articulo.PUN"
teclado-virtual
>
<i
class="selectable"
ng-click="cambioEdit(articulo, 'cantidad')"
ng-hide="articulo.editCantidad"
ng-bind="articulo.CAN">
</i>
</td>
<td class="col text-right">
<input
ng-show="articulo.editPrecio"
ng-model="tmpPrecio"
class="form-control"
foca-tipo-input
min="1"
step="0.0001"
foca-focus="articulo.editPrecio"
ng-keypress="editarArticulo($event.keyCode, articulo, tmpCantidad, tmpPrecio);"
esc-key="cancelarEditar(articulo)"
ng-focus="selectFocus($event);
tmpCantidad = articulo.CAN;
tmpPrecio = articulo.PUN"
teclado-virtual
>
<i
class="selectable"
ng-click="cambioEdit(articulo, 'precio')"
ng-hide="articulo.editPrecio"
ng-bind="articulo.PUN | number: 4">
</i>
</td>
<td
class="col text-right"
ng-bind="(articulo.PUN * articulo.CAN) | number: 2">
</td>
<td class="text-center">
<button
class="btn btn-outline-light"
ng-click="quitarArticulo(articulo)"
>
<i class="fa fa-trash"></i>
</button>
<button
class="btn btn-outline-light"
ng-click="editarArticulo(13, articulo, tmpCantidad, tmpPrecio);"
ng-show="articulo.editCantidad || articulo.editPrecio"
>
<i class="fa fa-save"></i>
</button>
</td>
</tr>
</tbody>
<tfoot>
<tr class="d-flex">
<td colspan="4" class="no-border-top">
<strong>Items:</strong>
<a ng-bind="articulosFiltro().length"></a>
</td>
<td class="text-right ml-auto table-celda-total no-border-top">
<h3>Total:</h3>
</td>
<td class="table-celda-total text-right no-border-top" colspan="1">
<h3>{{getTotal() | currency: factura.cotizacion.moneda.SIMBOLO}}</h3>
</td>
<td class="text-right no-border-top">
<button
type="button"
class="btn btn-sm"
>
Totales
</button>
</td>
</tr>
</tfoot>
</table>
</div>
</div>
</div>
</div>
<div class="row d-md-none fixed-bottom">
<div class="w-100 bg-dark d-flex px-3 acciones-mobile">
<span class="ml-3 text-muted" ng-click="salir()">Salir</span>
<span
class="mr-3 ml-auto"
ng-class="saveLoading ? 'text-muted' : ''"
ng-click="crearRemito()"
ladda="saveLoading"
data-style="expand-left"
>Guardar</span>
</div>
</div>
</div>