// uniCenta oPOS - Touch Friendly Point Of Sale // Copyright (c) 2009-2013 uniCenta // http://www.unicenta.net/unicentaopos // // This file is part of uniCenta oPOS // // uniCenta oPOS is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // uniCenta oPOS is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with uniCenta oPOS. If not, see <http://www.gnu.org/licenses/>. package com.openbravo.pos.ticket; import com.openbravo.data.loader.IKeyed; import java.io.Serializable; /** * * @author adrianromero */ public class TaxInfo implements Serializable, IKeyed { private static final long serialVersionUID = -2705212098856473043L; private String id; private String name; private String taxcategoryid; private String taxcustcategoryid; private String parentid; private double rate; private boolean cascade; private Integer order; /** Creates new TaxInfo */ public TaxInfo(String id, String name, String taxcategoryid, String taxcustcategoryid, String parentid, double rate, boolean cascade, Integer order) { this.id = id; this.name = name; this.taxcategoryid = taxcategoryid; this.taxcustcategoryid = taxcustcategoryid; this.parentid = parentid; this.rate = rate; this.cascade = cascade; this.order = order; } public Object getKey() { return id; } public void setID(String value) { id = value; } public String getId() { return id; } public String getName() { return name; } public void setName(String value) { name = value; } public String getTaxCategoryID() { return taxcategoryid; } public void setTaxCategoryID(String value) { taxcategoryid = value; } public String getTaxCustCategoryID() { return taxcustcategoryid; } public void setTaxCustCategoryID(String value) { taxcustcategoryid = value; } public String getParentID() { return parentid; } public void setParentID(String value) { parentid = value; } public double getRate() { return rate; } public void setRate(double value) { rate = value; } public boolean isCascade() { return cascade; } public void setCascade(boolean value) { cascade = value; } public Integer getOrder() { return order; } public Integer getApplicationOrder() { return order == null ? Integer.MAX_VALUE : order.intValue(); } public void setOrder(Integer value) { order = value; } @Override public String toString(){ return name; } }