Commit 591880e62b8b14430d0269318305eedc1fd5720a

Authored by Eric Fernandez
1 parent ec3cacdb87

edición

src/app/comprobantes/comprobantes.component.html
... ... @@ -109,9 +109,17 @@
109 109 <i class="fa fa-window-close"></i>
110 110 </button></th>
111 111 <th>{{articulo.LI0}}</th>
112   - <th *ngIf="!articulo.input">{{articulo.CAN}}/{{articulo.CAN}}</th>
  112 + <th *ngIf="!articulo.input" (click)="articulo.input = true">
  113 + {{articulo.recibido ? articulo.recibido + '/' : ''}}{{articulo.CAN}}</th>
113 114 <th *ngIf="articulo.input">
114   - <input class="form-control-sm col-12"/>
  115 + <input
  116 + class="form-control-sm col-12"
  117 + type="number"
  118 + (keyup.enter)="articulo.input = false"
  119 + [(ngModel)]="articulo.recibido"
  120 + [ngModelOptions]="{standalone: true}"
  121 + autofocus/>
  122 + /{{articulo.CAN}}
115 123 </th>
116 124 <th *ngIf="estadoArticulos != 'aprobado'">
117 125 <button type="button" class="" (click)="articulo.estado = 'aprobado'">