public class ProductFormatter extends Object
Constructor and Description |
---|
ProductFormatter(Product product)
Create a ProductFormatter object
|
Modifier and Type | Method and Description |
---|---|
String |
getCategory()
Get the product category
|
String |
getCode()
Get the barcode
|
Boolean |
getInStock()
Return a the inStock value as a Boolean
|
String |
getName()
Get the product name
|
Double |
getPriceBuy()
Get the buy price
|
Double |
getPriceBuyTax()
Get the buy price with tax
|
Double |
getPriceSell()
Get the sell price
|
Double |
getPriceSellTax()
Get the sell price with tax
|
String |
getReference()
Get the reference number
|
Double |
getTaxRate()
Get the tax rate.
|
Double |
getUnits()
Get the number of units
|
String |
getUnitType()
Get the unit type
|
boolean |
isProductCom()
Identify helper products (commissioning products)
|
String |
printInStock()
Return the inStock value as string
|
String |
printPriceBuy()
Get the buy price
|
String |
printPriceBuyTax()
Get the buy price with tax
|
String |
printPriceSell()
Get the sell price
|
String |
printPriceSellTax()
Get the sell price with tax
|
String |
printsPriceBuy()
Get the buy price
|
String |
printsPriceBuyTax()
Get the buy price with tax
|
String |
printsPriceSell()
Get the sell price
|
String |
printsPriceSellTax()
Get the sell price with tax
|
String |
printTaxRate()
Get the tax rate.
|
public ProductFormatter(Product product)
product
- public String getName()
public Double getPriceBuy()
public String printPriceBuy()
public String printsPriceBuy()
public Double getPriceBuyTax()
public String printPriceBuyTax()
public String printsPriceBuyTax()
public Double getPriceSell()
public String printPriceSell()
public String printsPriceSell()
public Double getPriceSellTax()
public String printPriceSellTax()
public String printsPriceSellTax()
public String getCategory()
public String getCode()
public String getReference()
public boolean isProductCom()
public Double getTaxRate()
public String printTaxRate()
public String printInStock()
public Boolean getInStock()
public Double getUnits()
public String getUnitType()
Copyright © 2021. All rights reserved.