Commit 56cbcbad487c19b775f16acf55d5b6963bb27492
Exists in
master
Merge branch 'master' into 'master'
Master See merge request !54
Showing
1 changed file
Show diff stats
src/views/cobranza.html
1 | <div class="crear-nota-pedido foca-crear row"> | 1 | <div class="crear-nota-pedido foca-crear row"> |
2 | <foca-cabecera-facturador | 2 | <foca-cabecera-facturador |
3 | titulo="'Recibo de cobranza'" | 3 | titulo="'Recibo de cobranza'" |
4 | numero="puntoVenta + '-' + comprobante" | 4 | numero="puntoVenta + '-' + comprobante" |
5 | fecha="fecha" | 5 | fecha="fecha" |
6 | class="mb-0 col-lg-12" | 6 | class="mb-0 col-lg-12" |
7 | busqueda="seleccionarCobranza" | 7 | busqueda="seleccionarCobranza" |
8 | ></foca-cabecera-facturador> | 8 | ></foca-cabecera-facturador> |
9 | <div class="col-lg-12"> | 9 | <div class="col-lg-12"> |
10 | <div class="row mt-4"> | 10 | <div class="row mt-4"> |
11 | <div class="col-12 col-md-10 border border-light rounded"> | 11 | <div class="col-12 col-md-10 border border-light rounded"> |
12 | <div class="row px-5 py-2 botonera-secundaria"> | 12 | <div class="row px-5 py-2 botonera-secundaria"> |
13 | <div class="col-12"> | 13 | <div class="col-12"> |
14 | <foca-botonera-facturador botones="botonera" extra="7" class="row"></foca-botonera-facturador> | 14 | <foca-botonera-facturador botones="botonera" extra="7" class="row"></foca-botonera-facturador> |
15 | </div> | 15 | </div> |
16 | </div> | 16 | </div> |
17 | <!-- PC --> | 17 | <!-- PC --> |
18 | <div class="row grilla-articulo align-items-end d-none d-sm-flex" ng-show="cobroDeuda"> | 18 | <div class="row grilla-articulo align-items-end d-none d-sm-flex" ng-show="cobroDeuda"> |
19 | <table class="table tabla-articulo table-striped table-sm mb-0 rounded-bottom"> | 19 | <table class="table tabla-articulo table-striped table-sm mb-0 rounded-bottom"> |
20 | <thead> | 20 | <thead> |
21 | <tr class="d-flex"> | 21 | <tr class="d-flex"> |
22 | <th class="col-auto">#</th> | 22 | <th class="col-auto">#</th> |
23 | <th class="col">Comprobante</th> | 23 | <th class="col">Comprobante</th> |
24 | <th class="col">Fecha</th> | 24 | <th class="col">Fecha</th> |
25 | <th class="col">Importe</th> | 25 | <th class="col">Importe</th> |
26 | <th class="col-auto"> | 26 | <th class="col-auto"> |
27 | <button | 27 | <button |
28 | class="btn btn-outline-light selectable" | 28 | class="btn btn-outline-light selectable" |
29 | ng-click="show = !show; masMenos()" | 29 | ng-click="show = !show; masMenos()" |
30 | > | 30 | > |
31 | <i | 31 | <i |
32 | class="fa fa-chevron-down" | 32 | class="fa fa-chevron-down" |
33 | ng-show="show" | 33 | ng-show="show" |
34 | aria-hidden="true" | 34 | aria-hidden="true" |
35 | > | 35 | > |
36 | </i> | 36 | </i> |
37 | <i | 37 | <i |
38 | class="fa fa-chevron-up" | 38 | class="fa fa-chevron-up" |
39 | ng-hide="show" | 39 | ng-hide="show" |
40 | aria-hidden="true"> | 40 | aria-hidden="true"> |
41 | </i> | 41 | </i> |
42 | </button> | 42 | </button> |
43 | </th> | 43 | </th> |
44 | </th> | 44 | </th> |
45 | </tr> | 45 | </tr> |
46 | </thead> | 46 | </thead> |
47 | <tbody class="tabla-articulo-body"> | 47 | <tbody class="tabla-articulo-body"> |
48 | <tr | 48 | <tr |
49 | ng-repeat="(key, factura) in facturaTabla" | 49 | ng-repeat="(key, factura) in facturaTabla" |
50 | class="d-flex" | 50 | class="d-flex" |
51 | ng-show="show || key == facturaTabla.length - 1" | 51 | ng-show="show || key == facturaTabla.length - 1" |
52 | > | 52 | > |
53 | <td ng-bind="key + 1" class="col-auto"></td> | 53 | <td ng-bind="key + 1" class="col-auto"></td> |
54 | <td class="col" ng-bind="factura.numeroFactura" | 54 | <td class="col" ng-bind="factura.numeroFactura" |
55 | ></td> | 55 | ></td> |
56 | <td class="col" ng-bind="factura.FEP | date : 'dd/MM/yyyy'"></td> | 56 | <td class="col" ng-bind="factura.FEP | date : 'dd/MM/yyyy'"></td> |
57 | <td | 57 | <td |
58 | class="col" | 58 | class="col" |
59 | ng-bind="(factura.IPA / cobranza.cotizacion.VENDEDOR) | | 59 | ng-bind="(factura.IPA / cobranza.cotizacion.VENDEDOR) | |
60 | number: 4"></td> | 60 | number: 4"></td> |
61 | <td class="text-center col-auto"> | 61 | <td class="text-center col-auto"> |
62 | <button | 62 | <button |
63 | class="btn btn-outline-light" | 63 | class="btn btn-outline-light" |
64 | ng-click="quitarFactura(key)" | 64 | ng-click="quitarFactura(key)" |
65 | > | 65 | > |
66 | <i class="fa fa-trash"></i> | 66 | <i class="fa fa-trash"></i> |
67 | </button> | 67 | </button> |
68 | </td> | 68 | </td> |
69 | </tr> | 69 | </tr> |
70 | </tbody> | 70 | </tbody> |
71 | <tfoot> | 71 | <tfoot> |
72 | <tr ng-show="cargando" class="d-flex"> | 72 | <tr ng-show="cargando" class="d-flex"> |
73 | <td class="col-2 border-top-0"> | 73 | <td class="col-2 border-top-0"> |
74 | <a | 74 | <a |
75 | class="form-control form-control-sm btn btn-secondary" | 75 | class="form-control form-control-sm btn btn-secondary" |
76 | ng-click="seleccionarFactura()" | 76 | ng-click="seleccionarFactura()" |
77 | >Pendientes</a> | 77 | >Pendientes</a> |
78 | </td> | 78 | </td> |
79 | </tr> | 79 | </tr> |
80 | <tr class="d-flex"> | 80 | <tr class="d-flex"> |
81 | <td class="col-auto px-1 border-top-0"> | 81 | <td class="col-auto px-1 border-top-0"> |
82 | <strong>Comprobantes:</strong> | 82 | <strong>Comprobantes:</strong> |
83 | <a ng-bind="facturaTabla.length"></a> | 83 | <a ng-bind="facturaTabla.length"></a> |
84 | </td> | 84 | </td> |
85 | <td class="text-right ml-auto table-celda-total no-border-top"> | 85 | <td class="text-right ml-auto table-celda-total no-border-top"> |
86 | <strong>Cancela:</strong> | 86 | <strong>Cancela:</strong> |
87 | </td> | 87 | </td> |
88 | <td class="table-celda-total text-right no-border-top"> | 88 | <td class="table-celda-total text-right no-border-top"> |
89 | <strong>{{(getTotalDeuda() / cobranza.cotizacion.VENDEDOR) | | 89 | <strong>{{(getTotalDeuda() / cobranza.cotizacion.VENDEDOR) | |
90 | currency: cobranza.moneda.SIMBOLO}}</strong> | 90 | currency: cobranza.moneda.SIMBOLO}}</strong> |
91 | </td> | 91 | </td> |
92 | <td class="text-right ml-auto table-celda-total no-border-top"> | 92 | <td class="text-right ml-auto table-celda-total no-border-top"> |
93 | <strong>Total Cobrado:</strong> | 93 | <strong>Total Cobrado:</strong> |
94 | </td> | 94 | </td> |
95 | <td class="table-celda-total text-right no-border-top"> | 95 | <td class="table-celda-total text-right no-border-top"> |
96 | <strong>{{(getTotalCobrado() / cobranza.cotizacion.VENDEDOR) | | 96 | <strong>{{(getTotalCobrado() / cobranza.cotizacion.VENDEDOR) | |
97 | currency: cobranza.moneda.SIMBOLO}}</strong> | 97 | currency: cobranza.moneda.SIMBOLO}}</strong> |
98 | </td> | 98 | </td> |
99 | <td class="text-right ml-auto table-celda-total no-border-top"> | 99 | <td class="text-right ml-auto table-celda-total no-border-top"> |
100 | <strong>DF:</strong> | 100 | <strong>DF:</strong> |
101 | </td> | 101 | </td> |
102 | <td class="table-celda-total text-right no-border-top mr-1"> | 102 | <td class="table-celda-total text-right no-border-top mr-1"> |
103 | <strong>{{((getTotalCobrado() + getTotalDeuda()) / | 103 | <strong>{{((getTotalCobrado() + getTotalDeuda()) / |
104 | cobranza.cotizacion.VENDEDOR) | currency: cobranza.moneda.SIMBOLO}} | 104 | cobranza.cotizacion.VENDEDOR) | currency: cobranza.moneda.SIMBOLO}} |
105 | </strong> | 105 | </strong> |
106 | </td> | 106 | </td> |
107 | </tr> | 107 | </tr> |
108 | </tfoot> | 108 | </tfoot> |
109 | </table> | 109 | </table> |
110 | </div> | 110 | </div> |
111 | <div class="row grilla-articulo align-items-end d-none d-sm-flex" ng-show="!cobroDeuda"> | 111 | <div class="row grilla-articulo align-items-end d-none d-sm-flex" ng-show="!cobroDeuda"> |
112 | <table class="table tabla-articulo table-striped table-sm mb-0 rounded-bottom"> | 112 | <table class="table tabla-articulo table-striped table-sm mb-0 rounded-bottom"> |
113 | <thead> | 113 | <thead> |
114 | <tr class="d-flex"> | 114 | <tr class="d-flex"> |
115 | <th class="col-auto">#</th> | 115 | <th class="col-auto">#</th> |
116 | <th class="col">Cobro</th> | 116 | <th class="col">Cobro</th> |
117 | <th class="col">Fecha</th> | 117 | <th class="col">Fecha</th> |
118 | <th class="col">Importe</th> | 118 | <th class="col">Importe</th> |
119 | <th class="col-auto"> | 119 | <th class="col-auto"> |
120 | <button | 120 | <button |
121 | class="btn btn-outline-light selectable" | 121 | class="btn btn-outline-light selectable" |
122 | ng-click="show = !show; masMenos()" | 122 | ng-click="show = !show; masMenos()" |
123 | > | 123 | > |
124 | <i | 124 | <i |
125 | class="fa fa-chevron-down" | 125 | class="fa fa-chevron-down" |
126 | ng-show="show" | 126 | ng-show="show" |
127 | aria-hidden="true" | 127 | aria-hidden="true" |
128 | > | 128 | > |
129 | </i> | 129 | </i> |
130 | <i | 130 | <i |
131 | class="fa fa-chevron-up" | 131 | class="fa fa-chevron-up" |
132 | ng-hide="show" | 132 | ng-hide="show" |
133 | aria-hidden="true"> | 133 | aria-hidden="true"> |
134 | </i> | 134 | </i> |
135 | </button> | 135 | </button> |
136 | </th> | 136 | </th> |
137 | </th> | 137 | </th> |
138 | </tr> | 138 | </tr> |
139 | </thead> | 139 | </thead> |
140 | <tbody class="tabla-articulo-body"> | 140 | <tbody class="tabla-articulo-body"> |
141 | <tr | 141 | <tr |
142 | ng-repeat="(key, cobro) in cobrosTabla" | 142 | ng-repeat="(key, cobro) in cobrosTabla" |
143 | class="d-flex" | 143 | class="d-flex" |
144 | ng-show="show || key == cobrosTabla.length - 1" | 144 | ng-show="show || key == cobrosTabla.length - 1" |
145 | > | 145 | > |
146 | <td ng-bind="key + 1" class="col-auto"></td> | 146 | <td ng-bind="key + 1" class="col-auto"></td> |
147 | <td class="col" ng-bind="cobro.tipo"></td> | 147 | <td class="col" ng-bind="cobro.tipo"></td> |
148 | <td class="col" ng-bind="cobro.fecha | date : 'dd/MM/yyyy'"></td> | 148 | <td class="col" ng-bind="cobro.fecha | date : 'dd/MM/yyyy'"></td> |
149 | <td | 149 | <td |
150 | class="col" | 150 | class="col" |
151 | ng-bind="(cobro.importe / cobranza.cotizacion.VENDEDOR) | | 151 | ng-bind="(cobro.importe / cobranza.cotizacion.VENDEDOR) | |
152 | currency: cobranza.moneda.SIMBOLO : 4"></td> | 152 | currency: cobranza.moneda.SIMBOLO : 4"></td> |
153 | <td class="text-center col-auto"> | 153 | <td class="text-center col-auto"> |
154 | <button | 154 | <button |
155 | class="btn btn-outline-light" | 155 | class="btn btn-outline-light" |
156 | ng-click="quitarCobro(key)" | 156 | ng-click="quitarCobro(key)" |
157 | > | 157 | > |
158 | <i class="fa fa-trash"></i> | 158 | <i class="fa fa-trash"></i> |
159 | </button> | 159 | </button> |
160 | </td> | 160 | </td> |
161 | </tr> | 161 | </tr> |
162 | </tbody> | 162 | </tbody> |
163 | <tfoot> | 163 | <tfoot> |
164 | <tr ng-show="cargando" class="d-flex"> | 164 | <tr ng-show="cargando" class="d-flex"> |
165 | <td class="col-2 border-top-0"> | 165 | <td class="col-2 border-top-0"> |
166 | <a | 166 | <a |
167 | class="form-control form-control-sm btn btn-secondary" | 167 | class="form-control form-control-sm btn btn-secondary" |
168 | ng-click="seleccionarCheque()" | 168 | ng-click="seleccionarCheque()" |
169 | >Cheque</a> | 169 | >Cheque</a> |
170 | </td> | 170 | </td> |
171 | <td class="col-2 border-top-0"> | 171 | <td class="col-2 border-top-0"> |
172 | <a | 172 | <a |
173 | class="form-control form-control-sm btn btn-secondary" | 173 | class="form-control form-control-sm btn btn-secondary" |
174 | ng-click="seleccionarEfectivo()" | 174 | ng-click="seleccionarEfectivo()" |
175 | >Efectivo</a> | 175 | >Efectivo</a> |
176 | </td> | 176 | </td> |
177 | <td class="col-2 border-top-0"> | 177 | <td class="col-2 border-top-0"> |
178 | <a | 178 | <a |
179 | class="form-control form-control-sm btn btn-secondary" | 179 | class="form-control form-control-sm btn btn-secondary" |
180 | ng-click="seleccionarDetalles()" | 180 | ng-click="seleccionarDetalles()" |
181 | >Detalle</a> | 181 | >Detalle</a> |
182 | </td> | 182 | </td> |
183 | </tr> | 183 | </tr> |
184 | <tr class="d-flex"> | 184 | <tr class="d-flex"> |
185 | <td class="col-auto px-1 border-top-0"> | 185 | <td class="col-auto px-1 border-top-0"> |
186 | <strong>Cobros:</strong> | 186 | <strong>Cobros:</strong> |
187 | <a ng-bind="cobrosTabla.length"></a> | 187 | <a ng-bind="cobrosTabla.length"></a> |
188 | </td> | 188 | </td> |
189 | <td class="text-right ml-auto table-celda-total no-border-top"> | 189 | <td class="text-right ml-auto table-celda-total no-border-top"> |
190 | <strong>Cancela:</strong> | 190 | <strong>Cancela:</strong> |
191 | </td> | 191 | </td> |
192 | <td class="table-celda-total text-right no-border-top"> | 192 | <td class="table-celda-total text-right no-border-top"> |
193 | <strong>{{(getTotalDeuda() / cobranza.cotizacion.VENDEDOR) | | 193 | <strong>{{(getTotalDeuda() / cobranza.cotizacion.VENDEDOR) | |
194 | currency: cobranza.moneda.SIMBOLO}}</strong> | 194 | currency: cobranza.moneda.SIMBOLO}}</strong> |
195 | </td> | 195 | </td> |
196 | <td class="text-right ml-auto table-celda-total no-border-top"> | 196 | <td class="text-right ml-auto table-celda-total no-border-top"> |
197 | <strong>Total Cobrado:</strong> | 197 | <strong>Total Cobrado:</strong> |
198 | </td> | 198 | </td> |
199 | <td class="table-celda-total text-right no-border-top"> | 199 | <td class="table-celda-total text-right no-border-top"> |
200 | <strong>{{(getTotalCobrado() / cobranza.cotizacion.VENDEDOR) | | 200 | <strong>{{(getTotalCobrado() / cobranza.cotizacion.VENDEDOR) | |
201 | currency: cobranza.moneda.SIMBOLO}}</strong> | 201 | currency: cobranza.moneda.SIMBOLO}}</strong> |
202 | </td> | 202 | </td> |
203 | <td class="text-right ml-auto table-celda-total no-border-top"> | 203 | <td class="text-right ml-auto table-celda-total no-border-top"> |
204 | <strong>DF:</strong> | 204 | <strong>DF:</strong> |
205 | </td> | 205 | </td> |
206 | <td class="table-celda-total text-right no-border-top mr-1"> | 206 | <td class="table-celda-total text-right no-border-top mr-1"> |
207 | <strong>{{((getTotalCobrado() + getTotalDeuda()) / | 207 | <strong>{{((getTotalCobrado() + getTotalDeuda()) / |
208 | cobranza.cotizacion.VENDEDOR) | currency: cobranza.moneda.SIMBOLO}} | 208 | cobranza.cotizacion.VENDEDOR) | currency: cobranza.moneda.SIMBOLO}} |
209 | </strong> | 209 | </strong> |
210 | </td> | 210 | </td> |
211 | </tr> | 211 | </tr> |
212 | </tfoot> | 212 | </tfoot> |
213 | </table> | 213 | </table> |
214 | </div> | 214 | </div> |
215 | <!-- MOBILE --> | 215 | <!-- MOBILE --> |
216 | <div class="row d-sm-none mb-5"> | 216 | <div class="row d-sm-none mb-5"> |
217 | <!-- FACTURAS --> | 217 | <!-- FACTURAS --> |
218 | <table class="table table-sm table-striped tabla-articulo mb-5" ng-show="cobroDeuda"> | 218 | <table class="table table-sm table-striped tabla-articulo mb-5" ng-show="cobroDeuda"> |
219 | <thead> | 219 | <thead> |
220 | <tr class="d-flex"> | 220 | <tr class="d-flex"> |
221 | <th class="">#</th> | 221 | <th class="">#</th> |
222 | <th class="col px-0"> | 222 | <th class="col px-0"> |
223 | <div class="d-flex"> | 223 | <div class="d-flex"> |
224 | <div class="col-4 px-1">Factura</div> | 224 | <div class="col-4 px-1">Factura</div> |
225 | <div class="col-4 px-1">Fecha</div> | 225 | <div class="col-4 px-1">Fecha</div> |
226 | <div class="col-4 px-1">Importe</div> | 226 | <div class="col-4 px-1">Importe</div> |
227 | </div> | 227 | </div> |
228 | </th> | 228 | </th> |
229 | <th class="text-center tamaño-boton"> | 229 | <th class="text-center tamaño-boton"> |
230 | | 230 | |
231 | </th> | 231 | </th> |
232 | </tr> | 232 | </tr> |
233 | </thead> | 233 | </thead> |
234 | <tbody> | 234 | <tbody> |
235 | <tr | 235 | <tr |
236 | ng-repeat="(key, factura) in facturaTabla" | 236 | ng-repeat="(key, factura) in facturaTabla" |
237 | ng-show="show || key == facturaTabla.length - 1" | 237 | ng-show="show || key == facturaTabla.length - 1" |
238 | > | 238 | > |
239 | <td class="w-100 align-middle d-flex p-0"> | 239 | <td class="w-100 align-middle d-flex p-0"> |
240 | <div class="align-middle p-1"> | 240 | <div class="align-middle p-1"> |
241 | <span ng-bind="key+1" class="align-middle"></span> | 241 | <span ng-bind="key+1" class="align-middle"></span> |
242 | </div> | 242 | </div> |
243 | <div class="col px-0"> | 243 | <div class="col px-0"> |
244 | <div class="d-flex"> | 244 | <div class="d-flex"> |
245 | <div class="col-4 p-1"> | 245 | <div class="col-4 p-1"> |
246 | <span ng-bind="factura.numeroFactura" | 246 | <span ng-bind="factura.numeroFactura" |
247 | ></span> | 247 | ></span> |
248 | </div> | 248 | </div> |
249 | <div class="col-4 p-1"> | 249 | <div class="col-4 p-1"> |
250 | <span ng-bind="factura.FEP | date : 'dd/MM/yyyy'"></span> | 250 | <span ng-bind="factura.FEP | date : 'dd/MM/yyyy'"></span> |
251 | </div> | 251 | </div> |
252 | <div class="col-4 p-1"> | 252 | <div class="col-4 p-1"> |
253 | <span | 253 | <span |
254 | ng-bind="(factura.IPA / cobranza.cotizacion.VENDEDOR) | | 254 | ng-bind="(factura.IPA / cobranza.cotizacion.VENDEDOR) | |
255 | currency:cobranza.moneda.SIMBOLO : 4"></span> | 255 | currency:cobranza.moneda.SIMBOLO : 4"></span> |
256 | </div> | 256 | </div> |
257 | </div> | 257 | </div> |
258 | </div> | 258 | </div> |
259 | <div class="align-middle p-1"> | 259 | <div class="align-middle p-1"> |
260 | <button | 260 | <button |
261 | class="btn btn-outline-light" | 261 | class="btn btn-outline-light" |
262 | ng-click="quitarFactura(key)" | 262 | ng-click="quitarFactura(key)" |
263 | > | 263 | > |
264 | <i class="fa fa-trash"></i> | 264 | <i class="fa fa-trash"></i> |
265 | </button> | 265 | </button> |
266 | </div> | 266 | </div> |
267 | </td> | 267 | </td> |
268 | </tr> | 268 | </tr> |
269 | </tbody> | 269 | </tbody> |
270 | <tfoot> | 270 | <tfoot> |
271 | <!-- SELECCIONAR PRODUCTO --> | 271 | <!-- SELECCIONAR PRODUCTO --> |
272 | <tr ng-show="cargando" class="d-flex"> | 272 | <tr ng-show="cargando" class="d-flex"> |
273 | <td class="col-12"> | 273 | <td class="col-12"> |
274 | <input | 274 | <input |
275 | placeholder="Seleccione Factura" | 275 | placeholder="Seleccione Factura" |
276 | class="form-control form-control-sm" | 276 | class="form-control form-control-sm" |
277 | readonly | 277 | readonly |
278 | ng-click="seleccionarFactura()" | 278 | ng-click="seleccionarFactura()" |
279 | /> | 279 | /> |
280 | </td> | 280 | </td> |
281 | </tr> | 281 | </tr> |
282 | <!-- TOOGLE EXPANDIR --> | 282 | <!-- TOOGLE EXPANDIR --> |
283 | <tr> | 283 | <tr> |
284 | <td class="col"> | 284 | <td class="col"> |
285 | <button | 285 | <button |
286 | class="btn btn-outline-light selectable w-100" | 286 | class="btn btn-outline-light selectable w-100" |
287 | ng-click="show = !show; masMenos()" | 287 | ng-click="show = !show; masMenos()" |
288 | ng-show="facturaTabla.length > 0" | 288 | ng-show="facturaTabla.length > 0" |
289 | > | 289 | > |
290 | <i | 290 | <i |
291 | class="fa fa-chevron-down" | 291 | class="fa fa-chevron-down" |
292 | ng-hide="show" | 292 | ng-hide="show" |
293 | aria-hidden="true" | 293 | aria-hidden="true" |
294 | > | 294 | > |
295 | </i> | 295 | </i> |
296 | <i | 296 | <i |
297 | class="fa fa-chevron-up" | 297 | class="fa fa-chevron-up" |
298 | ng-show="show" | 298 | ng-show="show" |
299 | aria-hidden="true"> | 299 | aria-hidden="true"> |
300 | </i> | 300 | </i> |
301 | </button> | 301 | </button> |
302 | </td> | 302 | </td> |
303 | </tr> | 303 | </tr> |
304 | <!-- FOOTER --> | 304 | <!-- FOOTER --> |
305 | <tr class="d-flex"> | 305 | <tr class="d-flex"> |
306 | <td class="align-middle no-border-top" colspan="2"> | 306 | <td class="align-middle no-border-top" colspan="2"> |
307 | <strong>Cantidad Items:</strong> | 307 | <strong>Cantidad Items:</strong> |
308 | <a ng-bind="facturaTabla.length"></a> | 308 | <a ng-bind="facturaTabla.length"></a> |
309 | </td> | 309 | </td> |
310 | </tr> | 310 | </tr> |
311 | </tfoot> | 311 | </tfoot> |
312 | </table> | 312 | </table> |
313 | <!-- COBROS --> | 313 | <!-- COBROS --> |
314 | <table class="table table-sm table-striped tabla-articulo mb-5" ng-show="!cobroDeuda"> | 314 | <table class="table table-sm table-striped tabla-articulo mb-5" ng-show="!cobroDeuda"> |
315 | <thead> | 315 | <thead> |
316 | <tr class="d-flex"> | 316 | <tr class="d-flex"> |
317 | <th class="">#</th> | 317 | <th class="">#</th> |
318 | <th class="col px-0"> | 318 | <th class="col px-0"> |
319 | <div class="d-flex"> | 319 | <div class="d-flex"> |
320 | <div class="col-4 px-1">Cobro</div> | 320 | <div class="col-4 px-1">Cobro</div> |
321 | <div class="col-4 px-1">Fecha</div> | 321 | <div class="col-4 px-1">Fecha</div> |
322 | <div class="col-4 px-1">Importe</div> | 322 | <div class="col-4 px-1">Importe</div> |
323 | </div> | 323 | </div> |
324 | </th> | 324 | </th> |
325 | <th class="text-center tamaño-boton"> | 325 | <th class="text-center tamaño-boton"> |
326 | | 326 | |
327 | </th> | 327 | </th> |
328 | </tr> | 328 | </tr> |
329 | </thead> | 329 | </thead> |
330 | <tbody> | 330 | <tbody> |
331 | <tr | 331 | <tr |
332 | ng-repeat="(key, cobro) in cobrosTabla" | 332 | ng-repeat="(key, cobro) in cobrosTabla" |
333 | ng-show="show || key == cobrosTabla.length - 1" | 333 | ng-show="show || key == cobrosTabla.length - 1" |
334 | > | 334 | > |
335 | <td class="w-100 align-middle d-flex p-0"> | 335 | <td class="w-100 align-middle d-flex p-0"> |
336 | <div class="align-middle p-1"> | 336 | <div class="align-middle p-1"> |
337 | <span ng-bind="key+1" class="align-middle"></span> | 337 | <span ng-bind="key+1" class="align-middle"></span> |
338 | </div> | 338 | </div> |
339 | <div class="col px-0"> | 339 | <div class="col px-0"> |
340 | <div class="d-flex"> | 340 | <div class="d-flex"> |
341 | <div class="col-4 p-1"> | 341 | <div class="col-4 p-1"> |
342 | <span ng-bind="cobro.tipo" | 342 | <span ng-bind="cobro.tipo" |
343 | ></span> | 343 | ></span> |
344 | </div> | 344 | </div> |
345 | <div class="col-4 p-1"> | 345 | <div class="col-4 p-1"> |
346 | <span ng-bind="cobro.fecha | date : 'dd/MM/yyyy'"></span> | 346 | <span ng-bind="cobro.fecha | date : 'dd/MM/yyyy'"></span> |
347 | </div> | 347 | </div> |
348 | <div class="col-4 p-1"> | 348 | <div class="col-4 p-1"> |
349 | <span | 349 | <span |
350 | ng-bind="(cobro.importe / cobranza.cotizacion.VENDEDOR) | | 350 | ng-bind="(cobro.importe / cobranza.cotizacion.VENDEDOR) | |
351 | currency: cobranza.moneda.SIMBOLO : 4"></span> | 351 | currency: cobranza.moneda.SIMBOLO : 4"></span> |
352 | </div> | 352 | </div> |
353 | </div> | 353 | </div> |
354 | </div> | 354 | </div> |
355 | <div class="align-middle p-1"> | 355 | <div class="align-middle p-1"> |
356 | <button | 356 | <button |
357 | class="btn btn-outline-light" | 357 | class="btn btn-outline-light" |
358 | ng-click="quitarCobro(key)" | 358 | ng-click="quitarCobro(key)" |
359 | > | 359 | > |
360 | <i class="fa fa-trash"></i> | 360 | <i class="fa fa-trash"></i> |
361 | </button> | 361 | </button> |
362 | </div> | 362 | </div> |
363 | </td> | 363 | </td> |
364 | </tr> | 364 | </tr> |
365 | </tbody> | 365 | </tbody> |
366 | <tfoot> | 366 | <tfoot> |
367 | <!-- SELECCIONAR PRODUCTO --> | 367 | <!-- SELECCIONAR PRODUCTO --> |
368 | <tr ng-show="cargando" class="d-flex"> | 368 | <tr ng-show="cargando" class="d-flex"> |
369 | <td class="col-6"> | 369 | <td class="col-4"> |
370 | <input | 370 | <input |
371 | placeholder="Cheque" | 371 | placeholder="Cheque" |
372 | class="form-control form-control-sm" | 372 | class="form-control form-control-sm" |
373 | readonly | 373 | readonly |
374 | ng-click="seleccionarCheque()" | 374 | ng-click="seleccionarCheque()" |
375 | /> | 375 | /> |
376 | </td> | 376 | </td> |
377 | <td class="col-6"> | 377 | <td class="col-4"> |
378 | <input | 378 | <input |
379 | placeholder="Efectivo" | 379 | placeholder="Efectivo" |
380 | class="form-control form-control-sm" | 380 | class="form-control form-control-sm" |
381 | readonly | 381 | readonly |
382 | ng-click="seleccionarEfectivo()" | 382 | ng-click="seleccionarEfectivo()" |
383 | /> | 383 | /> |
384 | </td> | 384 | </td> |
385 | <td class="col-4"> | ||
386 | <input | ||
387 | placeholder="Detalles" | ||
388 | class="form-control form-control-sm" | ||
389 | readonly | ||
390 | ng-click="seleccionarDetalles()" | ||
391 | /> | ||
392 | </td> | ||
385 | </tr> | 393 | </tr> |
386 | <!-- TOOGLE EXPANDIR --> | 394 | <!-- TOOGLE EXPANDIR --> |
387 | <tr> | 395 | <tr> |
388 | <td class="col"> | 396 | <td class="col"> |
389 | <button | 397 | <button |
390 | class="btn btn-outline-light selectable w-100" | 398 | class="btn btn-outline-light selectable w-100" |
391 | ng-click="show = !show; masMenos()" | 399 | ng-click="show = !show; masMenos()" |
392 | ng-show="cobrosTabla.length > 0" | 400 | ng-show="cobrosTabla.length > 0" |
393 | > | 401 | > |
394 | <i | 402 | <i |
395 | class="fa fa-chevron-down" | 403 | class="fa fa-chevron-down" |
396 | ng-hide="show" | 404 | ng-hide="show" |
397 | aria-hidden="true" | 405 | aria-hidden="true" |
398 | > | 406 | > |
399 | </i> | 407 | </i> |
400 | <i | 408 | <i |
401 | class="fa fa-chevron-up" | 409 | class="fa fa-chevron-up" |
402 | ng-show="show" | 410 | ng-show="show" |
403 | aria-hidden="true"> | 411 | aria-hidden="true"> |
404 | </i> | 412 | </i> |
405 | </button> | 413 | </button> |
406 | </td> | 414 | </td> |
407 | </tr> | 415 | </tr> |
408 | <!-- FOOTER --> | 416 | <!-- FOOTER --> |
409 | <tr class="d-flex"> | 417 | <tr class="d-flex"> |
410 | <td class="align-middle no-border-top col-6"> | 418 | <td class="align-middle no-border-top col-6"> |
411 | <strong>Cantidad Items:</strong> | 419 | <strong>Cantidad Items:</strong> |
412 | <a ng-bind="cobrosTabla.length"></a> | 420 | <a ng-bind="cobrosTabla.length"></a> |
413 | </td> | 421 | </td> |
414 | </tfoot> | 422 | </tfoot> |
415 | </table> | 423 | </table> |
416 | </tr> | 424 | </tr> |
417 | <!-- DEUDA, COBRADO, DIFERENCIA --> | 425 | <!-- DEUDA, COBRADO, DIFERENCIA --> |
418 | <table class="table-responsive fixed-bottom mb-5"> | 426 | <table class="table-responsive fixed-bottom mb-5"> |
419 | <tr class="d-flex row"> | 427 | <tr class="d-flex row"> |
420 | <td class="text-center ml-auto table-celda-total no-border-top col-4"> | 428 | <td class="text-center ml-auto table-celda-total no-border-top col-4"> |
421 | <strong>Cancela:</strong> | 429 | <strong>Cancela:</strong> |
422 | </td> | 430 | </td> |
423 | <td class="text-center ml-auto table-celda-total no-border-top col-4"> | 431 | <td class="text-center ml-auto table-celda-total no-border-top col-4"> |
424 | <strong>Cobrado:</strong> | 432 | <strong>Cobrado:</strong> |
425 | </td> | 433 | </td> |
426 | <td class="text-center ml-auto table-celda-total no-border-top col-4"> | 434 | <td class="text-center ml-auto table-celda-total no-border-top col-4"> |
427 | <strong>Diferencia:</strong> | 435 | <strong>Diferencia:</strong> |
428 | </td> | 436 | </td> |
429 | <td class="table-celda-total text-center no-border-top col-4"> | 437 | <td class="table-celda-total text-center no-border-top col-4"> |
430 | <strong>{{(getTotalDeuda() / cobranza.cotizacion.VENDEDOR) | currency: cobranza.moneda.SIMBOLO}}</strong> | 438 | <strong>{{(getTotalDeuda() / cobranza.cotizacion.VENDEDOR) | currency: cobranza.moneda.SIMBOLO}}</strong> |
431 | </td> | 439 | </td> |
432 | <td class="table-celda-total text-center no-border-top col-4"> | 440 | <td class="table-celda-total text-center no-border-top col-4"> |
433 | <strong>{{(getTotalCobrado() / cobranza.cotizacion.VENDEDOR) | currency: cobranza.moneda.SIMBOLO}}</strong> | 441 | <strong>{{(getTotalCobrado() / cobranza.cotizacion.VENDEDOR) | currency: cobranza.moneda.SIMBOLO}}</strong> |
434 | </td> | 442 | </td> |
435 | <td class="table-celda-total text-center no-border-top col-4"> | 443 | <td class="table-celda-total text-center no-border-top col-4"> |
436 | <strong>{{((getTotalCobrado() + getTotalDeuda()) / cobranza.cotizacion.VENDEDOR) | currency: cobranza.moneda.SIMBOLO}}</strong> | 444 | <strong>{{((getTotalCobrado() + getTotalDeuda()) / cobranza.cotizacion.VENDEDOR) | currency: cobranza.moneda.SIMBOLO}}</strong> |
437 | </td> | 445 | </td> |
438 | </tr> | 446 | </tr> |
439 | </table> | 447 | </table> |
440 | </div> | 448 | </div> |
441 | </div> | 449 | </div> |
442 | </div> | 450 | </div> |
443 | </div> | 451 | </div> |
444 | <div class="row d-md-none fixed-bottom"> | 452 | <div class="row d-md-none fixed-bottom"> |
445 | <div class="w-100 bg-dark d-flex px-3 acciones-mobile"> | 453 | <div class="w-100 bg-dark d-flex px-3 acciones-mobile"> |
446 | <span class="ml-3 text-muted" ng-click="salir()">Salir</span> | 454 | <span class="ml-3 text-muted" ng-click="salir()">Salir</span> |
447 | <span | 455 | <span |
448 | class="mr-3 ml-auto" | 456 | class="mr-3 ml-auto" |
449 | ng-class="saveLoading ? 'text-muted' : ''" | 457 | ng-class="saveLoading ? 'text-muted' : ''" |
450 | ng-click="crearCobranza()" | 458 | ng-click="crearCobranza()" |
451 | ng-show="!editando" | 459 | ng-show="!editando" |
452 | ladda="saveLoading" | 460 | ladda="saveLoading" |
453 | data-style="expand-left" | 461 | data-style="expand-left" |
454 | >Guardar</span> | 462 | >Guardar</span> |
455 | </div> | 463 | </div> |
456 | </div> | 464 | </div> |
457 | </div> | 465 | </div> |
458 | 466 |