1 2 3 4$(".tablaProveedores").on("click", "button.btnAgregarListaPro", function(){ 5 6 var idProveedorSel = $(this).attr("idProveedorSel"); 7 console.log("idProveedorSel",idProveedorSel); 8 9 $("#idProveedorVen").val(idProveedorSel); 10 11 12}); 13 14 15$(".formularioIngreso").on("change", "input.canAproT", function(){ 16 17 console.log("$(this).val()", $(this).val()); 18 19 var precio = $(this).parent().parent().children(".ingresoPrec").children(".PrePro"); 20 var precioTot = $(this).parent().parent().children(".preTot").children(".preProT"); 21 var precioFinal =$(this).val()*precio.val(); 22precioTot.val(precioFinal); 23 24sumarTotalPrecios(); 25 26 27 28}) 29 30 31 32 33 34function sumarTotalPrecios(){ 35 var precioItem = $(".preProT"); 36 var sumaTotalPrecio = parseFloat(0.00); 37 if (precioItem.length >=1 ) { 38 var arraySumaPrecio = []; 39 for(var i = 0; i < precioItem.length; i++){ 40 arraySumaPrecio.push(Number($(precioItem[i]).val())); 41 } 42 function sumaArrayPrecios(total, numero){ 43 return total + numero; 44 } 45 var sumaTotalPrecio = arraySumaPrecio.reduce(sumaArrayPrecios).toFixed(2); 46 //alert(sumaTotalPrecio); 47 } 48 $("#nuevoTotalProducto").val(sumaTotalPrecio); 49}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.