private void aumentarVentaBD(int cantAct, int cantNue, String[] itemNuevo, String[] itemBd){
        try{
            Statement st= this.getConexion().createStatement();
            String sql;
            HashMap ultimoItemFact= new HashMap();
            sql="UPDATE producto SET existencia=existencia-"+(cantNue-cantAct)+" WHERE id_prod='"+itemNuevo[0]+"'";
            st.execute(sql);
            sql="SELECT s.fact_ent AS num_fact, s.id_prod, p.nombre_prod, s.can_venta AS cant_venta, s.ttl_cont, s.can_venta AS diferencia"
                + " FROM salida s, producto p"
                + " WHERE s.fact_sal='"+this.nunFact+"' AND s.id_prod='"+itemBd[0]+"' AND s.id_prod=p.id_prod ORDER BY s.fact_ent DESC LIMIT 1";
            ResultSet res= st.executeQuery(sql);
            if(res.next()){
                ResultSetMetaData resmd= res.getMetaData();
                for (int j = 1; j <= resmd.getColumnCount(); j++) {
                    ultimoItemFact.put(resmd.getColumnLabel(j).toLowerCase(), res.getString(j));
                }
            }
            PreparedStatement pstm= this.getConexion().prepareStatement("INSERT INTO salida VALUES(?,?,?,?,?)");
            if(!ultimoItemFact.isEmpty()){
                for (itemVenta it : this.listaItems) {
                    System.out.println(it.getFacEnt()+" la cantidad de la venta es= "+it.getCantVenta());
                    if(it.getFacEnt().equals(ultimoItemFact.get("num_fact"))){
                        sql="UPDATE salida SET can_venta=can_venta+'"+(cantNue-cantAct)+"' "
                            + "WHERE fact_sal='"+this.nunFact+"' AND fact_ent='"+it.getFacEnt()+"' "
                            + "AND id_prod='"+it.getIdProd()+"'";
                        st.execute(sql);
                        System.out.println("la factura entrada es= "+it.getFacEnt()+"\nel valor de la cantAct es= "+cantAct+"\nel valor de la cantNuev es= "+cantNue);
                    }
                    else{
                        pstm.setString(1, it.getFactSal());
                        pstm.setString(2, it.getFacEnt());
                        pstm.setString(3, it.getIdProd());
                        pstm.setInt(4, it.getCantVenta());
                        pstm.setFloat(5, it.getTtlCont());
                    }
                }
            }
            pstm.close();
        }catch(SQLException ex){
            System.err.println(ex.getMessage());
        }
    }