Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class UI{
- addDetalle(detalleComprobante){
- const productList=document.getElementById('productos')
- const elemento=document.createElement('tr')
- elemento.className='datosFactura'
- elemento.innerHTML=`
- <td>${detalleComprobante.codUnidadMedida} <input type="hidden" class="detalleFactura" value="${detalleComprobante.codUnidadMedida}"></td>
- <td>${detalleComprobante.ctdUnidadItem} <input type="hidden" class="detalleFactura" value="${detalleComprobante.ctdUnidadItem}"></td>
- <td>${detalleComprobante.desItem} <input type="hidden" class="detalleFactura" value="${detalleComprobante.desItem}"></td>
- <td>${detalleComprobante.mtoValorUnitario} <input type="hidden" class="detalleFactura" value="${detalleComprobante.mtoValorUnitario}"></td>
- <td><button name="eliminarDetalle" type="button ">Eliminar</button ></td>
- <td><button type="button ">Editar</button ></td>
- `
- productList.appendChild(elemento)
- }
Add Comment
Please, Sign In to add comment