Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @push ('scripts')
- <script>
- var cont=0;
- total=0;
- $("#guardar").hide();
- if (cantidad!="" && cantidad>0)
- {
- if (parseInt(stock)>=parseInt(cantidad))
- {
- total=cantidad;
- function totales()
- {
- $("#ptotal").html("Comp/Amp: " + total);
- $("#total").val(total);
- }
- function eliminar(index){
- total=total[index];
- $("#fila" + index).remove();
- evaluar();
- }
- </script>
- @endpush
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement