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

public class FiscalPrinterService extends JposBase implements jpos.services.FiscalPrinterService116
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:
  • 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.
This property will only be used if the service factory passes the jpos entries to the addDevice method. If the deprecated addDevice method is used, the service will not consider this property.
  • Field Details

    • FiscalPrinterInterface

      public FiscalPrinterInterface 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 public Boolean 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

      public FiscalPrinterService(FiscalPrinterProperties props, JposDevice device)
      Constructor. Stores given property set and device implementation object.
      Parameters:
      props - Property set.
      device - Device implementation object.
    • FiscalPrinterService

      public FiscalPrinterService(FiscalPrinterProperties props, JposDevice device, boolean ignored)
      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

      public void checkReserved(String text, String valuename) throws jpos.JposException
      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 checked
      valuename - 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

      public long stringToCurrency(String value, String name) throws jpos.JposException
      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.JposException
      Convert 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.JposException
      If 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.JposException
      Checks 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 interface jpos.services.FiscalPrinterService16
      Throws:
      jpos.JposException
    • getAdditionalHeader

      public String getAdditionalHeader() throws jpos.JposException
      Specified by:
      getAdditionalHeader in interface jpos.services.FiscalPrinterService16
      Throws:
      jpos.JposException
    • setAdditionalHeader

      public void setAdditionalHeader(String s) throws jpos.JposException
      Specified by:
      setAdditionalHeader in interface jpos.services.FiscalPrinterService16
      Throws:
      jpos.JposException
    • getAdditionalTrailer

      public String getAdditionalTrailer() throws jpos.JposException
      Specified by:
      getAdditionalTrailer in interface jpos.services.FiscalPrinterService16
      Throws:
      jpos.JposException
    • setAdditionalTrailer

      public void setAdditionalTrailer(String trailer) throws jpos.JposException
      Specified by:
      setAdditionalTrailer in interface jpos.services.FiscalPrinterService16
      Throws:
      jpos.JposException
    • getAmountDecimalPlace

      public int getAmountDecimalPlace() throws jpos.JposException
      Specified by:
      getAmountDecimalPlace in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getAmountDecimalPlaces

      public int getAmountDecimalPlaces() throws jpos.JposException
      Specified by:
      getAmountDecimalPlaces in interface jpos.services.FiscalPrinterService17
      Throws:
      jpos.JposException
    • getCapAdditionalHeader

      public boolean getCapAdditionalHeader() throws jpos.JposException
      Specified by:
      getCapAdditionalHeader in interface jpos.services.FiscalPrinterService16
      Throws:
      jpos.JposException
    • getCapAdditionalLines

      public boolean getCapAdditionalLines() throws jpos.JposException
      Specified by:
      getCapAdditionalLines in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getCapAdditionalTrailer

      public boolean getCapAdditionalTrailer() throws jpos.JposException
      Specified by:
      getCapAdditionalTrailer in interface jpos.services.FiscalPrinterService16
      Throws:
      jpos.JposException
    • getCapAmountAdjustment

      public boolean getCapAmountAdjustment() throws jpos.JposException
      Specified by:
      getCapAmountAdjustment in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getCapAmountNotPaid

      public boolean getCapAmountNotPaid() throws jpos.JposException
      Specified by:
      getCapAmountNotPaid in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getCapChangeDue

      public boolean getCapChangeDue() throws jpos.JposException
      Specified by:
      getCapChangeDue in interface jpos.services.FiscalPrinterService16
      Throws:
      jpos.JposException
    • getCapCheckTotal

      public boolean getCapCheckTotal() throws jpos.JposException
      Specified by:
      getCapCheckTotal in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getCapCoverSensor

      public boolean getCapCoverSensor() throws jpos.JposException
      Specified by:
      getCapCoverSensor in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getCapDoubleWidth

      public boolean getCapDoubleWidth() throws jpos.JposException
      Specified by:
      getCapDoubleWidth in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getCapDuplicateReceipt

      public boolean getCapDuplicateReceipt() throws jpos.JposException
      Specified by:
      getCapDuplicateReceipt in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getCapEmptyReceiptIsVoidable

      public boolean getCapEmptyReceiptIsVoidable() throws jpos.JposException
      Specified by:
      getCapEmptyReceiptIsVoidable in interface jpos.services.FiscalPrinterService16
      Throws:
      jpos.JposException
    • getCapFiscalReceiptStation

      public boolean getCapFiscalReceiptStation() throws jpos.JposException
      Specified by:
      getCapFiscalReceiptStation in interface jpos.services.FiscalPrinterService16
      Throws:
      jpos.JposException
    • getCapFiscalReceiptType

      public boolean getCapFiscalReceiptType() throws jpos.JposException
      Specified by:
      getCapFiscalReceiptType in interface jpos.services.FiscalPrinterService16
      Throws:
      jpos.JposException
    • getCapFixedOutput

      public boolean getCapFixedOutput() throws jpos.JposException
      Specified by:
      getCapFixedOutput in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getCapHasVatTable

      public boolean getCapHasVatTable() throws jpos.JposException
      Specified by:
      getCapHasVatTable in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getCapIndependentHeader

      public boolean getCapIndependentHeader() throws jpos.JposException
      Specified by:
      getCapIndependentHeader in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getCapItemList

      public boolean getCapItemList() throws jpos.JposException
      Specified by:
      getCapItemList in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getCapJrnEmptySensor

      public boolean getCapJrnEmptySensor() throws jpos.JposException
      Specified by:
      getCapJrnEmptySensor in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getCapJrnNearEndSensor

      public boolean getCapJrnNearEndSensor() throws jpos.JposException
      Specified by:
      getCapJrnNearEndSensor in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getCapJrnPresent

      public boolean getCapJrnPresent() throws jpos.JposException
      Specified by:
      getCapJrnPresent in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getCapMultiContractor

      public boolean getCapMultiContractor() throws jpos.JposException
      Specified by:
      getCapMultiContractor in interface jpos.services.FiscalPrinterService16
      Throws:
      jpos.JposException
    • getCapNonFiscalMode

      public boolean getCapNonFiscalMode() throws jpos.JposException
      Specified by:
      getCapNonFiscalMode in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getCapOnlyVoidLastItem

      public boolean getCapOnlyVoidLastItem() throws jpos.JposException
      Specified by:
      getCapOnlyVoidLastItem in interface jpos.services.FiscalPrinterService16
      Throws:
      jpos.JposException
    • getCapOrderAdjustmentFirst

      public boolean getCapOrderAdjustmentFirst() throws jpos.JposException
      Specified by:
      getCapOrderAdjustmentFirst in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getCapPackageAdjustment

      public boolean getCapPackageAdjustment() throws jpos.JposException
      Specified by:
      getCapPackageAdjustment in interface jpos.services.FiscalPrinterService16
      Throws:
      jpos.JposException
    • getCapPercentAdjustment

      public boolean getCapPercentAdjustment() throws jpos.JposException
      Specified by:
      getCapPercentAdjustment in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getCapPositiveAdjustment

      public boolean getCapPositiveAdjustment() throws jpos.JposException
      Specified by:
      getCapPositiveAdjustment in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getCapPositiveSubtotalAdjustment

      public boolean getCapPositiveSubtotalAdjustment() throws jpos.JposException
      Specified by:
      getCapPositiveSubtotalAdjustment in interface jpos.services.FiscalPrinterService111
      Throws:
      jpos.JposException
    • getCapPostPreLine

      public boolean getCapPostPreLine() throws jpos.JposException
      Specified by:
      getCapPostPreLine in interface jpos.services.FiscalPrinterService16
      Throws:
      jpos.JposException
    • getCapPowerLossReport

      public boolean getCapPowerLossReport() throws jpos.JposException
      Specified by:
      getCapPowerLossReport in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getCapPredefinedPaymentLines

      public boolean getCapPredefinedPaymentLines() throws jpos.JposException
      Specified by:
      getCapPredefinedPaymentLines in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getCapReceiptNotPaid

      public boolean getCapReceiptNotPaid() throws jpos.JposException
      Specified by:
      getCapReceiptNotPaid in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getCapRecEmptySensor

      public boolean getCapRecEmptySensor() throws jpos.JposException
      Specified by:
      getCapRecEmptySensor in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getCapRecNearEndSensor

      public boolean getCapRecNearEndSensor() throws jpos.JposException
      Specified by:
      getCapRecNearEndSensor in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getCapRecPresent

      public boolean getCapRecPresent() throws jpos.JposException
      Specified by:
      getCapRecPresent in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getCapRemainingFiscalMemory

      public boolean getCapRemainingFiscalMemory() throws jpos.JposException
      Specified by:
      getCapRemainingFiscalMemory in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getCapReservedWord

      public boolean getCapReservedWord() throws jpos.JposException
      Specified by:
      getCapReservedWord in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getCapSetCurrency

      public boolean getCapSetCurrency() throws jpos.JposException
      Specified by:
      getCapSetCurrency in interface jpos.services.FiscalPrinterService16
      Throws:
      jpos.JposException
    • getCapSetHeader

      public boolean getCapSetHeader() throws jpos.JposException
      Specified by:
      getCapSetHeader in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getCapSetPOSID

      public boolean getCapSetPOSID() throws jpos.JposException
      Specified by:
      getCapSetPOSID in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getCapSetStoreFiscalID

      public boolean getCapSetStoreFiscalID() throws jpos.JposException
      Specified by:
      getCapSetStoreFiscalID in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getCapSetTrailer

      public boolean getCapSetTrailer() throws jpos.JposException
      Specified by:
      getCapSetTrailer in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getCapSetVatTable

      public boolean getCapSetVatTable() throws jpos.JposException
      Specified by:
      getCapSetVatTable in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getCapSlpEmptySensor

      public boolean getCapSlpEmptySensor() throws jpos.JposException
      Specified by:
      getCapSlpEmptySensor in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getCapSlpFiscalDocument

      public boolean getCapSlpFiscalDocument() throws jpos.JposException
      Specified by:
      getCapSlpFiscalDocument in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getCapSlpFullSlip

      public boolean getCapSlpFullSlip() throws jpos.JposException
      Specified by:
      getCapSlpFullSlip in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getCapSlpNearEndSensor

      public boolean getCapSlpNearEndSensor() throws jpos.JposException
      Specified by:
      getCapSlpNearEndSensor in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getCapSlpPresent

      public boolean getCapSlpPresent() throws jpos.JposException
      Specified by:
      getCapSlpPresent in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getCapSlpValidation

      public boolean getCapSlpValidation() throws jpos.JposException
      Specified by:
      getCapSlpValidation in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getCapSubAmountAdjustment

      public boolean getCapSubAmountAdjustment() throws jpos.JposException
      Specified by:
      getCapSubAmountAdjustment in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getCapSubPercentAdjustment

      public boolean getCapSubPercentAdjustment() throws jpos.JposException
      Specified by:
      getCapSubPercentAdjustment in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getCapSubtotal

      public boolean getCapSubtotal() throws jpos.JposException
      Specified by:
      getCapSubtotal in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getCapTotalizerType

      public boolean getCapTotalizerType() throws jpos.JposException
      Specified by:
      getCapTotalizerType in interface jpos.services.FiscalPrinterService16
      Throws:
      jpos.JposException
    • getCapTrainingMode

      public boolean getCapTrainingMode() throws jpos.JposException
      Specified by:
      getCapTrainingMode in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getCapValidateJournal

      public boolean getCapValidateJournal() throws jpos.JposException
      Specified by:
      getCapValidateJournal in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getCapXReport

      public boolean getCapXReport() throws jpos.JposException
      Specified by:
      getCapXReport in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getChangeDue

      public String getChangeDue() throws jpos.JposException
      Specified by:
      getChangeDue in interface jpos.services.FiscalPrinterService16
      Throws:
      jpos.JposException
    • setChangeDue

      public void setChangeDue(String changeDue) throws jpos.JposException
      Specified by:
      setChangeDue in interface jpos.services.FiscalPrinterService16
      Throws:
      jpos.JposException
    • getCheckTotal

      public boolean getCheckTotal() throws jpos.JposException
      Specified by:
      getCheckTotal in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • setCheckTotal

      public void setCheckTotal(boolean check) throws jpos.JposException
      Specified by:
      setCheckTotal in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getContractorId

      public int getContractorId() throws jpos.JposException
      Specified by:
      getContractorId in interface jpos.services.FiscalPrinterService16
      Throws:
      jpos.JposException
    • setContractorId

      public void setContractorId(int id) throws jpos.JposException
      Specified by:
      setContractorId in interface jpos.services.FiscalPrinterService16
      Throws:
      jpos.JposException
    • getCountryCode

      public int getCountryCode() throws jpos.JposException
      Specified by:
      getCountryCode in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getCoverOpen

      public boolean getCoverOpen() throws jpos.JposException
      Specified by:
      getCoverOpen in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getDateType

      public int getDateType() throws jpos.JposException
      Specified by:
      getDateType in interface jpos.services.FiscalPrinterService16
      Throws:
      jpos.JposException
    • setDateType

      public void setDateType(int type) throws jpos.JposException
      Specified by:
      setDateType in interface jpos.services.FiscalPrinterService16
      Throws:
      jpos.JposException
    • getDayOpened

      public boolean getDayOpened() throws jpos.JposException
      Specified by:
      getDayOpened in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getDescriptionLength

      public int getDescriptionLength() throws jpos.JposException
      Specified by:
      getDescriptionLength in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getDuplicateReceipt

      public boolean getDuplicateReceipt() throws jpos.JposException
      Specified by:
      getDuplicateReceipt in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • setDuplicateReceipt

      public void setDuplicateReceipt(boolean yes) throws jpos.JposException
      Specified by:
      setDuplicateReceipt in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getErrorLevel

      public int getErrorLevel() throws jpos.JposException
      Specified by:
      getErrorLevel in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getErrorOutID

      public int getErrorOutID() throws jpos.JposException
      Specified by:
      getErrorOutID in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getErrorState

      public int getErrorState() throws jpos.JposException
      Specified by:
      getErrorState in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getErrorStation

      public int getErrorStation() throws jpos.JposException
      Specified by:
      getErrorStation in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getErrorString

      public String getErrorString() throws jpos.JposException
      Specified by:
      getErrorString in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getFiscalReceiptStation

      public int getFiscalReceiptStation() throws jpos.JposException
      Specified by:
      getFiscalReceiptStation in interface jpos.services.FiscalPrinterService16
      Throws:
      jpos.JposException
    • setFiscalReceiptStation

      public void setFiscalReceiptStation(int station) throws jpos.JposException
      Specified by:
      setFiscalReceiptStation in interface jpos.services.FiscalPrinterService16
      Throws:
      jpos.JposException
    • getFiscalReceiptType

      public int getFiscalReceiptType() throws jpos.JposException
      Specified by:
      getFiscalReceiptType in interface jpos.services.FiscalPrinterService16
      Throws:
      jpos.JposException
    • setFiscalReceiptType

      public void setFiscalReceiptType(int type) throws jpos.JposException
      Specified by:
      setFiscalReceiptType in interface jpos.services.FiscalPrinterService16
      Throws:
      jpos.JposException
    • getFlagWhenIdle

      public boolean getFlagWhenIdle() throws jpos.JposException
      Specified by:
      getFlagWhenIdle in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • setFlagWhenIdle

      public void setFlagWhenIdle(boolean b) throws jpos.JposException
      Specified by:
      setFlagWhenIdle in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getJrnEmpty

      public boolean getJrnEmpty() throws jpos.JposException
      Specified by:
      getJrnEmpty in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getJrnNearEnd

      public boolean getJrnNearEnd() throws jpos.JposException
      Specified by:
      getJrnNearEnd in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getMessageLength

      public int getMessageLength() throws jpos.JposException
      Specified by:
      getMessageLength in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getMessageType

      public int getMessageType() throws jpos.JposException
      Specified by:
      getMessageType in interface jpos.services.FiscalPrinterService16
      Throws:
      jpos.JposException
    • setMessageType

      public void setMessageType(int type) throws jpos.JposException
      Specified by:
      setMessageType in interface jpos.services.FiscalPrinterService16
      Throws:
      jpos.JposException
    • getNumHeaderLines

      public int getNumHeaderLines() throws jpos.JposException
      Specified by:
      getNumHeaderLines in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getNumTrailerLines

      public int getNumTrailerLines() throws jpos.JposException
      Specified by:
      getNumTrailerLines in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getNumVatRates

      public int getNumVatRates() throws jpos.JposException
      Specified by:
      getNumVatRates in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getPostLine

      public String getPostLine() throws jpos.JposException
      Specified by:
      getPostLine in interface jpos.services.FiscalPrinterService16
      Throws:
      jpos.JposException
    • setPostLine

      public void setPostLine(String text) throws jpos.JposException
      Specified by:
      setPostLine in interface jpos.services.FiscalPrinterService16
      Throws:
      jpos.JposException
    • getPredefinedPaymentLines

      public String getPredefinedPaymentLines() throws jpos.JposException
      Specified by:
      getPredefinedPaymentLines in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getPreLine

      public String getPreLine() throws jpos.JposException
      Specified by:
      getPreLine in interface jpos.services.FiscalPrinterService16
      Throws:
      jpos.JposException
    • setPreLine

      public void setPreLine(String text) throws jpos.JposException
      Specified by:
      setPreLine in interface jpos.services.FiscalPrinterService16
      Throws:
      jpos.JposException
    • getPrinterState

      public int getPrinterState() throws jpos.JposException
      Specified by:
      getPrinterState in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getQuantityDecimalPlaces

      public int getQuantityDecimalPlaces() throws jpos.JposException
      Specified by:
      getQuantityDecimalPlaces in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getQuantityLength

      public int getQuantityLength() throws jpos.JposException
      Specified by:
      getQuantityLength in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getRecEmpty

      public boolean getRecEmpty() throws jpos.JposException
      Specified by:
      getRecEmpty in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getRecNearEnd

      public boolean getRecNearEnd() throws jpos.JposException
      Specified by:
      getRecNearEnd in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getRemainingFiscalMemory

      public int getRemainingFiscalMemory() throws jpos.JposException
      Specified by:
      getRemainingFiscalMemory in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getReservedWord

      public String getReservedWord() throws jpos.JposException
      Specified by:
      getReservedWord in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getSlpEmpty

      public boolean getSlpEmpty() throws jpos.JposException
      Specified by:
      getSlpEmpty in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getSlpNearEnd

      public boolean getSlpNearEnd() throws jpos.JposException
      Specified by:
      getSlpNearEnd in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getSlipSelection

      public int getSlipSelection() throws jpos.JposException
      Specified by:
      getSlipSelection in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • setSlipSelection

      public void setSlipSelection(int type) throws jpos.JposException
      Specified by:
      setSlipSelection in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getTotalizerType

      public int getTotalizerType() throws jpos.JposException
      Specified by:
      getTotalizerType in interface jpos.services.FiscalPrinterService16
      Throws:
      jpos.JposException
    • setTotalizerType

      public void setTotalizerType(int type) throws jpos.JposException
      Specified by:
      setTotalizerType in interface jpos.services.FiscalPrinterService16
      Throws:
      jpos.JposException
    • getTrainingModeActive

      public boolean getTrainingModeActive() throws jpos.JposException
      Specified by:
      getTrainingModeActive in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • beginFiscalDocument

      public void beginFiscalDocument(int documentAmount) throws jpos.JposException
      Specified by:
      beginFiscalDocument in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • beginFiscalReceipt

      public void beginFiscalReceipt(boolean printHeader) throws jpos.JposException
      Specified by:
      beginFiscalReceipt in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • beginFixedOutput

      public void beginFixedOutput(int station, int documentType) throws jpos.JposException
      Specified by:
      beginFixedOutput in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • beginInsertion

      public void beginInsertion(int timeout) throws jpos.JposException
      Specified by:
      beginInsertion in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • beginItemList

      public void beginItemList(int vatID) throws jpos.JposException
      Specified by:
      beginItemList in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • beginNonFiscal

      public void beginNonFiscal() throws jpos.JposException
      Specified by:
      beginNonFiscal in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • beginRemoval

      public void beginRemoval(int timeout) throws jpos.JposException
      Specified by:
      beginRemoval in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • beginTraining

      public void beginTraining() throws jpos.JposException
      Specified by:
      beginTraining in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • clearError

      public void clearError() throws jpos.JposException
      Specified by:
      clearError in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • endFiscalDocument

      public void endFiscalDocument() throws jpos.JposException
      Specified by:
      endFiscalDocument in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • endFiscalReceipt

      public void endFiscalReceipt(boolean printHeader) throws jpos.JposException
      Specified by:
      endFiscalReceipt in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • endFixedOutput

      public void endFixedOutput() throws jpos.JposException
      Specified by:
      endFixedOutput in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • endInsertion

      public void endInsertion() throws jpos.JposException
      Specified by:
      endInsertion in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • endItemList

      public void endItemList() throws jpos.JposException
      Specified by:
      endItemList in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • endNonFiscal

      public void endNonFiscal() throws jpos.JposException
      Specified by:
      endNonFiscal in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • endRemoval

      public void endRemoval() throws jpos.JposException
      Specified by:
      endRemoval in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • endTraining

      public void endTraining() throws jpos.JposException
      Specified by:
      endTraining in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getData

      public void getData(int dataItem, int[] optArgs, String[] data) throws jpos.JposException
      Specified by:
      getData in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getDate

      public void getDate(String[] date) throws jpos.JposException
      Specified by:
      getDate in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getTotalizer

      public void getTotalizer(int vatID, int optArgs, String[] data) throws jpos.JposException
      Specified by:
      getTotalizer in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • getVatEntry

      public void getVatEntry(int vatID, int optArgs, int[] vatRate) throws jpos.JposException
      Specified by:
      getVatEntry in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • printDuplicateReceipt

      public void printDuplicateReceipt() throws jpos.JposException
      Specified by:
      printDuplicateReceipt in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • printPeriodicTotalsReport

      public void printPeriodicTotalsReport(String date1, String date2) throws jpos.JposException
      Specified by:
      printPeriodicTotalsReport in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • printPowerLossReport

      public void printPowerLossReport() throws jpos.JposException
      Specified by:
      printPowerLossReport in interface jpos.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 interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • printReport

      public void printReport(int reportType, String startNum, String endNum) throws jpos.JposException
      Specified by:
      printReport in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • printXReport

      public void printXReport() throws jpos.JposException
      Specified by:
      printXReport in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • printZReport

      public void printZReport() throws jpos.JposException
      Specified by:
      printZReport in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • resetPrinter

      public void resetPrinter() throws jpos.JposException
      Specified by:
      resetPrinter in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • setCurrency

      public void setCurrency(int newCurrency) throws jpos.JposException
      Specified by:
      setCurrency in interface jpos.services.FiscalPrinterService16
      Throws:
      jpos.JposException
    • setDate

      public void setDate(String date) throws jpos.JposException
      Specified by:
      setDate in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • setHeaderLine

      public void setHeaderLine(int lineNumber, String text, boolean doubleWidth) throws jpos.JposException
      Specified by:
      setHeaderLine in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • setPOSID

      public void setPOSID(String POSID, String cashierID) throws jpos.JposException
      Specified by:
      setPOSID in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • setStoreFiscalID

      public void setStoreFiscalID(String ID) throws jpos.JposException
      Specified by:
      setStoreFiscalID in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • setTrailerLine

      public void setTrailerLine(int lineNumber, String text, boolean doubleWidth) throws jpos.JposException
      Specified by:
      setTrailerLine in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • setVatTable

      public void setVatTable() throws jpos.JposException
      Specified by:
      setVatTable in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • setVatValue

      public void setVatValue(int vatID, String vatValue) throws jpos.JposException
      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 interface jpos.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

      public void verifyItem(String itemName, int vatID) throws jpos.JposException
      Specified by:
      verifyItem in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • printFiscalDocumentLine

      public void printFiscalDocumentLine(String documentLine) throws jpos.JposException
      Specified by:
      printFiscalDocumentLine in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • printFixedOutput

      public void printFixedOutput(int documentType, int lineNumber, String data) throws jpos.JposException
      Specified by:
      printFixedOutput in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • printNormal

      public void printNormal(int station, String data) throws jpos.JposException
      Specified by:
      printNormal in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • printRecCash

      public void printRecCash(long amount) throws jpos.JposException
      Specified by:
      printRecCash in interface jpos.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 interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • printRecItemAdjustment

      public void printRecItemAdjustment(int adjustmentType, String description, long amount, int vatInfo) throws jpos.JposException
      Specified by:
      printRecItemAdjustment in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • printRecItemAdjustmentVoid

      public void printRecItemAdjustmentVoid(int adjustmentType, String description, long amount, int vatInfo) throws jpos.JposException
      Specified by:
      printRecItemAdjustmentVoid in interface jpos.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 interface jpos.services.FiscalPrinterService16
      Throws:
      jpos.JposException
    • printRecItemFuelVoid

      public void printRecItemFuelVoid(String description, long price, int vatInfo, long specialTax) throws jpos.JposException
      Specified by:
      printRecItemFuelVoid in interface jpos.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 interface jpos.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 interface jpos.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 interface jpos.services.FiscalPrinterService111
      Throws:
      jpos.JposException
    • printRecMessage

      public void printRecMessage(String message) throws jpos.JposException
      Specified by:
      printRecMessage in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • printRecNotPaid

      public void printRecNotPaid(String description, long amount) throws jpos.JposException
      Specified by:
      printRecNotPaid in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • printRecPackageAdjustment

      public void printRecPackageAdjustment(int adjustmentType, String description, String vatAdjustment) throws jpos.JposException
      Specified by:
      printRecPackageAdjustment in interface jpos.services.FiscalPrinterService16
      Throws:
      jpos.JposException
    • printRecPackageAdjustVoid

      public void printRecPackageAdjustVoid(int adjustmentType, String vatAdjustment) throws jpos.JposException
      Specified by:
      printRecPackageAdjustVoid in interface jpos.services.FiscalPrinterService16
      Throws:
      jpos.JposException
    • printRecRefund

      public void printRecRefund(String description, long amount, int vatInfo) throws jpos.JposException
      Specified by:
      printRecRefund in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • printRecRefundVoid

      public void printRecRefundVoid(String description, long amount, int vatInfo) throws jpos.JposException
      Specified by:
      printRecRefundVoid in interface jpos.services.FiscalPrinterService16
      Throws:
      jpos.JposException
    • printRecSubtotal

      public void printRecSubtotal(long amount) throws jpos.JposException
      Specified by:
      printRecSubtotal in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • printRecSubtotalAdjustment

      public void printRecSubtotalAdjustment(int adjustmentType, String description, long amount) throws jpos.JposException
      Specified by:
      printRecSubtotalAdjustment in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • printRecSubtotalAdjustVoid

      public void printRecSubtotalAdjustVoid(int adjustmentType, long amount) throws jpos.JposException
      Specified by:
      printRecSubtotalAdjustVoid in interface jpos.services.FiscalPrinterService16
      Throws:
      jpos.JposException
    • printRecTaxID

      public void printRecTaxID(String taxId) throws jpos.JposException
      Specified by:
      printRecTaxID in interface jpos.services.FiscalPrinterService16
      Throws:
      jpos.JposException
    • printRecTotal

      public void printRecTotal(long total, long payment, String description) throws jpos.JposException
      Specified by:
      printRecTotal in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException
    • printRecVoid

      public void printRecVoid(String description) throws jpos.JposException
      Specified by:
      printRecVoid in interface jpos.services.FiscalPrinterService13
      Throws:
      jpos.JposException