Commit 4357a0c577f8eac1fd17ca35e6e4ab9a80a868b9
1 parent
06fee1aa7d
Exists in
master
Agregado condicion para que no me deje editar remitos abiertos.
Showing
1 changed file
with
8 additions
and
13 deletions
Show diff stats
src/views/remito.html
... | ... | @@ -68,7 +68,7 @@ |
68 | 68 | ></td> |
69 | 69 | <td class="col text-right"> |
70 | 70 | <input |
71 | - ng-show="articulo.editCantidad && remito.estado !== 5" | |
71 | + ng-show="articulo.editCantidad && remito.estado !== 5 && remito.hojaRuta.abierta !== '1'" | |
72 | 72 | ng-model="tmpCantidad" |
73 | 73 | class="form-control" |
74 | 74 | foca-tipo-input |
... | ... | @@ -82,13 +82,13 @@ |
82 | 82 | <i |
83 | 83 | class="selectable" |
84 | 84 | ng-click="cambioEdit(articulo, 'cantidad')" |
85 | - ng-hide="articulo.editCantidad && remito.estado !== 5" | |
85 | + ng-hide="articulo.editCantidad && remito.estado !== 5 && remito.hojaRuta.abierta !== '1'" | |
86 | 86 | ng-bind="articulo.cantidad"> |
87 | 87 | </i> |
88 | 88 | </td> |
89 | 89 | <td class="col text-right"> |
90 | 90 | <input |
91 | - ng-show="articulo.editPrecio && remito.estado !== 5" | |
91 | + ng-show="articulo.editPrecio && remito.estado !== 5 && remito.hojaRuta.abierta !== '1'" | |
92 | 92 | ng-model="tmpPrecio" |
93 | 93 | class="form-control" |
94 | 94 | foca-tipo-input |
... | ... | @@ -105,7 +105,7 @@ |
105 | 105 | <i |
106 | 106 | class="selectable" |
107 | 107 | ng-click="cambioEdit(articulo, 'precio')" |
108 | - ng-hide="articulo.editPrecio && remito.estado !== 5" | |
108 | + ng-hide="articulo.editPrecio && remito.estado !== 5 && remito.hojaRuta.abierta !== '1'" | |
109 | 109 | ng-bind="articulo.precio | number: 4"> |
110 | 110 | </i> |
111 | 111 | </td> |
... | ... | @@ -115,14 +115,14 @@ |
115 | 115 | </td> |
116 | 116 | <td class="text-center"> |
117 | 117 | <button |
118 | - ng-show="remito.estado !== 5" | |
118 | + ng-show="remito.estado !== 5 && remito.hojaRuta.abierta !== '1'" | |
119 | 119 | class="btn btn-outline-light" |
120 | 120 | ng-click="quitarArticulo(articulo)" |
121 | 121 | > |
122 | 122 | <i class="fa fa-trash"></i> |
123 | 123 | </button> |
124 | 124 | <button |
125 | - ng-show="remito.estado !== 5" | |
125 | + ng-show="remito.estado !== 5 && remito.hojaRuta.abierta !== '1'" | |
126 | 126 | class="btn btn-outline-light" |
127 | 127 | ng-click="editarArticulo(13, articulo, tmpCantidad, tmpPrecio);" |
128 | 128 | ng-show="articulo.editCantidad || articulo.editPrecio" |
... | ... | @@ -209,13 +209,8 @@ |
209 | 209 | <td class="table-celda-total text-right no-border-top" colspan="1"> |
210 | 210 | <h3>{{getTotal() | currency: remito.cotizacion.moneda.SIMBOLO}}</h3> |
211 | 211 | </td> |
212 | - <td class="text-right no-border-top"> | |
213 | - <button | |
214 | - type="button" | |
215 | - class="btn btn-sm" | |
216 | - > | |
217 | - Totales | |
218 | - </button> | |
212 | + <td class="text-right text-dark no-border-top"> | |
213 | + <span>Totales</span> | |
219 | 214 | </td> |
220 | 215 | </tr> |
221 | 216 | </tfoot> |