@Override //formatting lineItem for receipt
    public String toString() {
        NumberFormat fmt = NumberFormat.getCurrencyInstance();
        String string = product.getProductId() + "    " + product.getName();
        StringBuilder s = new StringBuilder(string);
        
        //formatting Name
        for (int counter = 0; counter < 25 - product.getName().length(); counter++) {
            s.append(" ");
        }
        s.append(fmt.format(product.getPrice()));
        
        //formatting qty
        if (qty < 10) {
            s.append("      ").append(qty);
        } else if (qty >= 10) {
            s.append("     ").append(qty);
        } else {
            s.append("    ").append(qty);
        }
        
        //formatting subTotal
        if (subTotal() < 10) {
            s.append("             ").append(fmt.format(subTotal()));
        } else if (subTotal() >= 10) {
            s.append("            ").append(fmt.format(subTotal()));
        } else {
            s.append("           ").append(fmt.format(subTotal()));
        }
        
        //formatting Discount
        if (getAmtSaved(qty) < 10) {
            s.append("             ").append(fmt.format(getAmtSaved(qty)));
        } else if (getAmtSaved(qty) >= 10) {
            s.append("            ").append(fmt.format(getAmtSaved(qty)));
        } else {
            s.append("           ").append(fmt.format(getAmtSaved(qty)));
        }
        
        return s.toString();   
    }