public void setQuantityAvail(String qa) { product.setUnitPrice(Integer.parseInt(qa)); }
public void setUnitPrice(String up) { product.setUnitPrice(Double.parseDouble(up)); }
public int getQuantityAvail() { return product.getQuantityAvail(); }
public void setDescription(String d) { product.setDescription(d); }
public String getUnitPrice() { return String.format("%.2f", product.getUnitPrice()); }
public void setMfgDate(String date) { product.setMfgDate(LocalDate.parse(date)); }
public String getDescription() { return product.getDescription(); }
public String getMfg() { return product.getMfgDate().format(DateTimeFormatter.ofPattern("MM/dd/yyyy")); }
public void setId(int idStr) { product.setProductId(idStr); }
public int getId() { return product.getProductId(); }
public void setName(String aName) { product.setProductName(aName); }
public String getName() { return product.getProductName(); }