public class SalesLineFormatter extends Object
Constructor and Description |
---|
SalesLineFormatter(String name,
Double subTotal,
Double total)
Create a new sales line.
|
Modifier and Type | Method and Description |
---|---|
Double |
getSubtotal()
The net total amount of sales.
|
String |
getTax()
Deprecated.
Use printTax instead
|
Double |
getTaxAmount()
The total amount of tax applied.
|
Double |
getTotal()
The gross total amount of sales.
|
String |
printsTaxAmount()
The total amount of tax applied.
|
String |
printSubtotal()
The net total amount of sales.
|
String |
printTax()
The tax name.
|
String |
printTaxAmount()
The total amount of tax applied.
|
String |
printTotal()
The gross total amount of sales.
|
public String printTax()
public String printSubtotal()
public String printTotal()
public String getTax()
public String printTaxAmount()
public String printsTaxAmount()
public Double getTaxAmount()
public Double getSubtotal()
public Double getTotal()
Copyright © 2021. All rights reserved.