public List<ProductPrice> searchProductTags(String tag) throws Exception { ProductPriceType productPriceType = warehouseClient.getProductPriceTypeByType("Bang gia thuong"); List<ProductPrice> productPrices = warehouseClient.findByProductPriceByType(productPriceType.getType()); return productPrices; }
public HashMap<String, List<ProductTag>> getProductTags(boolean reload) throws Exception { if (productTagMap == null || reload) { productTagMap = new HashMap<String, List<ProductTag>>(); List<ProductTag> productTags = warehouseClient.getProductTags(); List<ProductTag> holder = new ArrayList<ProductTag>(); productTagMap.put("All", holder); for (ProductTag productTag : productTags) { holder.add(productTag); } } return productTagMap; }
public Tax saveTax(Tax tax) throws Exception { return warehouseClient.saveTax(tax); }
public List<Tax> getTaxs() throws Exception { return warehouseClient.getTaxs(); }