Package com.openbravo.pos.pda.dao

Examples of com.openbravo.pos.pda.dao.TaxDAO


        return product.findProductsByCategory(categoryId);
    }

    public List<String> findAllTaxRatesByCategory(List<ProductInfo> products) {
        List<String> list = new ArrayList<String>();
        tax = new TaxDAO();
        taxesLogic = new TaxesLogic(tax.getTaxList());
        for(ProductInfo prod: products) {
            list.add(String.valueOf(taxesLogic.getTaxInfo(prod.getTaxcat()).getRate()));
        }
View Full Code Here


    public void addLineToTicket(String ticketId, String productId) {
        ticket = new TicketDAO();
        product = new ProductDAO();
        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()));
View Full Code Here

TOP

Related Classes of com.openbravo.pos.pda.dao.TaxDAO

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.