Package com.openbravo.pos.inventory

Examples of com.openbravo.pos.inventory.TaxCategoryInfo


      HashMap<String, String> taxCats = new HashMap<String, String>();
      HashMap<String, String> taxCatsRev = new HashMap<String, String>();
     
      Iterator<TaxCategoryInfo> taxCatList = dlsales.getTaxCategoriesList().list().iterator();
      while (taxCatList.hasNext()) {
        TaxCategoryInfo tci = (TaxCategoryInfo) taxCatList.next();
        taxCats.put(tci.getID(), tci.getName());
        taxCatsRev.put(tci.getName(),tci.getID());
       
      }
     
      HashMap<String, Double> localTaxes = new HashMap<String, Double>();
      Iterator<TaxInfo> taxList = dlsales.getTaxList().list().iterator();
View Full Code Here


    public final SentenceList getUserList() {
        return new StaticSentence(s
            , "SELECT ID, NAME FROM PEOPLE ORDER BY NAME"
            , null
            , new SerializerRead() { public Object readValues(DataRead dr) throws BasicException {
                return new TaxCategoryInfo(
                        dr.getString(1),
                        dr.getString(2));
            }});
    }
View Full Code Here

    public final SentenceList getTaxCategoriesList() {
        return new StaticSentence(s
            , "SELECT ID, NAME FROM TAXCATEGORIES ORDER BY NAME"
            , null
            , new SerializerRead() { public Object readValues(DataRead dr) throws BasicException {
                return new TaxCategoryInfo(dr.getString(1), dr.getString(2));
            }});
    }
View Full Code Here

      HashMap<String, String> taxCats = new HashMap<String, String>();
      HashMap<String, String> taxCatsRev = new HashMap<String, String>();
     
      Iterator<TaxCategoryInfo> taxCatList = dlsales.getTaxCategoriesList().list().iterator();
      while (taxCatList.hasNext()) {
        TaxCategoryInfo tci = (TaxCategoryInfo) taxCatList.next();
        taxCats.put(tci.getID(), tci.getName());
        taxCatsRev.put(tci.getName(),tci.getID());
       
      }
     
      HashMap<String, Double> localTaxes = new HashMap<String, Double>();
      Iterator<TaxInfo> taxList = dlsales.getTaxList().list().iterator();
View Full Code Here

                Date now = new Date();
               
                for (Product product : products) {
                   
                    // Synchonization of taxcategories
                    TaxCategoryInfo tc = new TaxCategoryInfo(product.getTax().getId(), product.getTax().getName());
                    dlintegration.syncTaxCategory(tc);
                   
                    // Synchonization of taxes
                    TaxInfo t = new TaxInfo(
                            product.getTax().getId(),
                            product.getTax().getName(),
                            tc.getID(),
                            null,
                            null,
                            product.getTax().getPercentage() / 100,
                            false,
                            0);
                    dlintegration.syncTax(t);
                  
                    // Synchonization of categories
                    CategoryInfo c = new CategoryInfo(product.getCategory().getId(), product.getCategory().getName(), null);
                    dlintegration.syncCategory(c);

                    // Synchonization of products
                    ProductInfoExt p = new ProductInfoExt();
                    p.setID(product.getId());
                    p.setReference(product.getId());
                    p.setCode(product.getEan() == null || product.getEan().equals("") ? product.getId() : product.getEan());
                    p.setName(product.getName());
                    p.setCom(false);
                    p.setScale(false);
                    p.setPriceBuy(product.getPurchasePrice());
                    p.setPriceSell(product.getListPrice());
                    p.setCategoryID(c.getID());
                    p.setTaxCategoryID(tc.getID());
                    p.setImage(ImageUtils.readImage(product.getImageUrl()));
                    dlintegration.syncProduct(p)
                   
                    // Synchronization of stock         
                    if (product instanceof ProductPlus) {
View Full Code Here

                Date now = new Date();
               
                for (Product product : products) {
                   
                    // Synchonization of taxcategories
                    TaxCategoryInfo tc = new TaxCategoryInfo(product.getTax().getId(), product.getTax().getName());
                    dlintegration.syncTaxCategory(tc);
                   
                    // Synchonization of taxes
                    TaxInfo t = new TaxInfo(
                            product.getTax().getId(),
                            product.getTax().getName(),
                            tc.getID(),
                            new Date(Long.MIN_VALUE),
                            null,
                            null,
                            product.getTax().getPercentage() / 100,
                            false,
                            0);
                    dlintegration.syncTax(t);
                  
                    // Synchonization of categories
                    CategoryInfo c = new CategoryInfo(product.getCategory().getId(), product.getCategory().getName(), null);
                    dlintegration.syncCategory(c);

                    // Synchonization of products
                    ProductInfoExt p = new ProductInfoExt();
                    p.setID(product.getId());
                    p.setReference(product.getId());
                    p.setCode(product.getEan() == null || product.getEan().equals("") ? product.getId() : product.getEan());
                    p.setName(product.getName());
                    p.setCom(false);
                    p.setScale(false);
                    p.setPriceBuy(product.getPurchasePrice());
                    p.setPriceSell(product.getListPrice());
                    p.setCategoryID(c.getID());
                    p.setTaxCategoryID(tc.getID());
                    p.setImage(ImageUtils.readImage(product.getImageUrl()));
                    dlintegration.syncProduct(p)
                   
                    // Synchronization of stock         
                    if (product instanceof ProductPlus) {
View Full Code Here

    public final SentenceList getUserList() {
        return new StaticSentence(s
            , "SELECT ID, NAME FROM PEOPLE ORDER BY NAME"
            , null
            , new SerializerRead() { public Object readValues(DataRead dr) throws BasicException {
                return new TaxCategoryInfo(
                        dr.getString(1),
                        dr.getString(2));
            }});
    }
View Full Code Here

    public final SentenceList getTaxCategoriesList() {
        return new StaticSentence(s
            , "SELECT ID, NAME FROM TAXCATEGORIES ORDER BY NAME"
            , null
            , new SerializerRead() { public Object readValues(DataRead dr) throws BasicException {
                return new TaxCategoryInfo(dr.getString(1), dr.getString(2));
            }});
    }
View Full Code Here

TOP

Related Classes of com.openbravo.pos.inventory.TaxCategoryInfo

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.