Package com.openbravo.pos.ticket

Examples of com.openbravo.pos.ticket.ProductInfo


    public ProductInfo findProductById(String productId) {

        Connection con = null;
        PreparedStatement ps = null;
        ResultSet rs = null;
        ProductInfo vos = null;
        String sqlStr = "SELECT * FROM PRODUCTS WHERE ID=?";

        try {
            //get connection
            con = getConnection();
View Full Code Here


        return vos;
    }

    @Override
    protected ProductInfo map2VO(ResultSet rs) throws SQLException {
        ProductInfo product = new ProductInfo();
        product.setId(rs.getString("id"));
        product.setRef(rs.getString("reference"));
        product.setCode(rs.getString("code"));
        product.setName(rs.getString("name"));
        product.setPriceBuy(rs.getDouble("pricebuy"));
        product.setPriceSell(rs.getDouble("pricesell"));
        product.setCategoryId(rs.getString("category"));
        product.setTaxcat(rs.getString("taxcat"));
        product.setCom(rs.getBoolean("iscom"));
        product.setScale(rs.getBoolean("isscale"));

        return product;
    }
View Full Code Here

        category = new CategoryDAO();
        tax = new TaxDAO();
        taxesLogic = new TaxesLogic(tax.getTaxList());

        TicketInfo obj = ticket.getTicket(ticketId);
        ProductInfo productObj = product.findProductById(productId);
        TicketLineInfo line = new TicketLineInfo(productObj, productObj.getPriceSell(), taxesLogic.getTaxInfo(productObj.getTaxcat()));
        obj.addLine(line);
        ticket.updateTicket(ticketId, obj);
        refreshTax(obj);
    }
View Full Code Here

    public ProductInfo findProductById(String productId) {

        Connection con = null;
        PreparedStatement ps = null;
        ResultSet rs = null;
        ProductInfo vos = null;
        String sqlStr = "SELECT * FROM PRODUCTS WHERE ID=?";

        try {
            //get connection
            con = getConnection();
View Full Code Here

        return vos;
    }

    @Override
    protected ProductInfo map2VO(ResultSet rs) throws SQLException {
        ProductInfo product = new ProductInfo();
        product.setId(rs.getString("id"));
        product.setRef(rs.getString("reference"));
        product.setCode(rs.getString("code"));
        product.setName(rs.getString("name"));
        product.setPriceBuy(rs.getDouble("pricebuy"));
        product.setPriceSell(rs.getDouble("pricesell"));
        product.setCategoryId(rs.getString("category"));
        product.setTaxcat(rs.getString("taxcat"));
        product.setCom(rs.getBoolean("iscom"));
        product.setScale(rs.getBoolean("isscale"));

        return product;
    }
View Full Code Here

TOP

Related Classes of com.openbravo.pos.ticket.ProductInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.