// Openbravo POS is a point of sales application designed for touch screens.
// Copyright (C) 2007-2009 Openbravo, S.L.
// http://www.openbravo.com/product/pos
//
// This file is part of Openbravo POS.
//
// Openbravo POS 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.
//
// Openbravo POS 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 Openbravo POS. If not, see <http://www.gnu.org/licenses/>.
package com.openbravo.pos.ticket;
import com.openbravo.pos.pda.util.FormatUtils;
import java.io.Serializable;
/**
*
* @author jaroslawwozniak
*/
public class ProductInfo implements Serializable {
private String id;
private String ref;
private String code;
private String name;
private boolean com;
private boolean scale;
private String categoryId;
private String taxcat;
private double priceBuy;
private double priceSell;
public String getTaxcat() {
return taxcat;
}
public void setTaxcat(String taxcat) {
this.taxcat = taxcat;
}
public String getCategoryId() {
return categoryId;
}
public void setCategoryId(String categoryID) {
this.categoryId = categoryID;
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public boolean isCom() {
return com;
}
public void setCom(boolean com) {
this.com = com;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public double getPriceBuy() {
return priceBuy;
}
public void setPriceBuy(double priceBuy) {
this.priceBuy = priceBuy;
}
public double getPriceSell() {
return priceSell;
}
public void setPriceSell(double priceSell) {
this.priceSell = priceSell;
}
public String getRef() {
return ref;
}
public void setRef(String ref) {
this.ref = ref;
}
public boolean isScale() {
return scale;
}
public String printPriceSell() {
return FormatUtils.formatCurrency(priceSell);
}
public void setScale(boolean scale) {
this.scale = scale;
}
}