Class FiscalPrinterService
java.lang.Object
de.gmxhome.conrad.jpos.jpos_base.JposBase
de.gmxhome.conrad.jpos.jpos_base.fiscalprinter.FiscalPrinterService
- All Implemented Interfaces:
jpos.loader.JposServiceInstance
,jpos.services.BaseService
,jpos.services.FiscalPrinterService110
,jpos.services.FiscalPrinterService111
,jpos.services.FiscalPrinterService112
,jpos.services.FiscalPrinterService113
,jpos.services.FiscalPrinterService114
,jpos.services.FiscalPrinterService115
,jpos.services.FiscalPrinterService116
,jpos.services.FiscalPrinterService13
,jpos.services.FiscalPrinterService14
,jpos.services.FiscalPrinterService15
,jpos.services.FiscalPrinterService16
,jpos.services.FiscalPrinterService17
,jpos.services.FiscalPrinterService18
,jpos.services.FiscalPrinterService19
FiscalPrinter service implementation. For more details about getter, setter and method implementations,
see JposBase.
This service supports the following properties in jpos.xml in addition to the properties listed in JposBaseDevice:
This service supports the following properties in jpos.xml in addition to the properties listed in JposBaseDevice:
- UseEnumeratedValues: If true, string representations contain a decimal point, where trailing zeroes up to and inclusive the decimal point can be stripped. Examples for a currency value of 123.4: "123.4", "123.4000". If false, string representations contain the 64-bit integer value used internally to store a currency value. This value does not contain a decimal point. Example for a currency value of 123.4: "1234000", for 0.19: "1900". The default is true.
-
Field Summary
FieldsModifier and TypeFieldDescriptionDeprecated.Instance of a class implementing the FiscalPrinterInterface for fiscal printer specific setter and method calls bound to the property set.Fields inherited from class de.gmxhome.conrad.jpos.jpos_base.JposBase
Device, DeviceInterface, Props
-
Constructor Summary
ConstructorsConstructorDescriptionFiscalPrinterService(FiscalPrinterProperties props, JposDevice device)
Constructor.FiscalPrinterService(FiscalPrinterProperties props, JposDevice device, boolean ignored)
Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
beginFiscalDocument(int documentAmount)
void
beginFiscalReceipt(boolean printHeader)
void
beginFixedOutput(int station, int documentType)
void
beginInsertion(int timeout)
void
beginItemList(int vatID)
void
void
beginRemoval(int timeout)
void
void
checkCoverPaper(int station)
Checks whether the cover is closed and paper present on all selected stations.void
checkReserved(String text, String valuename)
Check whether a text contains the reserved word, if CapReservedWord is true.void
void
void
endFiscalReceipt(boolean printHeader)
void
void
void
void
void
void
int
int
int
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
int
int
boolean
void
void
int
boolean
int
boolean
int
int
int
int
int
int
boolean
boolean
boolean
int
int
int
int
int
int
int
int
boolean
boolean
int
int
boolean
boolean
void
getTotalizer(int vatID, int optArgs, String[] data)
int
boolean
void
getVatEntry(int vatID, int optArgs, int[] vatRate)
void
ifSyncCheckBusyCoverPaper(int station)
If AsyncMode is false, checks whether the device is busy, cover closed and paper present on all selected stations.void
void
printFiscalDocumentLine(String documentLine)
void
printFixedOutput(int documentType, int lineNumber, String data)
void
printNormal(int station, String data)
void
printPeriodicTotalsReport(String date1, String date2)
void
void
printRecCash(long amount)
void
printRecItem(String description, long price, int quantity, int vatInfo, long unitPrice, String unitName)
void
printRecItemAdjustment(int adjustmentType, String description, long amount, int vatInfo)
void
printRecItemAdjustmentVoid(int adjustmentType, String description, long amount, int vatInfo)
void
printRecItemFuel(String description, long price, int quantity, int vatInfo, long unitPrice, String unitName, long specialTax, String specialTaxName)
void
printRecItemFuelVoid(String description, long price, int vatInfo, long specialTax)
void
printRecItemRefund(String description, long amount, int quantity, int vatInfo, long unitAmount, String unitName)
void
printRecItemRefundVoid(String description, long amount, int quantity, int vatInfo, long unitAmount, String unitName)
void
printRecItemVoid(String description, long price, int quantity, int vatInfo, long unitPrice, String unitName)
void
printRecMessage(String message)
void
printRecNotPaid(String description, long amount)
void
printRecPackageAdjustment(int adjustmentType, String description, String vatAdjustment)
void
printRecPackageAdjustVoid(int adjustmentType, String vatAdjustment)
void
printRecRefund(String description, long amount, int vatInfo)
void
printRecRefundVoid(String description, long amount, int vatInfo)
void
printRecSubtotal(long amount)
void
printRecSubtotalAdjustment(int adjustmentType, String description, long amount)
void
printRecSubtotalAdjustVoid(int adjustmentType, long amount)
void
printRecTaxID(String taxId)
void
printRecTotal(long total, long payment, String description)
void
printRecVoid(String description)
void
printRecVoidItem(String description, long price, int quantity, int adjustmentType, long adjustment, int vatInfo)
void
printReport(int reportType, String startNum, String endNum)
void
void
void
void
void
setAdditionalTrailer(String trailer)
void
setChangeDue(String changeDue)
void
setCheckTotal(boolean check)
void
setContractorId(int id)
void
setCurrency(int newCurrency)
void
void
setDateType(int type)
void
setDuplicateReceipt(boolean yes)
void
setFiscalReceiptStation(int station)
void
setFiscalReceiptType(int type)
void
setFlagWhenIdle(boolean b)
void
setHeaderLine(int lineNumber, String text, boolean doubleWidth)
void
setMessageType(int type)
void
void
setPostLine(String text)
void
setPreLine(String text)
void
setSlipSelection(int type)
void
setStoreFiscalID(String ID)
void
setTotalizerType(int type)
void
setTrailerLine(int lineNumber, String text, boolean doubleWidth)
void
void
setVatValue(int vatID, String vatValue)
Sets the value of a specific VAT class in the VAT table.long
stringToCurrency(String value, String name)
Convert a string containing a currency value into a currency value (a long with 4 implicit decimals).stringToCurrency(String value, String name, boolean percent)
Convert a string containing a currency or percentage value into a Number value (a long or int with 4 implicit decimals).void
verifyItem(String itemName, int vatID)
Methods inherited from class de.gmxhome.conrad.jpos.jpos_base.JposBase
callNowOrLater, check, check, check, check, checkBusy, checkClaimed, checkEnabled, checkEnabledUnclaimed, checkFirstEnabled, checkHealth, checkNoChangedOrClaimed, checkOpened, claim, clearInput, clearInputProperties, clearOutput, close, compareFirmwareVersion, deepToString, deleteInstance, directIO, getAsyncMode, getAutoDisable, getCapCompareFirmwareVersion, getCapPowerReporting, getCapStatisticsReporting, getCapUpdateFirmware, getCapUpdateStatistics, getCheckHealthText, getClaimed, getDataCount, getDataEventEnabled, getDeviceEnabled, getDeviceServiceDescription, getDeviceServiceVersion, getFreezeEvents, getOutputID, getPhysicalDeviceDescription, getPhysicalDeviceName, getPowerNotify, getPowerState, getPropertyString, getState, logAsyncCall, logCall, logCall, logGet, logGet, logPreCall, logPreCall, logPreSet, logSet, open, release, removeOuterArraySpecifier, resetStatistics, retrieveStatistics, setAsyncMode, setAutoDisable, setDataEventEnabled, setDeviceEnabled, setFreezeEvents, setPowerNotify, signalRelease, startClaiming, updateFirmware, updateStatistics
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface jpos.services.BaseService
checkHealth, claim, close, directIO, getCheckHealthText, getClaimed, getDeviceEnabled, getDeviceServiceDescription, getDeviceServiceVersion, getFreezeEvents, getPhysicalDeviceDescription, getPhysicalDeviceName, getState, open, release, setDeviceEnabled, setFreezeEvents
Methods inherited from interface jpos.services.FiscalPrinterService13
clearOutput, getAsyncMode, getCapPowerReporting, getOutputID, getPowerNotify, getPowerState, setAsyncMode, setPowerNotify
Methods inherited from interface jpos.services.FiscalPrinterService18
getCapStatisticsReporting, getCapUpdateStatistics, resetStatistics, retrieveStatistics, updateStatistics
Methods inherited from interface jpos.services.FiscalPrinterService19
compareFirmwareVersion, getCapCompareFirmwareVersion, getCapUpdateFirmware, updateFirmware
Methods inherited from interface jpos.loader.JposServiceInstance
deleteInstance
-
Field Details
-
FiscalPrinterInterface
Instance of a class implementing the FiscalPrinterInterface for fiscal printer specific setter and method calls bound to the property set. Almost always the same object as Data. -
AllowItemAdjustmentTypesInPackageAdjustment
Deprecated.True if package adjustments may have the same (or a sub-set of) adjustment types as item adjustments. False if only FPTR_AT_DISCOUNT and FPTR_AT_SURCHARGE are valid package adjustment types, as specified in the UPOS specification.
-
-
Constructor Details
-
FiscalPrinterService
Constructor. Stores given property set and device implementation object.- Parameters:
props
- Property set.device
- Device implementation object.
-
FiscalPrinterService
Constructor. Stores given property set and device implementation object.- Parameters:
props
- Property set.ignored
- Will not be used. Previous versions specified the value of Data.CurrencyStringWithDecimalPoint here.device
- Device implementation object.
-
-
Method Details
-
checkReserved
Check whether a text contains the reserved word, if CapReservedWord is true. If so, a JposException will be thrown with error code E_EXTENDED and extended error code EFPTR_BAD_ITEM_DESCRIPTION.- Parameters:
text
- Text to be checkedvaluename
- Name of the text argument to be checked.- Throws:
jpos.JposException
- with E_EXTENDED and EFPTR_BAD_ITEM_DESCRIPTION if the text contains the reserved word.
-
stringToCurrency
Convert a string containing a currency value into a currency value (a long with 4 implicit decimals). Class BigDecimal will be used for conversion- Parameters:
value
- Value to be converted.name
- Name of the value, used if value is invalid.- Returns:
- Currency value if value could be converted.
- Throws:
jpos.JposException
- with error code E_ILLEGAL if value cannot be converted or if value is out of range.
-
stringToCurrency
public Number stringToCurrency(String value, String name, boolean percent) throws jpos.JposExceptionConvert a string containing a currency or percentage value into a Number value (a long or int with 4 implicit decimals). Class BigDecimal will be used for conversion- Parameters:
value
- Value to be converted.name
- Name of the value, used if value is invalid.percent
- If true, return value is percent value, otherwise fixed amount.- Returns:
- Number value if value could be converted.
- Throws:
jpos.JposException
- with error code E_ILLEGAL if value cannot be converted or if value is out of range.
-
ifSyncCheckBusyCoverPaper
public void ifSyncCheckBusyCoverPaper(int station) throws jpos.JposExceptionIf AsyncMode is false, checks whether the device is busy, cover closed and paper present on all selected stations.- Parameters:
station
- Selected station(s), any bit-wise combination of S_JOURNAL, S_RECEIPT and S_SLIP.- Throws:
jpos.JposException
- If AsyncMode is false and device busy, cover open or paper not present.
-
checkCoverPaper
public void checkCoverPaper(int station) throws jpos.JposExceptionChecks whether the cover is closed and paper present on all selected stations.- Parameters:
station
- Selected station(s), any bit-wise combination of S_JOURNAL, S_RECEIPT and S_SLIP.- Throws:
jpos.JposException
- If AsyncMode is false and device busy, cover open or paper not present.
-
getActualCurrency
public int getActualCurrency() throws jpos.JposException- Specified by:
getActualCurrency
in interfacejpos.services.FiscalPrinterService16
- Throws:
jpos.JposException
-
getAdditionalHeader
- Specified by:
getAdditionalHeader
in interfacejpos.services.FiscalPrinterService16
- Throws:
jpos.JposException
-
setAdditionalHeader
- Specified by:
setAdditionalHeader
in interfacejpos.services.FiscalPrinterService16
- Throws:
jpos.JposException
-
getAdditionalTrailer
- Specified by:
getAdditionalTrailer
in interfacejpos.services.FiscalPrinterService16
- Throws:
jpos.JposException
-
setAdditionalTrailer
- Specified by:
setAdditionalTrailer
in interfacejpos.services.FiscalPrinterService16
- Throws:
jpos.JposException
-
getAmountDecimalPlace
public int getAmountDecimalPlace() throws jpos.JposException- Specified by:
getAmountDecimalPlace
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getAmountDecimalPlaces
public int getAmountDecimalPlaces() throws jpos.JposException- Specified by:
getAmountDecimalPlaces
in interfacejpos.services.FiscalPrinterService17
- Throws:
jpos.JposException
-
getCapAdditionalHeader
public boolean getCapAdditionalHeader() throws jpos.JposException- Specified by:
getCapAdditionalHeader
in interfacejpos.services.FiscalPrinterService16
- Throws:
jpos.JposException
-
getCapAdditionalLines
public boolean getCapAdditionalLines() throws jpos.JposException- Specified by:
getCapAdditionalLines
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getCapAdditionalTrailer
public boolean getCapAdditionalTrailer() throws jpos.JposException- Specified by:
getCapAdditionalTrailer
in interfacejpos.services.FiscalPrinterService16
- Throws:
jpos.JposException
-
getCapAmountAdjustment
public boolean getCapAmountAdjustment() throws jpos.JposException- Specified by:
getCapAmountAdjustment
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getCapAmountNotPaid
public boolean getCapAmountNotPaid() throws jpos.JposException- Specified by:
getCapAmountNotPaid
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getCapChangeDue
public boolean getCapChangeDue() throws jpos.JposException- Specified by:
getCapChangeDue
in interfacejpos.services.FiscalPrinterService16
- Throws:
jpos.JposException
-
getCapCheckTotal
public boolean getCapCheckTotal() throws jpos.JposException- Specified by:
getCapCheckTotal
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getCapCoverSensor
public boolean getCapCoverSensor() throws jpos.JposException- Specified by:
getCapCoverSensor
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getCapDoubleWidth
public boolean getCapDoubleWidth() throws jpos.JposException- Specified by:
getCapDoubleWidth
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getCapDuplicateReceipt
public boolean getCapDuplicateReceipt() throws jpos.JposException- Specified by:
getCapDuplicateReceipt
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getCapEmptyReceiptIsVoidable
public boolean getCapEmptyReceiptIsVoidable() throws jpos.JposException- Specified by:
getCapEmptyReceiptIsVoidable
in interfacejpos.services.FiscalPrinterService16
- Throws:
jpos.JposException
-
getCapFiscalReceiptStation
public boolean getCapFiscalReceiptStation() throws jpos.JposException- Specified by:
getCapFiscalReceiptStation
in interfacejpos.services.FiscalPrinterService16
- Throws:
jpos.JposException
-
getCapFiscalReceiptType
public boolean getCapFiscalReceiptType() throws jpos.JposException- Specified by:
getCapFiscalReceiptType
in interfacejpos.services.FiscalPrinterService16
- Throws:
jpos.JposException
-
getCapFixedOutput
public boolean getCapFixedOutput() throws jpos.JposException- Specified by:
getCapFixedOutput
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getCapHasVatTable
public boolean getCapHasVatTable() throws jpos.JposException- Specified by:
getCapHasVatTable
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getCapIndependentHeader
public boolean getCapIndependentHeader() throws jpos.JposException- Specified by:
getCapIndependentHeader
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getCapItemList
public boolean getCapItemList() throws jpos.JposException- Specified by:
getCapItemList
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getCapJrnEmptySensor
public boolean getCapJrnEmptySensor() throws jpos.JposException- Specified by:
getCapJrnEmptySensor
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getCapJrnNearEndSensor
public boolean getCapJrnNearEndSensor() throws jpos.JposException- Specified by:
getCapJrnNearEndSensor
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getCapJrnPresent
public boolean getCapJrnPresent() throws jpos.JposException- Specified by:
getCapJrnPresent
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getCapMultiContractor
public boolean getCapMultiContractor() throws jpos.JposException- Specified by:
getCapMultiContractor
in interfacejpos.services.FiscalPrinterService16
- Throws:
jpos.JposException
-
getCapNonFiscalMode
public boolean getCapNonFiscalMode() throws jpos.JposException- Specified by:
getCapNonFiscalMode
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getCapOnlyVoidLastItem
public boolean getCapOnlyVoidLastItem() throws jpos.JposException- Specified by:
getCapOnlyVoidLastItem
in interfacejpos.services.FiscalPrinterService16
- Throws:
jpos.JposException
-
getCapOrderAdjustmentFirst
public boolean getCapOrderAdjustmentFirst() throws jpos.JposException- Specified by:
getCapOrderAdjustmentFirst
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getCapPackageAdjustment
public boolean getCapPackageAdjustment() throws jpos.JposException- Specified by:
getCapPackageAdjustment
in interfacejpos.services.FiscalPrinterService16
- Throws:
jpos.JposException
-
getCapPercentAdjustment
public boolean getCapPercentAdjustment() throws jpos.JposException- Specified by:
getCapPercentAdjustment
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getCapPositiveAdjustment
public boolean getCapPositiveAdjustment() throws jpos.JposException- Specified by:
getCapPositiveAdjustment
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getCapPositiveSubtotalAdjustment
public boolean getCapPositiveSubtotalAdjustment() throws jpos.JposException- Specified by:
getCapPositiveSubtotalAdjustment
in interfacejpos.services.FiscalPrinterService111
- Throws:
jpos.JposException
-
getCapPostPreLine
public boolean getCapPostPreLine() throws jpos.JposException- Specified by:
getCapPostPreLine
in interfacejpos.services.FiscalPrinterService16
- Throws:
jpos.JposException
-
getCapPowerLossReport
public boolean getCapPowerLossReport() throws jpos.JposException- Specified by:
getCapPowerLossReport
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getCapPredefinedPaymentLines
public boolean getCapPredefinedPaymentLines() throws jpos.JposException- Specified by:
getCapPredefinedPaymentLines
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getCapReceiptNotPaid
public boolean getCapReceiptNotPaid() throws jpos.JposException- Specified by:
getCapReceiptNotPaid
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getCapRecEmptySensor
public boolean getCapRecEmptySensor() throws jpos.JposException- Specified by:
getCapRecEmptySensor
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getCapRecNearEndSensor
public boolean getCapRecNearEndSensor() throws jpos.JposException- Specified by:
getCapRecNearEndSensor
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getCapRecPresent
public boolean getCapRecPresent() throws jpos.JposException- Specified by:
getCapRecPresent
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getCapRemainingFiscalMemory
public boolean getCapRemainingFiscalMemory() throws jpos.JposException- Specified by:
getCapRemainingFiscalMemory
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getCapReservedWord
public boolean getCapReservedWord() throws jpos.JposException- Specified by:
getCapReservedWord
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getCapSetCurrency
public boolean getCapSetCurrency() throws jpos.JposException- Specified by:
getCapSetCurrency
in interfacejpos.services.FiscalPrinterService16
- Throws:
jpos.JposException
-
getCapSetHeader
public boolean getCapSetHeader() throws jpos.JposException- Specified by:
getCapSetHeader
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getCapSetPOSID
public boolean getCapSetPOSID() throws jpos.JposException- Specified by:
getCapSetPOSID
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getCapSetStoreFiscalID
public boolean getCapSetStoreFiscalID() throws jpos.JposException- Specified by:
getCapSetStoreFiscalID
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getCapSetTrailer
public boolean getCapSetTrailer() throws jpos.JposException- Specified by:
getCapSetTrailer
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getCapSetVatTable
public boolean getCapSetVatTable() throws jpos.JposException- Specified by:
getCapSetVatTable
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getCapSlpEmptySensor
public boolean getCapSlpEmptySensor() throws jpos.JposException- Specified by:
getCapSlpEmptySensor
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getCapSlpFiscalDocument
public boolean getCapSlpFiscalDocument() throws jpos.JposException- Specified by:
getCapSlpFiscalDocument
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getCapSlpFullSlip
public boolean getCapSlpFullSlip() throws jpos.JposException- Specified by:
getCapSlpFullSlip
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getCapSlpNearEndSensor
public boolean getCapSlpNearEndSensor() throws jpos.JposException- Specified by:
getCapSlpNearEndSensor
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getCapSlpPresent
public boolean getCapSlpPresent() throws jpos.JposException- Specified by:
getCapSlpPresent
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getCapSlpValidation
public boolean getCapSlpValidation() throws jpos.JposException- Specified by:
getCapSlpValidation
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getCapSubAmountAdjustment
public boolean getCapSubAmountAdjustment() throws jpos.JposException- Specified by:
getCapSubAmountAdjustment
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getCapSubPercentAdjustment
public boolean getCapSubPercentAdjustment() throws jpos.JposException- Specified by:
getCapSubPercentAdjustment
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getCapSubtotal
public boolean getCapSubtotal() throws jpos.JposException- Specified by:
getCapSubtotal
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getCapTotalizerType
public boolean getCapTotalizerType() throws jpos.JposException- Specified by:
getCapTotalizerType
in interfacejpos.services.FiscalPrinterService16
- Throws:
jpos.JposException
-
getCapTrainingMode
public boolean getCapTrainingMode() throws jpos.JposException- Specified by:
getCapTrainingMode
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getCapValidateJournal
public boolean getCapValidateJournal() throws jpos.JposException- Specified by:
getCapValidateJournal
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getCapXReport
public boolean getCapXReport() throws jpos.JposException- Specified by:
getCapXReport
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getChangeDue
- Specified by:
getChangeDue
in interfacejpos.services.FiscalPrinterService16
- Throws:
jpos.JposException
-
setChangeDue
- Specified by:
setChangeDue
in interfacejpos.services.FiscalPrinterService16
- Throws:
jpos.JposException
-
getCheckTotal
public boolean getCheckTotal() throws jpos.JposException- Specified by:
getCheckTotal
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
setCheckTotal
public void setCheckTotal(boolean check) throws jpos.JposException- Specified by:
setCheckTotal
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getContractorId
public int getContractorId() throws jpos.JposException- Specified by:
getContractorId
in interfacejpos.services.FiscalPrinterService16
- Throws:
jpos.JposException
-
setContractorId
public void setContractorId(int id) throws jpos.JposException- Specified by:
setContractorId
in interfacejpos.services.FiscalPrinterService16
- Throws:
jpos.JposException
-
getCountryCode
public int getCountryCode() throws jpos.JposException- Specified by:
getCountryCode
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getCoverOpen
public boolean getCoverOpen() throws jpos.JposException- Specified by:
getCoverOpen
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getDateType
public int getDateType() throws jpos.JposException- Specified by:
getDateType
in interfacejpos.services.FiscalPrinterService16
- Throws:
jpos.JposException
-
setDateType
public void setDateType(int type) throws jpos.JposException- Specified by:
setDateType
in interfacejpos.services.FiscalPrinterService16
- Throws:
jpos.JposException
-
getDayOpened
public boolean getDayOpened() throws jpos.JposException- Specified by:
getDayOpened
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getDescriptionLength
public int getDescriptionLength() throws jpos.JposException- Specified by:
getDescriptionLength
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getDuplicateReceipt
public boolean getDuplicateReceipt() throws jpos.JposException- Specified by:
getDuplicateReceipt
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
setDuplicateReceipt
public void setDuplicateReceipt(boolean yes) throws jpos.JposException- Specified by:
setDuplicateReceipt
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getErrorLevel
public int getErrorLevel() throws jpos.JposException- Specified by:
getErrorLevel
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getErrorOutID
public int getErrorOutID() throws jpos.JposException- Specified by:
getErrorOutID
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getErrorState
public int getErrorState() throws jpos.JposException- Specified by:
getErrorState
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getErrorStation
public int getErrorStation() throws jpos.JposException- Specified by:
getErrorStation
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getErrorString
- Specified by:
getErrorString
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getFiscalReceiptStation
public int getFiscalReceiptStation() throws jpos.JposException- Specified by:
getFiscalReceiptStation
in interfacejpos.services.FiscalPrinterService16
- Throws:
jpos.JposException
-
setFiscalReceiptStation
public void setFiscalReceiptStation(int station) throws jpos.JposException- Specified by:
setFiscalReceiptStation
in interfacejpos.services.FiscalPrinterService16
- Throws:
jpos.JposException
-
getFiscalReceiptType
public int getFiscalReceiptType() throws jpos.JposException- Specified by:
getFiscalReceiptType
in interfacejpos.services.FiscalPrinterService16
- Throws:
jpos.JposException
-
setFiscalReceiptType
public void setFiscalReceiptType(int type) throws jpos.JposException- Specified by:
setFiscalReceiptType
in interfacejpos.services.FiscalPrinterService16
- Throws:
jpos.JposException
-
getFlagWhenIdle
public boolean getFlagWhenIdle() throws jpos.JposException- Specified by:
getFlagWhenIdle
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
setFlagWhenIdle
public void setFlagWhenIdle(boolean b) throws jpos.JposException- Specified by:
setFlagWhenIdle
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getJrnEmpty
public boolean getJrnEmpty() throws jpos.JposException- Specified by:
getJrnEmpty
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getJrnNearEnd
public boolean getJrnNearEnd() throws jpos.JposException- Specified by:
getJrnNearEnd
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getMessageLength
public int getMessageLength() throws jpos.JposException- Specified by:
getMessageLength
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getMessageType
public int getMessageType() throws jpos.JposException- Specified by:
getMessageType
in interfacejpos.services.FiscalPrinterService16
- Throws:
jpos.JposException
-
setMessageType
public void setMessageType(int type) throws jpos.JposException- Specified by:
setMessageType
in interfacejpos.services.FiscalPrinterService16
- Throws:
jpos.JposException
-
getNumHeaderLines
public int getNumHeaderLines() throws jpos.JposException- Specified by:
getNumHeaderLines
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getNumTrailerLines
public int getNumTrailerLines() throws jpos.JposException- Specified by:
getNumTrailerLines
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getNumVatRates
public int getNumVatRates() throws jpos.JposException- Specified by:
getNumVatRates
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getPostLine
- Specified by:
getPostLine
in interfacejpos.services.FiscalPrinterService16
- Throws:
jpos.JposException
-
setPostLine
- Specified by:
setPostLine
in interfacejpos.services.FiscalPrinterService16
- Throws:
jpos.JposException
-
getPredefinedPaymentLines
- Specified by:
getPredefinedPaymentLines
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getPreLine
- Specified by:
getPreLine
in interfacejpos.services.FiscalPrinterService16
- Throws:
jpos.JposException
-
setPreLine
- Specified by:
setPreLine
in interfacejpos.services.FiscalPrinterService16
- Throws:
jpos.JposException
-
getPrinterState
public int getPrinterState() throws jpos.JposException- Specified by:
getPrinterState
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getQuantityDecimalPlaces
public int getQuantityDecimalPlaces() throws jpos.JposException- Specified by:
getQuantityDecimalPlaces
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getQuantityLength
public int getQuantityLength() throws jpos.JposException- Specified by:
getQuantityLength
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getRecEmpty
public boolean getRecEmpty() throws jpos.JposException- Specified by:
getRecEmpty
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getRecNearEnd
public boolean getRecNearEnd() throws jpos.JposException- Specified by:
getRecNearEnd
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getRemainingFiscalMemory
public int getRemainingFiscalMemory() throws jpos.JposException- Specified by:
getRemainingFiscalMemory
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getReservedWord
- Specified by:
getReservedWord
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getSlpEmpty
public boolean getSlpEmpty() throws jpos.JposException- Specified by:
getSlpEmpty
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getSlpNearEnd
public boolean getSlpNearEnd() throws jpos.JposException- Specified by:
getSlpNearEnd
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getSlipSelection
public int getSlipSelection() throws jpos.JposException- Specified by:
getSlipSelection
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
setSlipSelection
public void setSlipSelection(int type) throws jpos.JposException- Specified by:
setSlipSelection
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getTotalizerType
public int getTotalizerType() throws jpos.JposException- Specified by:
getTotalizerType
in interfacejpos.services.FiscalPrinterService16
- Throws:
jpos.JposException
-
setTotalizerType
public void setTotalizerType(int type) throws jpos.JposException- Specified by:
setTotalizerType
in interfacejpos.services.FiscalPrinterService16
- Throws:
jpos.JposException
-
getTrainingModeActive
public boolean getTrainingModeActive() throws jpos.JposException- Specified by:
getTrainingModeActive
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
beginFiscalDocument
public void beginFiscalDocument(int documentAmount) throws jpos.JposException- Specified by:
beginFiscalDocument
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
beginFiscalReceipt
public void beginFiscalReceipt(boolean printHeader) throws jpos.JposException- Specified by:
beginFiscalReceipt
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
beginFixedOutput
public void beginFixedOutput(int station, int documentType) throws jpos.JposException- Specified by:
beginFixedOutput
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
beginInsertion
public void beginInsertion(int timeout) throws jpos.JposException- Specified by:
beginInsertion
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
beginItemList
public void beginItemList(int vatID) throws jpos.JposException- Specified by:
beginItemList
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
beginNonFiscal
public void beginNonFiscal() throws jpos.JposException- Specified by:
beginNonFiscal
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
beginRemoval
public void beginRemoval(int timeout) throws jpos.JposException- Specified by:
beginRemoval
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
beginTraining
public void beginTraining() throws jpos.JposException- Specified by:
beginTraining
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
clearError
public void clearError() throws jpos.JposException- Specified by:
clearError
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
endFiscalDocument
public void endFiscalDocument() throws jpos.JposException- Specified by:
endFiscalDocument
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
endFiscalReceipt
public void endFiscalReceipt(boolean printHeader) throws jpos.JposException- Specified by:
endFiscalReceipt
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
endFixedOutput
public void endFixedOutput() throws jpos.JposException- Specified by:
endFixedOutput
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
endInsertion
public void endInsertion() throws jpos.JposException- Specified by:
endInsertion
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
endItemList
public void endItemList() throws jpos.JposException- Specified by:
endItemList
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
endNonFiscal
public void endNonFiscal() throws jpos.JposException- Specified by:
endNonFiscal
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
endRemoval
public void endRemoval() throws jpos.JposException- Specified by:
endRemoval
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
endTraining
public void endTraining() throws jpos.JposException- Specified by:
endTraining
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getData
- Specified by:
getData
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getDate
- Specified by:
getDate
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getTotalizer
- Specified by:
getTotalizer
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
getVatEntry
public void getVatEntry(int vatID, int optArgs, int[] vatRate) throws jpos.JposException- Specified by:
getVatEntry
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
printDuplicateReceipt
public void printDuplicateReceipt() throws jpos.JposException- Specified by:
printDuplicateReceipt
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
printPeriodicTotalsReport
- Specified by:
printPeriodicTotalsReport
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
printPowerLossReport
public void printPowerLossReport() throws jpos.JposException- Specified by:
printPowerLossReport
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
printRecVoidItem
public void printRecVoidItem(String description, long price, int quantity, int adjustmentType, long adjustment, int vatInfo) throws jpos.JposException- Specified by:
printRecVoidItem
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
printReport
- Specified by:
printReport
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
printXReport
public void printXReport() throws jpos.JposException- Specified by:
printXReport
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
printZReport
public void printZReport() throws jpos.JposException- Specified by:
printZReport
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
resetPrinter
public void resetPrinter() throws jpos.JposException- Specified by:
resetPrinter
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
setCurrency
public void setCurrency(int newCurrency) throws jpos.JposException- Specified by:
setCurrency
in interfacejpos.services.FiscalPrinterService16
- Throws:
jpos.JposException
-
setDate
- Specified by:
setDate
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
setHeaderLine
public void setHeaderLine(int lineNumber, String text, boolean doubleWidth) throws jpos.JposException- Specified by:
setHeaderLine
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
setPOSID
- Specified by:
setPOSID
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
setStoreFiscalID
- Specified by:
setStoreFiscalID
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
setTrailerLine
public void setTrailerLine(int lineNumber, String text, boolean doubleWidth) throws jpos.JposException- Specified by:
setTrailerLine
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
setVatTable
public void setVatTable() throws jpos.JposException- Specified by:
setVatTable
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
setVatValue
Sets the value of a specific VAT class in the VAT table. See UPOS specification, chapter Fiscal Printer - Methods - setVatValue. In this implementation, vatValue must be either a percentage value (0 or a value between 0.01 and 99.9999, either specified with decimal point or with 4 implicit digits) or an integer and a percent value, separated by comma. Examples for vatValue are "0", "0,0", "1,0", "19", "55000", "1,5.5".
If vatValue is an integer and a percentage value separated by comma, the integer specifies the optArgs argument that must be passed to getVatEntry together with vatID to retrieve the vat rate after the vat table has been set.- Specified by:
setVatValue
in interfacejpos.services.FiscalPrinterService13
- Parameters:
vatID
- Index of the vat table entry to be set.vatValue
- Tax value specifier, percentage value or integer and percentage value, separated by comma.- Throws:
jpos.JposException
- If an error occurs
-
verifyItem
- Specified by:
verifyItem
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
printFiscalDocumentLine
- Specified by:
printFiscalDocumentLine
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
printFixedOutput
public void printFixedOutput(int documentType, int lineNumber, String data) throws jpos.JposException- Specified by:
printFixedOutput
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
printNormal
- Specified by:
printNormal
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
printRecCash
public void printRecCash(long amount) throws jpos.JposException- Specified by:
printRecCash
in interfacejpos.services.FiscalPrinterService16
- Throws:
jpos.JposException
-
printRecItem
public void printRecItem(String description, long price, int quantity, int vatInfo, long unitPrice, String unitName) throws jpos.JposException- Specified by:
printRecItem
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
printRecItemAdjustment
public void printRecItemAdjustment(int adjustmentType, String description, long amount, int vatInfo) throws jpos.JposException- Specified by:
printRecItemAdjustment
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
printRecItemAdjustmentVoid
public void printRecItemAdjustmentVoid(int adjustmentType, String description, long amount, int vatInfo) throws jpos.JposException- Specified by:
printRecItemAdjustmentVoid
in interfacejpos.services.FiscalPrinterService111
- Throws:
jpos.JposException
-
printRecItemFuel
public void printRecItemFuel(String description, long price, int quantity, int vatInfo, long unitPrice, String unitName, long specialTax, String specialTaxName) throws jpos.JposException- Specified by:
printRecItemFuel
in interfacejpos.services.FiscalPrinterService16
- Throws:
jpos.JposException
-
printRecItemFuelVoid
public void printRecItemFuelVoid(String description, long price, int vatInfo, long specialTax) throws jpos.JposException- Specified by:
printRecItemFuelVoid
in interfacejpos.services.FiscalPrinterService16
- Throws:
jpos.JposException
-
printRecItemRefund
public void printRecItemRefund(String description, long amount, int quantity, int vatInfo, long unitAmount, String unitName) throws jpos.JposException- Specified by:
printRecItemRefund
in interfacejpos.services.FiscalPrinterService112
- Throws:
jpos.JposException
-
printRecItemRefundVoid
public void printRecItemRefundVoid(String description, long amount, int quantity, int vatInfo, long unitAmount, String unitName) throws jpos.JposException- Specified by:
printRecItemRefundVoid
in interfacejpos.services.FiscalPrinterService112
- Throws:
jpos.JposException
-
printRecItemVoid
public void printRecItemVoid(String description, long price, int quantity, int vatInfo, long unitPrice, String unitName) throws jpos.JposException- Specified by:
printRecItemVoid
in interfacejpos.services.FiscalPrinterService111
- Throws:
jpos.JposException
-
printRecMessage
- Specified by:
printRecMessage
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
printRecNotPaid
- Specified by:
printRecNotPaid
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
printRecPackageAdjustment
public void printRecPackageAdjustment(int adjustmentType, String description, String vatAdjustment) throws jpos.JposException- Specified by:
printRecPackageAdjustment
in interfacejpos.services.FiscalPrinterService16
- Throws:
jpos.JposException
-
printRecPackageAdjustVoid
public void printRecPackageAdjustVoid(int adjustmentType, String vatAdjustment) throws jpos.JposException- Specified by:
printRecPackageAdjustVoid
in interfacejpos.services.FiscalPrinterService16
- Throws:
jpos.JposException
-
printRecRefund
- Specified by:
printRecRefund
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
printRecRefundVoid
public void printRecRefundVoid(String description, long amount, int vatInfo) throws jpos.JposException- Specified by:
printRecRefundVoid
in interfacejpos.services.FiscalPrinterService16
- Throws:
jpos.JposException
-
printRecSubtotal
public void printRecSubtotal(long amount) throws jpos.JposException- Specified by:
printRecSubtotal
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
printRecSubtotalAdjustment
public void printRecSubtotalAdjustment(int adjustmentType, String description, long amount) throws jpos.JposException- Specified by:
printRecSubtotalAdjustment
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
printRecSubtotalAdjustVoid
public void printRecSubtotalAdjustVoid(int adjustmentType, long amount) throws jpos.JposException- Specified by:
printRecSubtotalAdjustVoid
in interfacejpos.services.FiscalPrinterService16
- Throws:
jpos.JposException
-
printRecTaxID
- Specified by:
printRecTaxID
in interfacejpos.services.FiscalPrinterService16
- Throws:
jpos.JposException
-
printRecTotal
- Specified by:
printRecTotal
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-
printRecVoid
- Specified by:
printRecVoid
in interfacejpos.services.FiscalPrinterService13
- Throws:
jpos.JposException
-