Package | Description |
---|---|
org.posper.hibernate.formatters |
POSper Formatters
Formatters are passed to the Velocity engine, e.g. when a ticket is printed.
|
Modifier and Type | Method and Description |
---|---|
TaxFormatter |
TicketLineFormatter.getTax()
Get the TaxFormatter object for the tax apllied to the item (in case
of no combined taxes being used).
|
Modifier and Type | Method and Description |
---|---|
List<TaxFormatter> |
TicketLineFormatter.getTaxes()
Get a list of TaxFormatter objects used with this ticketline (in case of
combined taxes for a product)
|
List<TaxFormatter> |
TicketFormatter.getTaxes()
Each ticketline is associated with one or more (if combined taxes are
used) taxes.
|
Modifier and Type | Method and Description |
---|---|
Double |
TicketFormatter.getSubTotalByTax(TaxFormatter taxFormatter)
Get the total taxable base (=nat value) for the tax represented by the tax formatter object.
|
Double |
TicketFormatter.getTaxSum(TaxFormatter taxFormatter)
Get the total tax for the tax represented by the tax formatter object.
|
String |
TicketFormatter.getTaxTotal(TaxFormatter taxFormatter)
Deprecated.
Use printTaxSum instead.
|
Double |
TicketFormatter.getTotalByTax(TaxFormatter taxFormatter)
Get the total taxable (= gross value) for the tax represented by the tax formatter object.
|
String |
TicketFormatter.printsSubTotalByTax(TaxFormatter taxFormatter)
Calculate the subtotal for the ticketlines matching the given tax.
|
String |
TicketFormatter.printsTaxSum(TaxFormatter taxFormatter)
Print the total for the tax represented by the tax formatter object.
|
String |
TicketFormatter.printsTotalByTax(TaxFormatter taxFormatter)
Calculate the subtotal for the ticket which is the net amount w/o taxes.
|
String |
TicketFormatter.printSubTotalByTax(TaxFormatter taxFormatter)
Calculate the subtotal for the ticketlines matching the given tax.
|
String |
TicketFormatter.printTaxSum(TaxFormatter taxFormatter)
Print the total for the tax represented by the tax formatter object.
|
String |
TicketFormatter.printTotalByTax(TaxFormatter taxFormatter)
Calculate the subtotal for the ticket which is the net amount w/o taxes.
|
Copyright © 2021. All rights reserved.