Examples of Tax


Examples of org.hoteia.qalingo.core.domain.Tax

       
        if (result.hasErrors()) {
            return taxEdit(request, model, taxForm);
        }
       
        Tax tax = null;
        if(StringUtils.isNotEmpty(taxForm.getId())){
            tax = taxService.getTaxById(taxForm.getId());
        }

        try {
            // CREATE OR UPDATE TAX
            Tax savedTax = webBackofficeService.createOrUpdateTax(tax, taxForm);
           
            if (tax == null) {
                addSuccessMessage(request, getSpecificMessage(ScopeWebMessage.TAX, "create_success_message", locale));
            } else {
                addSuccessMessage(request, getSpecificMessage(ScopeWebMessage.TAX, "update_success_message", locale));
View Full Code Here

Examples of org.hoteia.qalingo.core.domain.Tax

    protected TaxForm initTaxForm(final HttpServletRequest request, final Model model) throws Exception {
        final RequestData requestData = requestUtil.getRequestData(request);
       
        final String taxCode = request.getParameter(RequestConstants.REQUEST_PARAMETER_TAX_CODE);
        if(StringUtils.isNotEmpty(taxCode)){
            final Tax taxEdit = taxService.getTaxByCode(taxCode);
            return backofficeFormFactory.buildTaxForm(requestData, taxEdit);
        }
       
        return backofficeFormFactory.buildTaxForm(requestData, null);
    }
View Full Code Here

Examples of org.hoteia.qalingo.core.domain.Tax

        PagedListHolder<TaxViewBean> TaxViewBeanPagedListHolder = new PagedListHolder<TaxViewBean>();
       
        final List<TaxViewBean> TaxViewBeans = new ArrayList<TaxViewBean>();
        for (Iterator<Tax> iterator = taxs.iterator(); iterator.hasNext();) {
            Tax taxIt = (Tax) iterator.next();
            TaxViewBeans.add(backofficeViewBeanFactory.buildViewBeanTax(requestData, taxIt));
        }
        TaxViewBeanPagedListHolder = new PagedListHolder<TaxViewBean>(TaxViewBeans);
        TaxViewBeanPagedListHolder.setPageSize(Constants.PAGE_SIZE);
        request.getSession().setAttribute(sessionKey, TaxViewBeanPagedListHolder);
View Full Code Here

Examples of org.hoteia.qalingo.core.domain.Tax

                    } else if (param instanceof DeliveryMethod) {
                        DeliveryMethod deliveryMethod = (DeliveryMethod) param;
                        getParams.put(RequestConstants.REQUEST_PARAMETER_DELIVERY_METHOD_CODE, handleParamValue(deliveryMethod.getCode().toString()));
                        break;
                    } else if (param instanceof Tax) {
                        Tax tax = (Tax) param;
                        getParams.put(RequestConstants.REQUEST_PARAMETER_TAX_CODE, handleParamValue(tax.getCode().toString()));
                        break;
                    } else if (param instanceof OrderCustomer) {
                        OrderCustomer order = (OrderCustomer) param;
                        getParams.put(RequestConstants.REQUEST_PARAMETER_ORDER_NUM, handleParamValue(order.getOrderNum().toString()));
                        break;
View Full Code Here

Examples of pl.com.bottega.ecommerce.sales.domain.invoicing.Tax

 
  @Override
  public Tax calculateTax(ProductType productType, Money net) {
    String desc = "sorry";       
    Money tax = net.multiplyBy(ratio);
    return new Tax(tax, desc);
  }
View Full Code Here

Examples of pl.com.bottega.ecommerce.sales.domain.invoicing.Tax

      throw new IllegalArgumentException(productType + " not handled");
    }
       
    Money tax = net.multiplyBy(ratio);
   
    return new Tax(tax, desc);
  }
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.