Package sn.unitech.stock.entity

Examples of sn.unitech.stock.entity.SysValeurTaxe


      params.clear();
      params.put(0, sysTaxe.getIdTaxe());
      params.put(1,montant);
      params.put(2,montant);
      try{
      SysValeurTaxe sysValeurTaxe=(SysValeurTaxe)this.iSysAdherEvtTaxDao.getValeurTaxe(ReadProperties.getReadProperties().read("SysTaxe.valueTaxe"),null, params);
      Double valeur=sysValeurTaxe.getValeur();
      if(sysTaxe.getMethode().trim().equals(ToolsMetier.METHODE_FIXE)) return new Double(Math.round(valeur));
      else if(sysTaxe.getMethode().trim().equals(ToolsMetier.METHODE_PROPORTIONNEL)) return new Double(Math.round( valeur > 1 ? (montant*valeur)/100 : montant*valeur));
      else return new Double(Math.round(sysValeurTaxe.getInite()+ (montant / sysValeurTaxe.getBasef()) * sysValeurTaxe.getTranche()));
      }
      catch(Exception e){   
      return (0d)
      }
      }
View Full Code Here

TOP

Related Classes of sn.unitech.stock.entity.SysValeurTaxe

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.