Commit 942f2927777d7ddcaac349facd997b062db7c3e8

Authored by Jose Pinto
1 parent 357083bc3c
Exists in master and in 1 other branch develop

ok propiedades

Showing 1 changed file with 72 additions and 69 deletions   Show diff stats
src/views/foca-modal-factura.html
... ... @@ -5,75 +5,78 @@
5 5 </div>
6 6 </div>
7 7 </div>
8   -<div class="modal-body ladda-w-100"
9   - id="modal-body"
10   - ladda="!primerBusqueda"
11   - data-spinner-color="#000000"
12   - data-spinner-size="30">
13   - <table ng-show="primerBusqueda" class="table table-striped table-sm">
14   - <thead>
15   - <tr>
16   - <th>Comprobante</th>
17   - <th>Vencimiento</th>
18   - <th class="text-right">Importe</th>
19   - <th class="text-right">Saldo</th>
20   - <th class="text-right"></th>
21   - <th class="text-right"></th>
22   - <th class="text-right"></th>
23   - </tr>
24   - </thead>
25   - <tbody>
26   - <tr ng-show="currentPageFacturas.length == 0 && primerBusqueda">
27   - <td colspan="5">
28   - No se encontraron resultados.
29   - </td>
30   - </tr>
31   - <tr class="selectable"
32   - ng-repeat="(key, factura) in currentPageFacturas">
33   - <td ng-click="factura.checked = !factura.checked">{{factura.numeroFactura}} {{factura.FECHA_COMPROBANTE | date : 'dd/MM/yyyy' : 'GMT'}}</td>
34   - <td ng-click="factura.checked = !factura.checked">{{(factura.TCO == 'FT') ? factura.NCU + ' - ' : ''}}{{factura.FEV | date : 'dd/MM/yyyy' : 'GMT'}}</td>
35   - <td class="text-right"
36   - ng-click="factura.checked = !factura.checked">
37   - {{ (factura.IPA_SHOW / parametrosFactura.cotizacion) | number:2 }}
38   - <span ng-class="{'invisible': factura.IPA >= 0}">-</span>
39   - </td>
40   - <td class="text-right"
41   - ng-click="factura.checked = !factura.checked">
42   - {{ factura.saldo_show | number:2 }}
43   - <span ng-class="{'invisible': factura.saldo >= 0}">-</span>
44   - </td>
45   - <td class="text-right">
46   - <input
47   - ng-class="{
48   - 'btn-secondary': selectedFactura != key,
49   - 'btn-primary': selectedFactura == key}"
50   - ng-keydown="itemFactura($event.keyCode)"
51   - foca-focus="selectedFactura == {{key}}"
52   - type="checkbox"
53   - ng-model="factura.checked"
54   - />
55   - </td>
56   - <td>
57   - <button
58   - class="btn p-1"
59   - ng-click="verFactura(factura)"
60   - title="Ver comprobante"
61   - >
62   - <i class="fa fa-eye" aria-hidden="true"></i>
63   - </button>
64   - </td>
65   - <td>
66   - <button
67   - class="btn p-1"
68   - ng-click="enviarMail(factura)"
69   - title="Enviar comprobante por mail"
70   - >
71   - <i class="fa fa-envelope-o" aria-hidden="true"></i>
72   - </button>
73   - </td>
74   - </tr>
75   - </tbody>
76   - </table>
  8 +<div class="modal-body d-flex"
  9 + id="modal-body">
  10 + <div
  11 + ladda="!primerBusqueda"
  12 + data-spinner-color="#000000"
  13 + data-spinner-size="30"
  14 + class="w-100 ladda-w-100">
  15 + <table ng-show="primerBusqueda" class="table table-striped table-sm">
  16 + <thead>
  17 + <tr>
  18 + <th>Comprobante</th>
  19 + <th>Vencimiento</th>
  20 + <th class="text-right">Importe</th>
  21 + <th class="text-right">Saldo</th>
  22 + <th class="text-right"></th>
  23 + <th class="text-right"></th>
  24 + <th class="text-right"></th>
  25 + </tr>
  26 + </thead>
  27 + <tbody>
  28 + <tr ng-show="currentPageFacturas.length == 0 && primerBusqueda">
  29 + <td colspan="5">
  30 + No se encontraron resultados.
  31 + </td>
  32 + </tr>
  33 + <tr class="selectable"
  34 + ng-repeat="(key, factura) in currentPageFacturas">
  35 + <td ng-click="factura.checked = !factura.checked">{{factura.numeroFactura}} {{factura.FECHA_COMPROBANTE | date : 'dd/MM/yyyy' : 'GMT'}}</td>
  36 + <td ng-click="factura.checked = !factura.checked">{{(factura.TCO == 'FT') ? factura.NCU + ' - ' : ''}}{{factura.FEV | date : 'dd/MM/yyyy' : 'GMT'}}</td>
  37 + <td class="text-right"
  38 + ng-click="factura.checked = !factura.checked">
  39 + {{ (factura.IPA_SHOW / parametrosFactura.cotizacion) | number:2 }}
  40 + <span ng-class="{'invisible': factura.IPA >= 0}">-</span>
  41 + </td>
  42 + <td class="text-right"
  43 + ng-click="factura.checked = !factura.checked">
  44 + {{ factura.saldo_show | number:2 }}
  45 + <span ng-class="{'invisible': factura.saldo >= 0}">-</span>
  46 + </td>
  47 + <td class="text-right">
  48 + <input
  49 + ng-class="{
  50 + 'btn-secondary': selectedFactura != key,
  51 + 'btn-primary': selectedFactura == key}"
  52 + ng-keydown="itemFactura($event.keyCode)"
  53 + foca-focus="selectedFactura == {{key}}"
  54 + type="checkbox"
  55 + ng-model="factura.checked"
  56 + />
  57 + </td>
  58 + <td>
  59 + <button
  60 + class="btn p-1"
  61 + ng-click="verFactura(factura)"
  62 + title="Ver comprobante"
  63 + >
  64 + <i class="fa fa-eye" aria-hidden="true"></i>
  65 + </button>
  66 + </td>
  67 + <td>
  68 + <button
  69 + class="btn p-1"
  70 + ng-click="enviarMail(factura)"
  71 + title="Enviar comprobante por mail"
  72 + >
  73 + <i class="fa fa-envelope-o" aria-hidden="true"></i>
  74 + </button>
  75 + </td>
  76 + </tr>
  77 + </tbody>
  78 + </table>
  79 + </div>
77 80 </div>
78 81 <div class="modal-footer py-1">
79 82 <nav ng-show="currentPageFacturas.length > 0 && primerBusqueda" class="mr-auto">