Examples of TaxDAO


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

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

    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
Copyright © 2018 www.massapi.com. 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.