public class AccountingLineFormatter extends Object
Constructor and Description |
---|
AccountingLineFormatter(String description,
String taxname,
Double taxrate,
Double taxsum,
Double totaldiscount,
Double total,
Double totalnet,
Double quantity)
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Get the product description.
|
Double |
getQuantity()
The total quantity as double
|
Double |
getTaxrate()
The tax rate
|
Double |
getTaxsum()
The total tax applied
|
Double |
getTotal()
The total sales amount
|
Double |
getTotaldiscount()
The total discount applied
|
String |
printQuantity()
The total quantity formatted as string with two decimals
|
String |
printTaxname()
The tax name.
|
String |
printTaxrate()
The tax rate formatted as currency
|
String |
printTaxsum()
The total tax applied formatted as currency
|
String |
printTotal()
The total gross sales amount formatted as currency
|
String |
printTotalDiscount()
The total discount formatted as currency
|
String |
printTotalNet()
The total net sales amount formatted as currency
|
public AccountingLineFormatter(String description, String taxname, Double taxrate, Double taxsum, Double totaldiscount, Double total, Double totalnet, Double quantity)
description.
- Note that tis parameter only makes sense when the
aocounting lines have beeen grouped by product.taxname
- tax nametaxrate
- tax ratetaxsum
- total taxtotaldiscount
- total discounttotal
- total salestotalnet
- total net valuequantity
- public Double getTaxrate()
public Double getTaxsum()
public Double getTotal()
public Double getTotaldiscount()
public String printTaxname()
public String printTaxrate()
public String printTaxsum()
public String printTotal()
public String printTotalNet()
public String printTotalDiscount()
public String printQuantity()
public Double getQuantity()
public String getDescription()
Copyright © 2021. All rights reserved.