public abstract class JTurnoverCounter extends Object
Constructor and Description |
---|
JTurnoverCounter(int iNumber)
The turnover counter is independent of country specific regulations
and shall always reflect the latest comitted turnover total.
|
Modifier and Type | Method and Description |
---|---|
void |
commitAndClose()
Close must be called to have the counter record saved, the transaction
committed, and the session closed.
|
Long |
getPreviousTurnover()
The turnover value associated with the instance
|
Long |
getTurnover()
The turnover value associated with the instance
|
abstract Long |
getTurnoverFromTicketlines(String register_list)
The turnover can be calculated from ticketlines.
|
void |
incrementTurnover(Long turnover)
Increments the turnover value.
|
void |
setTurnover(long turnover)
The turnover counter should never be set to an absolute value except at
the very start of using the financial security module or after failures
in setting the turnover counter.
|
public JTurnoverCounter(int iNumber) throws FiscalTurnoverException
iNumber
- FiscalTurnoverException
public Long getTurnover()
public Long getPreviousTurnover()
public abstract Long getTurnoverFromTicketlines(String register_list)
register_list
- a comma separated list of register names to retrieve
the values from (register_list=ALL|<name1>[,...])public void setTurnover(long turnover)
turnover
- public void commitAndClose()
public void incrementTurnover(Long turnover) throws FiscalTurnoverException
turnover
- FiscalTurnoverException
Copyright © 2021. All rights reserved.