Commit b83351041d39079500da44370e459b7d63cfc9c6
1 parent
53ef67bc89
Exists in
master
Cambio se usa descripcion larga.
Showing
1 changed file
with
4 additions
and
4 deletions
Show diff stats
src/views/nota-pedido.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="'Nota de pedido'" | 3 | titulo="'Nota de pedido'" |
| 4 | numero="puntoVenta + '-' + comprobante" | 4 | numero="puntoVenta + '-' + comprobante" |
| 5 | fecha="notaPedido.fechaCarga" | 5 | fecha="notaPedido.fechaCarga" |
| 6 | class="mb-0 col-lg-12" | 6 | class="mb-0 col-lg-12" |
| 7 | busqueda="seleccionarNotaPedido" | 7 | busqueda="seleccionarNotaPedido" |
| 8 | ></foca-cabecera-facturador> | 8 | ></foca-cabecera-facturador> |
| 9 | <marquee | 9 | <marquee |
| 10 | bgcolor="#FF9900" | 10 | bgcolor="#FF9900" |
| 11 | behavior="scroll" | 11 | behavior="scroll" |
| 12 | direction="left" | 12 | direction="left" |
| 13 | ng-bind="notaPedido.observaciones" | 13 | ng-bind="notaPedido.observaciones" |
| 14 | ></marquee> | 14 | ></marquee> |
| 15 | <div class="col-lg-12"> | 15 | <div class="col-lg-12"> |
| 16 | <div class="row"> | 16 | <div class="row"> |
| 17 | <div class="col-12 col-md-10 col-lg-10 border border-light rounded"> | 17 | <div class="col-12 col-md-10 col-lg-10 border border-light rounded"> |
| 18 | <div class="row py-2 botonera-secundaria"> | 18 | <div class="row py-2 botonera-secundaria"> |
| 19 | <div class="col-12 foca-facturador-px"> | 19 | <div class="col-12 foca-facturador-px"> |
| 20 | <foca-botonera-facturador botones="botonera" extra="5" class="row"></foca-botonera-facturador> | 20 | <foca-botonera-facturador botones="botonera" extra="5" class="row"></foca-botonera-facturador> |
| 21 | </div> | 21 | </div> |
| 22 | </div> | 22 | </div> |
| 23 | <!-- PC --> | 23 | <!-- PC --> |
| 24 | <div class="row grilla-articulo align-items-end d-none d-sm-flex"> | 24 | <div class="row grilla-articulo align-items-end d-none d-sm-flex"> |
| 25 | <table class="table tabla-articulo table-striped table-sm mb-0 rounded-bottom"> | 25 | <table class="table tabla-articulo table-striped table-sm mb-0 rounded-bottom"> |
| 26 | <thead> | 26 | <thead> |
| 27 | <tr class="d-flex"> | 27 | <tr class="d-flex"> |
| 28 | <th valign="middle" class="">#</th> | 28 | <th valign="middle" class="">#</th> |
| 29 | <th valign="middle" class="col">Código</th> | 29 | <th valign="middle" class="col">Código</th> |
| 30 | <th valign="middle" class="col-4">Descripción</th> | 30 | <th valign="middle" class="col-4">Descripción</th> |
| 31 | <th valign="middle" class="col text-right">Cantidad</th> | 31 | <th valign="middle" class="col text-right">Cantidad</th> |
| 32 | <th valign="middle" class="col text-right">Precio Unitario</th> | 32 | <th valign="middle" class="col text-right">Precio Unitario</th> |
| 33 | <th valign="middle" class="col text-right">SubTotal</th> | 33 | <th valign="middle" class="col text-right">SubTotal</th> |
| 34 | <th valign="middle" class="text-right"> | 34 | <th valign="middle" class="text-right"> |
| 35 | <button | 35 | <button |
| 36 | class="btn btn-outline-light selectable" | 36 | class="btn btn-outline-light selectable" |
| 37 | ng-click="show = !show; masMenos()" | 37 | ng-click="show = !show; masMenos()" |
| 38 | > | 38 | > |
| 39 | <i | 39 | <i |
| 40 | class="fa fa-chevron-down" | 40 | class="fa fa-chevron-down" |
| 41 | ng-show="show" | 41 | ng-show="show" |
| 42 | aria-hidden="true" | 42 | aria-hidden="true" |
| 43 | > | 43 | > |
| 44 | </i> | 44 | </i> |
| 45 | <i | 45 | <i |
| 46 | class="fa fa-chevron-up" | 46 | class="fa fa-chevron-up" |
| 47 | ng-hide="show" | 47 | ng-hide="show" |
| 48 | aria-hidden="true"> | 48 | aria-hidden="true"> |
| 49 | </i> | 49 | </i> |
| 50 | </button> | 50 | </button> |
| 51 | </th> | 51 | </th> |
| 52 | </tr> | 52 | </tr> |
| 53 | </thead> | 53 | </thead> |
| 54 | <tbody class="tabla-articulo-body"> | 54 | <tbody class="tabla-articulo-body"> |
| 55 | <tr | 55 | <tr |
| 56 | ng-repeat="(key, articulo) in notaPedido.articulosNotaPedido" | 56 | ng-repeat="(key, articulo) in notaPedido.articulosNotaPedido" |
| 57 | ng-show="show || key == (notaPedido.articulosNotaPedido.length - 1)" | 57 | ng-show="show || key == (notaPedido.articulosNotaPedido.length - 1)" |
| 58 | class="d-flex" | 58 | class="d-flex" |
| 59 | > | 59 | > |
| 60 | <td ng-bind="key + 1"></td> | 60 | <td ng-bind="key + 1"></td> |
| 61 | <td | 61 | <td |
| 62 | class="col" | 62 | class="col" |
| 63 | ng-bind="articulo.sector + '-' + articulo.codigo" | 63 | ng-bind="articulo.sector + '-' + articulo.codigo" |
| 64 | ></td> | 64 | ></td> |
| 65 | <td | 65 | <td |
| 66 | class="col-4" | 66 | class="col-4" |
| 67 | ng-bind="articulo.nombre" | 67 | ng-bind="articulo.descripcion" |
| 68 | ></td> | 68 | ></td> |
| 69 | <td class="col text-right"> | 69 | <td class="col text-right"> |
| 70 | <input | 70 | <input |
| 71 | ng-show="articulo.editCantidad && notaPedido.idRemito !== -1" | 71 | ng-show="articulo.editCantidad && notaPedido.idRemito !== -1" |
| 72 | ng-model="tmpCantidad" | 72 | ng-model="tmpCantidad" |
| 73 | class="form-control" | 73 | class="form-control" |
| 74 | foca-tipo-input | 74 | foca-tipo-input |
| 75 | min="1" | 75 | min="1" |
| 76 | foca-focus="articulo.editCantidad" | 76 | foca-focus="articulo.editCantidad" |
| 77 | ng-keypress="editarArticulo($event.keyCode, articulo, tmpCantidad, tmpPrecio);" | 77 | ng-keypress="editarArticulo($event.keyCode, articulo, tmpCantidad, tmpPrecio);" |
| 78 | esc-key="cancelarEditar(articulo)" | 78 | esc-key="cancelarEditar(articulo)" |
| 79 | ng-focus="selectFocus($event); | 79 | ng-focus="selectFocus($event); |
| 80 | tmpCantidad = articulo.cantidad; | 80 | tmpCantidad = articulo.cantidad; |
| 81 | tmpPrecio = articulo.precio" | 81 | tmpPrecio = articulo.precio" |
| 82 | teclado-virtual | 82 | teclado-virtual |
| 83 | > | 83 | > |
| 84 | <i | 84 | <i |
| 85 | class="selectable" | 85 | class="selectable" |
| 86 | ng-click="cambioEdit(articulo, 'cantidad')" | 86 | ng-click="cambioEdit(articulo, 'cantidad')" |
| 87 | ng-hide="articulo.editCantidad && notaPedido.idRemito !== -1" | 87 | ng-hide="articulo.editCantidad && notaPedido.idRemito !== -1" |
| 88 | ng-bind="articulo.cantidad"> | 88 | ng-bind="articulo.cantidad"> |
| 89 | </i> | 89 | </i> |
| 90 | </td> | 90 | </td> |
| 91 | <td class="col text-right"> | 91 | <td class="col text-right"> |
| 92 | <input | 92 | <input |
| 93 | ng-show="articulo.editPrecio && notaPedido.idRemito !== -1" | 93 | ng-show="articulo.editPrecio && notaPedido.idRemito !== -1" |
| 94 | ng-model="tmpPrecio" | 94 | ng-model="tmpPrecio" |
| 95 | class="form-control" | 95 | class="form-control" |
| 96 | foca-tipo-input | 96 | foca-tipo-input |
| 97 | min="0" | 97 | min="0" |
| 98 | step="0.0001" | 98 | step="0.0001" |
| 99 | foca-focus="articulo.editPrecio" | 99 | foca-focus="articulo.editPrecio" |
| 100 | ng-keypress="editarArticulo($event.keyCode, articulo, tmpCantidad, tmpPrecio);" | 100 | ng-keypress="editarArticulo($event.keyCode, articulo, tmpCantidad, tmpPrecio);" |
| 101 | esc-key="cancelarEditar(articulo)" | 101 | esc-key="cancelarEditar(articulo)" |
| 102 | ng-focus="selectFocus($event); | 102 | ng-focus="selectFocus($event); |
| 103 | tmpCantidad = articulo.cantidad; | 103 | tmpCantidad = articulo.cantidad; |
| 104 | tmpPrecio = articulo.precio" | 104 | tmpPrecio = articulo.precio" |
| 105 | teclado-virtual | 105 | teclado-virtual |
| 106 | > | 106 | > |
| 107 | <i | 107 | <i |
| 108 | class="selectable" | 108 | class="selectable" |
| 109 | ng-click="cambioEdit(articulo, 'precio')" | 109 | ng-click="cambioEdit(articulo, 'precio')" |
| 110 | ng-hide="articulo.editPrecio && notaPedido.idRemito !== -1" | 110 | ng-hide="articulo.editPrecio && notaPedido.idRemito !== -1" |
| 111 | ng-bind="articulo.precio | number: 4" | 111 | ng-bind="articulo.precio | number: 4" |
| 112 | > | 112 | > |
| 113 | </i> | 113 | </i> |
| 114 | </td> | 114 | </td> |
| 115 | <td | 115 | <td |
| 116 | class="col text-right" | 116 | class="col text-right" |
| 117 | ng-bind="(articulo.precio * articulo.cantidad) | | 117 | ng-bind="(articulo.precio * articulo.cantidad) | |
| 118 | number: 2"> | 118 | number: 2"> |
| 119 | </td> | 119 | </td> |
| 120 | <td class="text-center"> | 120 | <td class="text-center"> |
| 121 | <button | 121 | <button |
| 122 | ng-show="articulo.editCantidad || articulo.editPrecio" | 122 | ng-show="articulo.editCantidad || articulo.editPrecio" |
| 123 | class="btn btn-outline-light" | 123 | class="btn btn-outline-light" |
| 124 | ng-click="editarArticulo(13, articulo, tmpCantidad, tmpPrecio)" | 124 | ng-click="editarArticulo(13, articulo, tmpCantidad, tmpPrecio)" |
| 125 | > | 125 | > |
| 126 | <i class="fa fa-save"></i> | 126 | <i class="fa fa-save"></i> |
| 127 | </button> | 127 | </button> |
| 128 | <button | 128 | <button |
| 129 | class="btn btn-outline-light" | 129 | class="btn btn-outline-light" |
| 130 | ng-click="quitarArticulo(key)" | 130 | ng-click="quitarArticulo(key)" |
| 131 | > | 131 | > |
| 132 | <i class="fa fa-trash"></i> | 132 | <i class="fa fa-trash"></i> |
| 133 | </button> | 133 | </button> |
| 134 | </td> | 134 | </td> |
| 135 | </tr> | 135 | </tr> |
| 136 | </tbody> | 136 | </tbody> |
| 137 | <tfoot> | 137 | <tfoot> |
| 138 | <tr ng-show="!cargando" class="d-flex"> | 138 | <tr ng-show="!cargando" class="d-flex"> |
| 139 | <td | 139 | <td |
| 140 | class="align-middle" | 140 | class="align-middle" |
| 141 | ng-bind="notaPedido.articulosNotaPedido.length + 1" | 141 | ng-bind="notaPedido.articulosNotaPedido.length + 1" |
| 142 | ></td> | 142 | ></td> |
| 143 | <td class="col"> | 143 | <td class="col"> |
| 144 | <input | 144 | <input |
| 145 | class="form-control" | 145 | class="form-control" |
| 146 | ng-model="articuloACargar.sectorCodigo" | 146 | ng-model="articuloACargar.sectorCodigo" |
| 147 | readonly | 147 | readonly |
| 148 | > | 148 | > |
| 149 | </td> | 149 | </td> |
| 150 | <td class="col-4 tabla-articulo-descripcion"> | 150 | <td class="col-4 tabla-articulo-descripcion"> |
| 151 | <input | 151 | <input |
| 152 | class="form-control" | 152 | class="form-control" |
| 153 | ng-model="articuloACargar.nombre" | 153 | ng-model="articuloACargar.descripcion" |
| 154 | readonly | 154 | readonly |
| 155 | > | 155 | > |
| 156 | </td> | 156 | </td> |
| 157 | <td class="col text-right"> | 157 | <td class="col text-right"> |
| 158 | <input | 158 | <input |
| 159 | class="form-control" | 159 | class="form-control" |
| 160 | foca-tipo-input | 160 | foca-tipo-input |
| 161 | min="1" | 161 | min="1" |
| 162 | step="0.001" | 162 | step="0.001" |
| 163 | ng-model="articuloACargar.cantidad" | 163 | ng-model="articuloACargar.cantidad" |
| 164 | foca-focus="!cargando" | 164 | foca-focus="!cargando" |
| 165 | esc-key="resetFilter()" | 165 | esc-key="resetFilter()" |
| 166 | ng-keypress="agregarATabla($event.keyCode)" | 166 | ng-keypress="agregarATabla($event.keyCode)" |
| 167 | teclado-virtual | 167 | teclado-virtual |
| 168 | > | 168 | > |
| 169 | </td> | 169 | </td> |
| 170 | <td class="col text-right"> | 170 | <td class="col text-right"> |
| 171 | <input | 171 | <input |
| 172 | class="form-control" | 172 | class="form-control" |
| 173 | ng-value="articuloACargar.precio | number: 4" | 173 | ng-value="articuloACargar.precio | number: 4" |
| 174 | ng-show="idLista != -1" | 174 | ng-show="idLista != -1" |
| 175 | readonly | 175 | readonly |
| 176 | > | 176 | > |
| 177 | <input | 177 | <input |
| 178 | class="form-control" | 178 | class="form-control" |
| 179 | foca-tipo-input | 179 | foca-tipo-input |
| 180 | min="0" | 180 | min="0" |
| 181 | step="0.0001" | 181 | step="0.0001" |
| 182 | ng-model="articuloACargar.precio" | 182 | ng-model="articuloACargar.precio" |
| 183 | esc-key="resetFilter()" | 183 | esc-key="resetFilter()" |
| 184 | ng-keypress="agregarATabla($event.keyCode)" | 184 | ng-keypress="agregarATabla($event.keyCode)" |
| 185 | ng-show="idLista == -1" | 185 | ng-show="idLista == -1" |
| 186 | teclado-virtual | 186 | teclado-virtual |
| 187 | > | 187 | > |
| 188 | </td> | 188 | </td> |
| 189 | <td class="col text-right"> | 189 | <td class="col text-right"> |
| 190 | <input | 190 | <input |
| 191 | class="form-control" | 191 | class="form-control" |
| 192 | ng-value="getSubTotal() | number: 2" | 192 | ng-value="getSubTotal() | number: 2" |
| 193 | readonly | 193 | readonly |
| 194 | ></td> | 194 | ></td> |
| 195 | <td class="text-center align-middle"> | 195 | <td class="text-center align-middle"> |
| 196 | <button | 196 | <button |
| 197 | class="btn btn-outline-light" | 197 | class="btn btn-outline-light" |
| 198 | ng-click="agregarATabla(13)" | 198 | ng-click="agregarATabla(13)" |
| 199 | > | 199 | > |
| 200 | <i class="fa fa-save"></i> | 200 | <i class="fa fa-save"></i> |
| 201 | </button> | 201 | </button> |
| 202 | </td> | 202 | </td> |
| 203 | </tr> | 203 | </tr> |
| 204 | <tr class="d-flex"> | 204 | <tr class="d-flex"> |
| 205 | <td colspan="4" class="no-border-top"> | 205 | <td colspan="4" class="no-border-top"> |
| 206 | <strong>Items:</strong> | 206 | <strong>Items:</strong> |
| 207 | <a ng-bind="notaPedido.articulosNotaPedido.length"></a> | 207 | <a ng-bind="notaPedido.articulosNotaPedido.length"></a> |
| 208 | </td> | 208 | </td> |
| 209 | <td class="text-right ml-auto table-celda-total no-border-top"> | 209 | <td class="text-right ml-auto table-celda-total no-border-top"> |
| 210 | <h3>Total:</h3> | 210 | <h3>Total:</h3> |
| 211 | </td> | 211 | </td> |
| 212 | <td class="table-celda-total text-right no-border-top" colspan="1"> | 212 | <td class="table-celda-total text-right no-border-top" colspan="1"> |
| 213 | <h3>{{getTotal() | currency: notaPedido.cotizacion.moneda.SIMBOLO}}</h3> | 213 | <h3>{{getTotal() | currency: notaPedido.cotizacion.moneda.SIMBOLO}}</h3> |
| 214 | </td> | 214 | </td> |
| 215 | <td class="text-right no-border-top"> | 215 | <td class="text-right no-border-top"> |
| 216 | <button | 216 | <button |
| 217 | type="button" | 217 | type="button" |
| 218 | class="btn btn-sm" | 218 | class="btn btn-sm" |
| 219 | > | 219 | > |
| 220 | Totales | 220 | Totales |
| 221 | </button> | 221 | </button> |
| 222 | </td> | 222 | </td> |
| 223 | </tr> | 223 | </tr> |
| 224 | </tfoot> | 224 | </tfoot> |
| 225 | </table> | 225 | </table> |
| 226 | </div> | 226 | </div> |
| 227 | <!-- MOBILE --> | 227 | <!-- MOBILE --> |
| 228 | <div class="row d-sm-none"> | 228 | <div class="row d-sm-none"> |
| 229 | <table class="table table-sm table-striped tabla-articulo margin-bottom-mobile"> | 229 | <table class="table table-sm table-striped tabla-articulo margin-bottom-mobile"> |
| 230 | <thead> | 230 | <thead> |
| 231 | <tr class="d-flex"> | 231 | <tr class="d-flex"> |
| 232 | <th class="">#</th> | 232 | <th class="">#</th> |
| 233 | <th class="col px-0"> | 233 | <th class="col px-0"> |
| 234 | <div class="d-flex"> | 234 | <div class="d-flex"> |
| 235 | <div class="col-4 px-1">Código</div> | 235 | <div class="col-4 px-1">Código</div> |
| 236 | <div class="col-8 px-1">Descripción</div> | 236 | <div class="col-8 px-1">Descripción</div> |
| 237 | </div> | 237 | </div> |
| 238 | <div class="d-flex"> | 238 | <div class="d-flex"> |
| 239 | <div class="col-3 px-1">Cantidad</div> | 239 | <div class="col-3 px-1">Cantidad</div> |
| 240 | <div class="col px-1 text-right">P. Uni.</div> | 240 | <div class="col px-1 text-right">P. Uni.</div> |
| 241 | <div class="col px-1 text-right">Subtotal</div> | 241 | <div class="col px-1 text-right">Subtotal</div> |
| 242 | </div> | 242 | </div> |
| 243 | </th> | 243 | </th> |
| 244 | <th class="text-center tamaño-boton"> | 244 | <th class="text-center tamaño-boton"> |
| 245 | | 245 | |
| 246 | </th> | 246 | </th> |
| 247 | </tr> | 247 | </tr> |
| 248 | </thead> | 248 | </thead> |
| 249 | <tbody> | 249 | <tbody> |
| 250 | <tr | 250 | <tr |
| 251 | ng-repeat="(key, articulo) in notaPedido.articulosNotaPedido" | 251 | ng-repeat="(key, articulo) in notaPedido.articulosNotaPedido" |
| 252 | ng-show="show || key == notaPedido.articulosNotaPedido.length - 1" | 252 | ng-show="show || key == notaPedido.articulosNotaPedido.length - 1" |
| 253 | > | 253 | > |
| 254 | <td class="w-100 align-middle d-flex p-0"> | 254 | <td class="w-100 align-middle d-flex p-0"> |
| 255 | <div class="align-middle p-1"> | 255 | <div class="align-middle p-1"> |
| 256 | <span ng-bind="key+1" class="align-middle"></span> | 256 | <span ng-bind="key+1" class="align-middle"></span> |
| 257 | </div> | 257 | </div> |
| 258 | <div class="col px-0"> | 258 | <div class="col px-0"> |
| 259 | <div class="d-flex"> | 259 | <div class="d-flex"> |
| 260 | <div class="col-4 px-1"> | 260 | <div class="col-4 px-1"> |
| 261 | <span | 261 | <span |
| 262 | ng-bind="articulo.sector + '-' + articulo.codigo" | 262 | ng-bind="articulo.sector + '-' + articulo.codigo" |
| 263 | ></span> | 263 | ></span> |
| 264 | </div> | 264 | </div> |
| 265 | <div class="col-8 px-1"> | 265 | <div class="col-8 px-1"> |
| 266 | <span ng-bind="articulo.nombre"></span> | 266 | <span ng-bind="articulo.descripcion"></span> |
| 267 | </div> | 267 | </div> |
| 268 | </div> | 268 | </div> |
| 269 | <div class="d-flex"> | 269 | <div class="d-flex"> |
| 270 | <div class="col-3 px-1"> | 270 | <div class="col-3 px-1"> |
| 271 | <span | 271 | <span |
| 272 | ng-bind="'x' + articulo.cantidad" | 272 | ng-bind="'x' + articulo.cantidad" |
| 273 | ng-hide="articulo.editCantidad" | 273 | ng-hide="articulo.editCantidad" |
| 274 | ></span> | 274 | ></span> |
| 275 | <i | 275 | <i |
| 276 | class="fa fa-pencil text-white-50" | 276 | class="fa fa-pencil text-white-50" |
| 277 | aria-hidden="true" | 277 | aria-hidden="true" |
| 278 | ng-hide="articulo.editCantidad" | 278 | ng-hide="articulo.editCantidad" |
| 279 | ng-click="articulo.editCantidad = true" | 279 | ng-click="articulo.editCantidad = true" |
| 280 | ></i> | 280 | ></i> |
| 281 | <input | 281 | <input |
| 282 | ng-show="articulo.editCantidad" | 282 | ng-show="articulo.editCantidad" |
| 283 | ng-model="articulo.cantidad" | 283 | ng-model="articulo.cantidad" |
| 284 | class="form-control" | 284 | class="form-control" |
| 285 | foca-tipo-input | 285 | foca-tipo-input |
| 286 | min="1" | 286 | min="1" |
| 287 | step="0.001" | 287 | step="0.001" |
| 288 | foca-focus="articulo.editCantidad" | 288 | foca-focus="articulo.editCantidad" |
| 289 | ng-keypress="editarArticulo($event.keyCode, articulo, tmpCantidad, tmpPrecio)" | 289 | ng-keypress="editarArticulo($event.keyCode, articulo, tmpCantidad, tmpPrecio)" |
| 290 | ng-focus="selectFocus($event)" | 290 | ng-focus="selectFocus($event)" |
| 291 | > | 291 | > |
| 292 | </div> | 292 | </div> |
| 293 | <div class="col px-1 text-right"> | 293 | <div class="col px-1 text-right"> |
| 294 | <span ng-bind="articulo.precio | | 294 | <span ng-bind="articulo.precio | |
| 295 | currency: notaPedido.moneda.SIMBOLO : 4"></span> | 295 | currency: notaPedido.moneda.SIMBOLO : 4"></span> |
| 296 | ></span> | 296 | ></span> |
| 297 | </div> | 297 | </div> |
| 298 | <div class="col px-1 text-right"> | 298 | <div class="col px-1 text-right"> |
| 299 | <span | 299 | <span |
| 300 | ng-bind="(articulo.precio * articulo.cantidad) | | 300 | ng-bind="(articulo.precio * articulo.cantidad) | |
| 301 | currency: notaPedido.moneda.SIMBOLO" | 301 | currency: notaPedido.moneda.SIMBOLO" |
| 302 | > | 302 | > |
| 303 | </span> | 303 | </span> |
| 304 | </div> | 304 | </div> |
| 305 | </div> | 305 | </div> |
| 306 | </div> | 306 | </div> |
| 307 | <div class="align-middle p-1"> | 307 | <div class="align-middle p-1"> |
| 308 | <button | 308 | <button |
| 309 | class="btn btn-outline-light" | 309 | class="btn btn-outline-light" |
| 310 | ng-click="quitarArticulo(key)" | 310 | ng-click="quitarArticulo(key)" |
| 311 | > | 311 | > |
| 312 | <i class="fa fa-trash"></i> | 312 | <i class="fa fa-trash"></i> |
| 313 | </button> | 313 | </button> |
| 314 | </div> | 314 | </div> |
| 315 | </td> | 315 | </td> |
| 316 | </tr> | 316 | </tr> |
| 317 | </tbody> | 317 | </tbody> |
| 318 | <tfoot> | 318 | <tfoot> |
| 319 | <!-- CARGANDO ITEM --> | 319 | <!-- CARGANDO ITEM --> |
| 320 | <tr ng-show="!cargando" class="d-flex"> | 320 | <tr ng-show="!cargando" class="d-flex"> |
| 321 | <td | 321 | <td |
| 322 | class="align-middle p-1" | 322 | class="align-middle p-1" |
| 323 | ng-bind="notaPedido.articulosNotaPedido.length + 1" | 323 | ng-bind="notaPedido.articulosNotaPedido.length + 1" |
| 324 | ></td> | 324 | ></td> |
| 325 | <td class="col p-0"> | 325 | <td class="col p-0"> |
| 326 | <div class="d-flex"> | 326 | <div class="d-flex"> |
| 327 | <div class="col-4 px-1"> | 327 | <div class="col-4 px-1"> |
| 328 | <span | 328 | <span |
| 329 | ng-bind="articuloACargar.sectorCodigo" | 329 | ng-bind="articuloACargar.sectorCodigo" |
| 330 | ></span> | 330 | ></span> |
| 331 | </div> | 331 | </div> |
| 332 | <div class="col-8 px-1"> | 332 | <div class="col-8 px-1"> |
| 333 | <span ng-bind="articuloACargar.nombre"></span> | 333 | <span ng-bind="articuloACargar.descripcion"></span> |
| 334 | </div> | 334 | </div> |
| 335 | </div> | 335 | </div> |
| 336 | <div class="d-flex"> | 336 | <div class="d-flex"> |
| 337 | <div class="col-3 px-1 m-1"> | 337 | <div class="col-3 px-1 m-1"> |
| 338 | <input | 338 | <input |
| 339 | class="form-control p-1" | 339 | class="form-control p-1" |
| 340 | foca-tipo-input | 340 | foca-tipo-input |
| 341 | min="1" | 341 | min="1" |
| 342 | ng-model="articuloACargar.cantidad" | 342 | ng-model="articuloACargar.cantidad" |
| 343 | foca-focus="!cargando" | 343 | foca-focus="!cargando" |
| 344 | ng-keypress="agregarATabla($event.keyCode)" | 344 | ng-keypress="agregarATabla($event.keyCode)" |
| 345 | style="height: auto; line-height: 1.1em" | 345 | style="height: auto; line-height: 1.1em" |
| 346 | > | 346 | > |
| 347 | </div> | 347 | </div> |
| 348 | <div class="col px-1 text-right"> | 348 | <div class="col px-1 text-right"> |
| 349 | <span ng-bind="articuloACargar.precio | | 349 | <span ng-bind="articuloACargar.precio | |
| 350 | currency: notaPedido.moneda.SIMBOLO : 4" | 350 | currency: notaPedido.moneda.SIMBOLO : 4" |
| 351 | ></span> | 351 | ></span> |
| 352 | </div> | 352 | </div> |
| 353 | <div class="col px-1 text-right"> | 353 | <div class="col px-1 text-right"> |
| 354 | <span | 354 | <span |
| 355 | ng-bind="getSubTotal() | | 355 | ng-bind="getSubTotal() | |
| 356 | currency: notaPedido.moneda.SIMBOLO" | 356 | currency: notaPedido.moneda.SIMBOLO" |
| 357 | > | 357 | > |
| 358 | </span> | 358 | </span> |
| 359 | </div> | 359 | </div> |
| 360 | </div> | 360 | </div> |
| 361 | </td> | 361 | </td> |
| 362 | <td class="text-center align-middle"> | 362 | <td class="text-center align-middle"> |
| 363 | <button | 363 | <button |
| 364 | class="btn btn-outline-light" | 364 | class="btn btn-outline-light" |
| 365 | ng-click="agregarATabla(13)" | 365 | ng-click="agregarATabla(13)" |
| 366 | > | 366 | > |
| 367 | <i class="fa fa-save"></i> | 367 | <i class="fa fa-save"></i> |
| 368 | </button> | 368 | </button> |
| 369 | </td> | 369 | </td> |
| 370 | </tr> | 370 | </tr> |
| 371 | <!-- TOOGLE EXPANDIR --> | 371 | <!-- TOOGLE EXPANDIR --> |
| 372 | <tr> | 372 | <tr> |
| 373 | <td class="col"> | 373 | <td class="col"> |
| 374 | <button | 374 | <button |
| 375 | class="btn btn-outline-light selectable w-100" | 375 | class="btn btn-outline-light selectable w-100" |
| 376 | ng-click="show = !show; masMenos()" | 376 | ng-click="show = !show; masMenos()" |
| 377 | ng-show="notaPedido.articulosNotaPedido.length > 0" | 377 | ng-show="notaPedido.articulosNotaPedido.length > 0" |
| 378 | > | 378 | > |
| 379 | <i | 379 | <i |
| 380 | class="fa fa-chevron-down" | 380 | class="fa fa-chevron-down" |
| 381 | ng-hide="show" | 381 | ng-hide="show" |
| 382 | aria-hidden="true" | 382 | aria-hidden="true" |
| 383 | > | 383 | > |
| 384 | </i> | 384 | </i> |
| 385 | <i | 385 | <i |
| 386 | class="fa fa-chevron-up" | 386 | class="fa fa-chevron-up" |
| 387 | ng-show="show" | 387 | ng-show="show" |
| 388 | aria-hidden="true"> | 388 | aria-hidden="true"> |
| 389 | </i> | 389 | </i> |
| 390 | </button> | 390 | </button> |
| 391 | </td> | 391 | </td> |
| 392 | </tr> | 392 | </tr> |
| 393 | <!-- FOOTER --> | 393 | <!-- FOOTER --> |
| 394 | <tr class="d-flex"> | 394 | <tr class="d-flex"> |
| 395 | <td class="align-middle no-border-top" colspan="2"> | 395 | <td class="align-middle no-border-top" colspan="2"> |
| 396 | <strong>Cantidad Items:</strong> | 396 | <strong>Cantidad Items:</strong> |
| 397 | <a ng-bind="notaPedido.articulosNotaPedido.length"></a> | 397 | <a ng-bind="notaPedido.articulosNotaPedido.length"></a> |
| 398 | </td> | 398 | </td> |
| 399 | <td class="text-right ml-auto table-celda-total no-border-top"> | 399 | <td class="text-right ml-auto table-celda-total no-border-top"> |
| 400 | <h3>Total:</h3> | 400 | <h3>Total:</h3> |
| 401 | </td> | 401 | </td> |
| 402 | <td class="table-celda-total text-right no-border-top"> | 402 | <td class="table-celda-total text-right no-border-top"> |
| 403 | <h3>{{getTotal() | currency: notaPedido.cotizacion.moneda.SIMBOLO}}</h3> | 403 | <h3>{{getTotal() | currency: notaPedido.cotizacion.moneda.SIMBOLO}}</h3> |
| 404 | </td> | 404 | </td> |
| 405 | </tr> | 405 | </tr> |
| 406 | </tfoot> | 406 | </tfoot> |
| 407 | </table> | 407 | </table> |
| 408 | </div> | 408 | </div> |
| 409 | </div> | 409 | </div> |
| 410 | </div> | 410 | </div> |
| 411 | </div> | 411 | </div> |
| 412 | <div class="row d-md-none fixed-bottom"> | 412 | <div class="row d-md-none fixed-bottom"> |
| 413 | <div class="w-100 bg-dark d-flex px-3 acciones-mobile"> | 413 | <div class="w-100 bg-dark d-flex px-3 acciones-mobile"> |
| 414 | <span class="ml-3 text-muted" ng-click="salir()">Salir</span> | 414 | <span class="ml-3 text-muted" ng-click="salir()">Salir</span> |
| 415 | <span | 415 | <span |
| 416 | class="mr-3 ml-auto" | 416 | class="mr-3 ml-auto" |
| 417 | ng-class="saveLoading ? 'text-muted' : ''" | 417 | ng-class="saveLoading ? 'text-muted' : ''" |
| 418 | ng-click="crearNotaPedido()" | 418 | ng-click="crearNotaPedido()" |
| 419 | ladda="saveLoading" | 419 | ladda="saveLoading" |
| 420 | data-style="expand-left" | 420 | data-style="expand-left" |
| 421 | >Guardar</span> | 421 | >Guardar</span> |
| 422 | </div> | 422 | </div> |
| 423 | </div> | 423 | </div> |
| 424 | </div> | 424 | </div> |
| 425 | 425 |