Class FiscalPrinterProperties
java.lang.Object
de.gmxhome.conrad.jpos.jpos_base.JposCommonProperties
de.gmxhome.conrad.jpos.jpos_base.fiscalprinter.FiscalPrinterProperties
- All Implemented Interfaces:
FiscalPrinterInterface,JposBaseInterface
Class containing the FiscalPrinter specific properties, their default values and default implementations of
FiscalPrinterInterface.
For details about properties, methods and method parameters, see UPOS specification, chapter Fiscal Printer.
-
Field Summary
FieldsModifier and TypeFieldDescriptionintUPOS property AdditionalHeader.intDefault value of ActualCurrency property.UPOS property AdditionalHeader.UPOS property AdditionalTrailer.intUPOS property AmountDecimalPlaces.intDefault value of AmountDecimalPlaces property.booleanUPOS property CapAdditionalHeader.booleanUPOS property CapAdditionalLines.booleanUPOS property CapAdditionalTrailer.booleanUPOS property CapAmountAdjustment.booleanUPOS property CapAmountNotPaid.booleanUPOS property CapChangeDue.booleanUPOS property CapCheckTotal.booleanUPOS property CapCoverSensor.booleanUPOS property CapDoubleWidth.booleanUPOS property CapDuplicateReceipt.booleanUPOS property CapEmptyReceiptIsVoidable.booleanUPOS property CapFiscalReceiptStation.booleanUPOS property CapFiscalReceiptType.booleanUPOS property CapFixedOutput.booleanUPOS property CapHasVatTable.booleanUPOS property CapIndependentHeader.booleanUPOS property CapItemList.booleanUPOS property CapJrnEmptySensor.booleanUPOS property CapJrnNearEndSensor.booleanUPOS property CapJrnPresent.booleanUPOS property CapMultiContractor.booleanUPOS property CapNonFiscalMode.booleanUPOS property CapOnlyVoidLastItem.booleanUPOS property CapOrderAdjustmentFirst.booleanUPOS property CapPackageAdjustment.booleanUPOS property CapPercentAdjustment.booleanUPOS property CapPositiveAdjustment.booleanUPOS property CapPositiveSubtotalAdjustment.booleanUPOS property CapPostPreLine.booleanUPOS property CapPowerLossReport.booleanUPOS property CapPredefinedPaymentLines.booleanUPOS property CapReceiptNotPaid.booleanUPOS property CapRecEmptySensor.booleanUPOS property CapRecNearEndSensor.booleanUPOS property CapRecPresent.booleanUPOS property CapRemainingFiscalMemory.booleanUPOS property CapReservedWord.booleanUPOS property CapSetCurrency.booleanUPOS property CapSetHeader.booleanUPOS property CapSetPOSID.booleanUPOS property CapSetStoreFiscalID.booleanUPOS property CapSetTrailer.booleanUPOS property CapSetVatTable.booleanUPOS property CapSlpEmptySensor.booleanUPOS property CapSlpFiscalDocument.booleanUPOS property CapSlpFullSlip.booleanUPOS property CapSlpNearEndSensor.booleanUPOS property CapSlpPresent.booleanUPOS property CapSlpValidation.booleanUPOS property CapSubAmountAdjustment.booleanUPOS property CapSubPercentAdjustment.booleanUPOS property CapSubtotal.booleanUPOS property CapTotalizerType.booleanUPOS property CapTrainingMode.booleanUPOS property CapValidateJournal.booleanUPOS property CapXReport.UPOS property ChangeDue.booleanUPOS property CheckTotal.intUPOS property ContractorId.intUPOS property CountryCode.intDefault value of CountryCode property.booleanUPOS property CoverOpen.booleanDefault value of CoverOpen property.booleanSpecified whether string values representing a currency value will be stored with decimal point.intUPOS property DateType.booleanUPOS property DayOpened.booleanDefault value of DayOpened property.intUPOS property DescriptionLength.booleanUPOS property DuplicateReceipt.intUPOS property ErrorLevel.intUPOS property ErrorOutID.intUPOS property ErrorState.intUPOS property ErrorStation.UPOS property ErrorString.intUPOS property FiscalReceiptStation.intUPOS property FiscalReceiptType.Object to be used to wait until all asynchronous commands derived from OutputRequest have been finished.booleanUPOS property JrnEmpty.booleanDefault value of JrnEmpty property.booleanUPOS property JrnNearEnd.booleanDefault value of JrnNearEnd property.intUPOS property MessageLength.intDefault value of MessageLength property.intUPOS property MessageType.intUPOS property NumHeaderLines.intUPOS property NumTrailerLines.intUPOS property NumVatRates.UPOS property PostLine.UPOS property PredefinedPaymentLines.UPOS property PreLine.intUPOS property PrinterState.intDefault value of PrinterState property.intUPOS property QuantityDecimalPlaces.intDefault value of QuantityDecimalPlaces property.intUPOS property QuantityLength.intDefault value of QuantityLength property.booleanUPOS property RecEmpty.booleanDefault value of RecEmpty property.booleanUPOS property RecNearEnd.booleanDefault value of RecNearEnd property.intUPOS property RemainingFiscalMemory.intDefault value of RemainingFiscalMemory property.UPOS property ReservedWord.intUPOS property SlipSelection.booleanUPOS property SlpEmpty.booleanDefault value of SlpEmpty property.booleanUPOS property SlpNearEnd.booleanDefault value of SlpNearEnd property.intUPOS property TotalizerType.booleanUPOS property TrainingModeActive.booleanDefault value of TrainingModeActive property.Fields inherited from class de.gmxhome.conrad.jpos.jpos_base.JposCommonProperties
AllowAlwaysSetProperties, AllowDeprecatedMethods, AsyncInputActive, AsyncMode, AutoDisable, CapStatisticsReporting, CapUpdateStatistics, CheckHealthText, Claimed, Claiming, ClaimWaiters, CurrentCommands, CurrentUnitID, DataCount, DataEventEnabled, DataEventList, Device, DeviceEnabled, DeviceServiceDescription, DeviceServiceVersion, DevProps, ErrorUnits, EventCB, EventList, EventSource, EventString, EventUnitID, EventUnits, ExclusiveAllowed, ExclusiveNo, ExclusiveUse, ExclusiveYes, FirstEnableHappened, FlagWhenIdle, FlagWhenIdleStatusValue, FreezeEvents, Index, LogicalName, MaximumConfirmationEventWaitingTime, OutputID, PowerNotify, PowerState, SerializedRequestRunner, SerializedRequests, State, StrictFIFOEventHandling, SuspendedCommands, SuspendedConcurrentCommands, UnitsOnline, UsesSubsystemUnits -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadditionalHeader(String header)Final part of setting AdditionalHeader.voidadditionalTrailer(String trailer)Final part of setting AdditionalTrailer.voidbeginFiscalDocument(int documentAmount)Final part of BeginFiscalDocument method.voidbeginFiscalReceipt(boolean printHeader)Final part of BeginFiscalReceipt method.voidbeginFixedOutput(int station, int documentType)Final part of BeginFixedOutput method.voidbeginInsertion(int timeout)Final part of BeginInsertion method.voidbeginItemList(int vatID)Final part of BeginItemList method.voidFinal part of BeginNonFiscal method.voidbeginRemoval(int timeout)Final part of BeginRemoval method.voidFinal part of BeginTraining method.voidFinal part of setting ChangeDue.voidcheckProperties(jpos.config.JposEntry entry)Checks jpos entries for service specific jpos property values and set corresponding service values.voidcheckTotal(boolean check)Final part of setting CheckTotal.voidFinal part of ClearError method.voidClear output processing.voidcontractorId(int id)Final part of setting ContractorId.voiddateType(int type)Final part of setting DateType.voidduplicateReceipt(boolean yes)Final part of setting DuplicateReceipt.voidFinal part of EndFiscalDocument method.voidendFiscalReceipt(boolean printHeader)Final part of EndFiscalReceipt method.voidFinal part of EndFixedOutput method.voidFinal part of EndInsertion method.voidFinal part of EndItemList method.voidFinal part of EndNonFiscal method.voidFinal part of EndRemoval method.voidFinal part of EndTraining method.voidfiscalReceiptStation(int station)Final part of setting FiscalReceiptStation.voidfiscalReceiptType(int type)Final part of setting FiscalReceiptType.voidgetData(int dataItem, int[] optArgs, int[] data)Default implementation for backward compatibility.voidgetData(int dataItem, int[] optArgs, long[] data)Default implementation for backward compatibility.voidFinal part of GetData method.voidFinal part of GetDate method.voidgetTotalizer(int vatID, int optArgs, long[] data)This is a dummy implementation that calls the deprecated version this method.voidgetTotalizer(int vatID, int optArgs, String[] data)Deprecated.voidgetVatEntry(int vatID, int optArgs, int[] vatRate)Final part of GetVatEntry method.voidInitialize properties that must be initialized whenever the device will be claimed.voidinitOnEnable(boolean enable)Initialization of properties that must be initialized during deviceEnable.booleanInitialize properties that must be initialized whenever the device will be enabled the first time-voidInitialization of properties that must be initialized during open.voidmessageType(int type)Final part of setting MessageType.voidFinal part of setting PostLine.voidFinal part of setting PreLine.voidFinal part of PrintDuplicateReceipt method.voidFinal part of PrintFiscalDocumentLine method.printFiscalDocumentLine(String documentLine)Validation part of PrintFiscalDocumentLine method.printFixedOutput(int documentType, int lineNumber, String data)Validation part of PrintFixedOutput method.voidprintFixedOutput(PrintFixedOutput request)Final part of PrintFixedOutput method.printNormal(int station, String data)Validation part of PrintNormal method.voidprintNormal(PrintNormal request)Final part of PrintNormal method.voidprintPeriodicTotalsReport(String date1, String date2)Final part of PrintPeriodicTotalsReport method.voidFinal part of PrintPowerLossReport method.printRecCash(long amount)Validation part of PrintRecCash method.voidprintRecCash(PrintRecCash request)Final part of PrintRecCash method.voidprintRecItem(PrintRecItem request)Final part of PrintRecItem method.printRecItem(String description, long price, int quantity, int vatInfo, long unitPrice, String unitName)Validation part of PrintRecItem method.printRecItemAdjustment(int adjustmentType, String description, long amount, int vatInfo)Validation part of PrintRecItemAdjustment method.voidprintRecItemAdjustment(PrintRecItemAdjustment request)Final part of PrintRecItemAdjustment method.printRecItemAdjustmentVoid(int adjustmentType, String description, long amount, int vatInfo)Validation part of PrintRecItemAdjustmentVoid method.voidFinal part of PrintRecItemAdjustmentVoid method.voidprintRecItemFuel(PrintRecItemFuel request)Final part of PrintRecItemFuel method.printRecItemFuel(String description, long price, int quantity, int vatInfo, long unitPrice, String unitName, long specialTax, String specialTaxName)Validation part of PrintRecItemFuel method.voidprintRecItemFuelVoid(PrintRecItemFuelVoid request)Final part of PrintRecItemFuelVoid method.printRecItemFuelVoid(String description, long price, int vatInfo, long specialTax)Validation part of PrintRecItemFuelVoid method.voidprintRecItemRefund(PrintRecItemRefund request)Final part of PrintRecItemRefund method.printRecItemRefund(String description, long amount, int quantity, int vatInfo, long unitAmount, String unitName)Validation part of PrintRecItemRefund method.voidprintRecItemRefundVoid(PrintRecItemRefundVoid request)Final part of PrintRecItemRefundVoid method.printRecItemRefundVoid(String description, long amount, int quantity, int vatInfo, long unitAmount, String unitName)Validation part of PrintRecItemRefundVoid method.voidprintRecItemVoid(PrintRecItemVoid request)Final part of PrintRecItemVoid method.printRecItemVoid(String description, long price, int quantity, int vatInfo, long unitPrice, String unitName)Validation part of PrintRecItemVoid method.voidprintRecMessage(PrintRecMessage request)Final part of PrintRecMessage method.printRecMessage(String message)Validation part of PrintRecMessage method.voidprintRecNotPaid(PrintRecNotPaid request)Final part of PrintRecNotPaid method.printRecNotPaid(String description, long amount)Validation part of PrintRecNotPaid method.printRecPackageAdjustment(int adjustmentType, String description, String vatAdjustment)Deprecated.printRecPackageAdjustment(int adjustmentType, String description, String vatAdjustment, Map<Integer,Number> parsedAdjustments)Validation part of PrintRecPackageAdjustment method.voidFinal part of PrintRecPackageAdjustment method.printRecPackageAdjustVoid(int adjustmentType, String vatAdjustment)Deprecated.printRecPackageAdjustVoid(int adjustmentType, String vatAdjustment, Map<Integer,Number> parsedAdjustments)Validation part of PrintRecPackageAdjustVoid method.voidFinal part of PrintRecPackageAdjustVoid method.voidprintRecRefund(PrintRecRefund request)Final part of PrintRecRefund method.printRecRefund(String description, long amount, int vatInfo)Validation part of PrintRecRefund method.voidprintRecRefundVoid(PrintRecRefundVoid request)Final part of PrintRecRefundVoid method.printRecRefundVoid(String description, long amount, int vatInfo)Validation part of PrintRecRefundVoid method.printRecSubtotal(long amount)Validation part of PrintRecSubtotal method.voidprintRecSubtotal(PrintRecSubtotal request)Final part of PrintRecSubtotal method.printRecSubtotalAdjustment(int adjustmentType, String description, long amount)Validation part of PrintRecSubtotalAdjustment method.voidFinal part of PrintRecSubtotalAdjustment method.printRecSubtotalAdjustVoid(int adjustmentType, long amount)Validation part of PrintRecSubtotalAdjustVoid method.voidFinal part of PrintRecSubtotalAdjustVoid method.voidprintRecTaxID(PrintRecTaxID request)Final part of PrintRecTaxID method.printRecTaxID(String taxId)Validation part of PrintRecTaxID method.printRecTotal(long total, long payment, String description)Validation part of PrintRecTotal method.voidprintRecTotal(PrintRecTotal request)Final part of PrintRecTotal method.voidprintRecVoid(PrintRecVoid request)Final part of PrintRecVoid method.printRecVoid(String description)Validation part of PrintRecVoid method.voidprintRecVoidItem(PrintRecVoidItem request)Final part of PrintRecVoidItem method.printRecVoidItem(String description, long price, int quantity, int adjustmentType, long adjustment, int vatInfo)Validation part of PrintRecVoidItem method.voidprintReport(int reportType, String startNum, String endNum)Final part of PrintReport method.voidFinal part of PrintXReport method.voidFinal part of PrintZReport method.voidFinal part of ResetPrinter method.voidsetCurrency(int newCurrency)Final part of SetCurrency method.voidFinal part of SetDate method.voidsetHeaderLine(int lineNumber, String text, boolean doubleWidth)Final part of SetHeaderLine method.voidFinal part of SetPOSID method.voidsetStoreFiscalID(String ID)Final part of SetStoreFiscalID method.voidsetTrailerLine(int lineNumber, String text, boolean doubleWidth)Final part of SetTrailerLine method.voidFinal part of SetVatTable method.voidsetVatValue(int vatID, int optArgs, int vatValue)Final part of SetVatValue method.voidsetVatValue(int vatID, long vatValue)Final part of SetVatValue method.voidslipSelection(int type)Final part of setting SlipSelection.voidtotalizerType(int type)Final part of setting TotalizerType.voidverifyItem(String itemName, int vatID)Final part of VerifyItem method.Methods inherited from class de.gmxhome.conrad.jpos.jpos_base.JposCommonProperties
addProperties, asyncMode, attachWaiter, autoDisable, checkForDeprecation, checkHealth, claim, clearDataProperties, clearErrorProperties, clearInput, clearOutputErrorProperties, close, compareFirmwareVersion, dataEventEnabled, deviceEnabled, directIO, directIO, flagWhenIdle, freezeEvents, getClaimingInstance, handlePowerStateOnEnable, newJposOutputRequest, open, powerNotify, release, releaseWaiter, removeFromPropertySetList, resetStatistics, retrieveStatistics, retryInput, retryOutput, signalWaiter, unitDataCount, updateFirmware, updateFirmware, updateStatistics, waitWaiterMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.gmxhome.conrad.jpos.jpos_base.JposBaseInterface
asyncMode, autoDisable, checkHealth, claim, clearInput, close, compareFirmwareVersion, dataEventEnabled, deviceEnabled, directIO, directIO, flagWhenIdle, freezeEvents, handlePowerStateOnEnable, newJposOutputRequest, open, powerNotify, release, removeFromPropertySetList, resetStatistics, retrieveStatistics, retryInput, retryOutput, unitDataCount, updateFirmware, updateFirmware, updateStatistics
-
Field Details
-
IdleWaiter
Object to be used to wait until all asynchronous commands derived from OutputRequest have been finished. -
ActualCurrencyDef
public int ActualCurrencyDefDefault value of ActualCurrency property. Default: AC_OTHER. Should be overwritten by objects derived from JposDevice within the changeDefaults method and after a successful call to SetCurrency. -
ActualCurrency
public int ActualCurrencyUPOS property AdditionalHeader. -
AdditionalHeader
UPOS property AdditionalHeader. -
AdditionalTrailer
UPOS property AdditionalTrailer. -
AmountDecimalPlacesDef
public int AmountDecimalPlacesDefDefault value of AmountDecimalPlaces property. Default: 2. Should be overwritten by objects derived from JposDevice within the changeDefaults method. -
AmountDecimalPlaces
public int AmountDecimalPlacesUPOS property AmountDecimalPlaces. -
CapAdditionalHeader
public boolean CapAdditionalHeaderUPOS property CapAdditionalHeader. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapAdditionalLines
public boolean CapAdditionalLinesUPOS property CapAdditionalLines. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapAdditionalTrailer
public boolean CapAdditionalTrailerUPOS property CapAdditionalTrailer. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapAmountAdjustment
public boolean CapAmountAdjustmentUPOS property CapAmountAdjustment. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapAmountNotPaid
public boolean CapAmountNotPaidUPOS property CapAmountNotPaid. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapChangeDue
public boolean CapChangeDueUPOS property CapChangeDue. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapCheckTotal
public boolean CapCheckTotalUPOS property CapCheckTotal. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapCoverSensor
public boolean CapCoverSensorUPOS property CapCoverSensor. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapDoubleWidth
public boolean CapDoubleWidthUPOS property CapDoubleWidth. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapDuplicateReceipt
public boolean CapDuplicateReceiptUPOS property CapDuplicateReceipt. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapEmptyReceiptIsVoidable
public boolean CapEmptyReceiptIsVoidableUPOS property CapEmptyReceiptIsVoidable. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapFiscalReceiptStation
public boolean CapFiscalReceiptStationUPOS property CapFiscalReceiptStation. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapFiscalReceiptType
public boolean CapFiscalReceiptTypeUPOS property CapFiscalReceiptType. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapFixedOutput
public boolean CapFixedOutputUPOS property CapFixedOutput. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapHasVatTable
public boolean CapHasVatTableUPOS property CapHasVatTable. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapIndependentHeader
public boolean CapIndependentHeaderUPOS property CapIndependentHeader. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapItemList
public boolean CapItemListUPOS property CapItemList. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapJrnEmptySensor
public boolean CapJrnEmptySensorUPOS property CapJrnEmptySensor. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapJrnNearEndSensor
public boolean CapJrnNearEndSensorUPOS property CapJrnNearEndSensor. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapJrnPresent
public boolean CapJrnPresentUPOS property CapJrnPresent. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapMultiContractor
public boolean CapMultiContractorUPOS property CapMultiContractor. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapNonFiscalMode
public boolean CapNonFiscalModeUPOS property CapNonFiscalMode. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapOnlyVoidLastItem
public boolean CapOnlyVoidLastItemUPOS property CapOnlyVoidLastItem. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapOrderAdjustmentFirst
public boolean CapOrderAdjustmentFirstUPOS property CapOrderAdjustmentFirst. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapPackageAdjustment
public boolean CapPackageAdjustmentUPOS property CapPackageAdjustment. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapPercentAdjustment
public boolean CapPercentAdjustmentUPOS property CapPercentAdjustment. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapPositiveAdjustment
public boolean CapPositiveAdjustmentUPOS property CapPositiveAdjustment. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapPositiveSubtotalAdjustment
public boolean CapPositiveSubtotalAdjustmentUPOS property CapPositiveSubtotalAdjustment. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapPostPreLine
public boolean CapPostPreLineUPOS property CapPostPreLine. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapPowerLossReport
public boolean CapPowerLossReportUPOS property CapPowerLossReport. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapPredefinedPaymentLines
public boolean CapPredefinedPaymentLinesUPOS property CapPredefinedPaymentLines. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapReceiptNotPaid
public boolean CapReceiptNotPaidUPOS property CapReceiptNotPaid. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapRecEmptySensor
public boolean CapRecEmptySensorUPOS property CapRecEmptySensor. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapRecNearEndSensor
public boolean CapRecNearEndSensorUPOS property CapRecNearEndSensor. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapRecPresent
public boolean CapRecPresentUPOS property CapRecPresent. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapRemainingFiscalMemory
public boolean CapRemainingFiscalMemoryUPOS property CapRemainingFiscalMemory. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapReservedWord
public boolean CapReservedWordUPOS property CapReservedWord. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapSetCurrency
public boolean CapSetCurrencyUPOS property CapSetCurrency. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapSetHeader
public boolean CapSetHeaderUPOS property CapSetHeader. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapSetPOSID
public boolean CapSetPOSIDUPOS property CapSetPOSID. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapSetStoreFiscalID
public boolean CapSetStoreFiscalIDUPOS property CapSetStoreFiscalID. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapSetTrailer
public boolean CapSetTrailerUPOS property CapSetTrailer. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapSetVatTable
public boolean CapSetVatTableUPOS property CapSetVatTable. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapSlpEmptySensor
public boolean CapSlpEmptySensorUPOS property CapSlpEmptySensor. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapSlpFiscalDocument
public boolean CapSlpFiscalDocumentUPOS property CapSlpFiscalDocument. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapSlpFullSlip
public boolean CapSlpFullSlipUPOS property CapSlpFullSlip. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapSlpNearEndSensor
public boolean CapSlpNearEndSensorUPOS property CapSlpNearEndSensor. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapSlpPresent
public boolean CapSlpPresentUPOS property CapSlpPresent. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapSlpValidation
public boolean CapSlpValidationUPOS property CapSlpValidation. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapSubAmountAdjustment
public boolean CapSubAmountAdjustmentUPOS property CapSubAmountAdjustment. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapSubPercentAdjustment
public boolean CapSubPercentAdjustmentUPOS property CapSubPercentAdjustment. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapSubtotal
public boolean CapSubtotalUPOS property CapSubtotal. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapTotalizerType
public boolean CapTotalizerTypeUPOS property CapTotalizerType. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapTrainingMode
public boolean CapTrainingModeUPOS property CapTrainingMode. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapValidateJournal
public boolean CapValidateJournalUPOS property CapValidateJournal. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapXReport
public boolean CapXReportUPOS property CapXReport. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
ChangeDue
UPOS property ChangeDue. -
CheckTotal
public boolean CheckTotalUPOS property CheckTotal. -
ContractorId
public int ContractorIdUPOS property ContractorId. -
CountryCodeDef
public int CountryCodeDefDefault value of CountryCode property. Default: CC_OTHER. Should be overwritten by objects derived from JposDevice within the changeDefaults method. -
CountryCode
public int CountryCodeUPOS property CountryCode. -
CoverOpenDef
public boolean CoverOpenDefDefault value of CoverOpen property. Default: false. Should be overwritten by objects derived from JposDevice after each status change. -
CoverOpen
public boolean CoverOpenUPOS property CoverOpen. -
DateType
public int DateTypeUPOS property DateType. -
DayOpenedDef
public boolean DayOpenedDefDefault value of DayOpened property. Default: false. Should be overwritten by objects derived from JposDevice after Z report and after first fiscal receipt after the last Z report -
DayOpened
public boolean DayOpenedUPOS property DayOpened. -
DescriptionLength
public int DescriptionLengthUPOS property DescriptionLength. Default: 20. Should be overwritten by objects derived from JposDevice within the changeDefaults method. -
DuplicateReceipt
public boolean DuplicateReceiptUPOS property DuplicateReceipt. -
ErrorLevel
public int ErrorLevelUPOS property ErrorLevel. -
ErrorOutID
public int ErrorOutIDUPOS property ErrorOutID. -
ErrorState
public int ErrorStateUPOS property ErrorState. -
ErrorStation
public int ErrorStationUPOS property ErrorStation. -
ErrorString
UPOS property ErrorString. -
FiscalReceiptStation
public int FiscalReceiptStationUPOS property FiscalReceiptStation. -
FiscalReceiptType
public int FiscalReceiptTypeUPOS property FiscalReceiptType. -
JrnEmptyDef
public boolean JrnEmptyDefDefault value of JrnEmpty property. Default: false. Should be overwritten by objects derived from JposDevice after each status change. -
JrnEmpty
public boolean JrnEmptyUPOS property JrnEmpty. -
JrnNearEndDef
public boolean JrnNearEndDefDefault value of JrnNearEnd property. Default: false. Should be overwritten by objects derived from JposDevice after each status change. -
JrnNearEnd
public boolean JrnNearEndUPOS property JrnNearEnd. -
MessageLengthDef
public int MessageLengthDefDefault value of MessageLength property. Default: 20. Should be overwritten by objects derived from JposDevice within the changeDefaults method and after any change due to printer mode change. -
MessageLength
public int MessageLengthUPOS property MessageLength. -
MessageType
public int MessageTypeUPOS property MessageType. -
NumHeaderLines
public int NumHeaderLinesUPOS property NumHeaderLines. Default: 0. Should be overwritten by objects derived from JposDevice within the changeDefaults method. -
NumTrailerLines
public int NumTrailerLinesUPOS property NumTrailerLines. Default: 0. Should be overwritten by objects derived from JposDevice within the changeDefaults method. -
NumVatRates
public int NumVatRatesUPOS property NumVatRates. Default: 0. Should be overwritten by objects derived from JposDevice within the changeDefaults method. -
PostLine
UPOS property PostLine. -
PredefinedPaymentLines
UPOS property PredefinedPaymentLines. Default: "". Should be overwritten by objects derived from JposDevice within the changeDefaults method if predefined payment lines are supported. -
PreLine
UPOS property PreLine. -
PrinterStateDef
public int PrinterStateDefDefault value of PrinterState property. Default: PS_MONITOR. Should be overwritten by objects derived from JposDevice whenever the printer state has changed. -
PrinterState
public int PrinterStateUPOS property PrinterState. -
QuantityDecimalPlacesDef
public int QuantityDecimalPlacesDefDefault value of QuantityDecimalPlaces property. Default: 0. Should be overwritten by objects derived from JposDevice within the changeDefaults method. -
QuantityDecimalPlaces
public int QuantityDecimalPlacesUPOS property QuantityDecimalPlaces. -
QuantityLengthDef
public int QuantityLengthDefDefault value of QuantityLength property. Default: 1. Should be overwritten by objects derived from JposDevice within the changeDefaults method. -
QuantityLength
public int QuantityLengthUPOS property QuantityLength. -
RecEmptyDef
public boolean RecEmptyDefDefault value of RecEmpty property. Default: false. Should be overwritten by objects derived from JposDevice whenever the status changes. -
RecEmpty
public boolean RecEmptyUPOS property RecEmpty. -
RecNearEndDef
public boolean RecNearEndDefDefault value of RecNearEnd property. Default: false. Should be overwritten by objects derived from JposDevice whenever the status changes. -
RecNearEnd
public boolean RecNearEndUPOS property RecNearEnd. -
RemainingFiscalMemoryDef
public int RemainingFiscalMemoryDefDefault value of RemainingFiscalMemory property. Default: 0. Should be overwritten by objects derived from JposDevice during device open and after each Z report. -
RemainingFiscalMemory
public int RemainingFiscalMemoryUPOS property RemainingFiscalMemory. -
ReservedWord
UPOS property ReservedWord. Default: "". Should be overwritten by objects derived from JposDevice within the changeDefaults method if CapReservedWord is true. -
SlpEmptyDef
public boolean SlpEmptyDefDefault value of SlpEmpty property. Default: false. Should be overwritten by objects derived from JposDevice whenever the status changes. -
SlpEmpty
public boolean SlpEmptyUPOS property SlpEmpty. -
SlpNearEndDef
public boolean SlpNearEndDefDefault value of SlpNearEnd property. Default: false. Should be overwritten by objects derived from JposDevice whenever the status changes. -
SlpNearEnd
public boolean SlpNearEndUPOS property SlpNearEnd. -
SlipSelection
public int SlipSelectionUPOS property SlipSelection. -
TotalizerType
public int TotalizerTypeUPOS property TotalizerType. -
TrainingModeActiveDef
public boolean TrainingModeActiveDefDefault value of TrainingModeActive property. Default: false. Should be overwritten by objects derived from JposDevice before first enable and after method calls BeginTraining and EndTraining. -
TrainingModeActive
public boolean TrainingModeActiveUPOS property TrainingModeActive. -
CurrencyStringWithDecimalPoint
public boolean CurrencyStringWithDecimalPointSpecified whether string values representing a currency value will be stored with decimal point. Default: true. For example, a currency value of 12.23, internally stored as 123400, will have a string representation of "12.34" if CurrencyStringWithDecimalPoint is true and a string representation of "123400" otherwise.
-
-
Constructor Details
-
FiscalPrinterProperties
public FiscalPrinterProperties(int dev)Constructor.- Parameters:
dev- Device index
-
-
Method Details
-
checkProperties
public void checkProperties(jpos.config.JposEntry entry) throws jpos.JposExceptionDescription copied from class:JposCommonPropertiesChecks jpos entries for service specific jpos property values and set corresponding service values.- Overrides:
checkPropertiesin classJposCommonProperties- Parameters:
entry- JposEntry instance that contains all jpos properties for the device. Only service specific entries are of interest here, device specific entries should be processed by the corresponding checkProperties method of the device implementation derived from JposDevice.- Throws:
jpos.JposException- a service related property is invalid or a mandatory service related property is missing.
-
initOnOpen
public void initOnOpen()Description copied from class:JposCommonPropertiesInitialization of properties that must be initialized during open.- Overrides:
initOnOpenin classJposCommonProperties
-
initOnFirstEnable
public boolean initOnFirstEnable()Description copied from class:JposCommonPropertiesInitialize properties that must be initialized whenever the device will be enabled the first time-- Overrides:
initOnFirstEnablein classJposCommonProperties- Returns:
- Returns true in case of first enable.
-
initOnClaim
public void initOnClaim()Description copied from class:JposCommonPropertiesInitialize properties that must be initialized whenever the device will be claimed.- Overrides:
initOnClaimin classJposCommonProperties
-
initOnEnable
public void initOnEnable(boolean enable)Description copied from class:JposCommonPropertiesInitialization of properties that must be initialized during deviceEnable.- Overrides:
initOnEnablein classJposCommonProperties- Parameters:
enable- True: initialize properties, false: do nothing
-
clearOutput
public void clearOutput() throws jpos.JposExceptionDescription copied from interface:JposBaseInterfaceClear output processing. Removes all OutputCompleteEvents and ErrorEvents from event queue and sets State to S_IDLE. Clears all outstanding commands of the given property set as well. This method will be called only if the following plausibility checks lead to a positive result:- Device has not been closed,
- ExclusiveUse equals ExclusiveYes: Device is claimed.
- Specified by:
clearOutputin interfaceJposBaseInterface- Overrides:
clearOutputin classJposCommonProperties- Throws:
jpos.JposException- See UPOS specification, method ClearOutput
-
additionalHeader
Description copied from interface:FiscalPrinterInterfaceFinal part of setting AdditionalHeader. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapAdditionalHeader is true.
- Specified by:
additionalHeaderin interfaceFiscalPrinterInterface- Parameters:
header- Additional header line to be printer in header of next receipt.- Throws:
jpos.JposException- If an error occurs.
-
additionalTrailer
Description copied from interface:FiscalPrinterInterfaceFinal part of setting AdditionalTrailer. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapAdditionalTrailer is true.
- Specified by:
additionalTrailerin interfaceFiscalPrinterInterface- Parameters:
trailer- Additional header line to be printer in header of next receipt.- Throws:
jpos.JposException- If an error occurs.
-
changeDue
Description copied from interface:FiscalPrinterInterfaceFinal part of setting ChangeDue. Must be overwritten within derived classes, if CapChangeDue is true. This method will be called only if the following plausibility checks lead to a positive result:- Device is opened,
- CapChangeDue is true,
- internal property AllowAlwaysSetProperties is true or changeDue equals the previous value of ChangeDue.
- Specified by:
changeDuein interfaceFiscalPrinterInterface- Parameters:
changeDue- Text for cash return.- Throws:
jpos.JposException- If an error occurs.
-
checkTotal
public void checkTotal(boolean check) throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterfaceFinal part of setting CheckTotal. Can be overwritten within derived classes, if CapCheckTotal is true. This method will be called only if the following plausibility checks lead to a positive result:- Device is opened,
- CapCheckTotal is true,
- internal property AllowAlwaysSetProperties is true or check equals the previous value of CheckTotal.
- Specified by:
checkTotalin interfaceFiscalPrinterInterface- Parameters:
check- true if application and printer total must match, false otherwise.- Throws:
jpos.JposException- If an error occurs.
-
contractorId
public void contractorId(int id) throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterfaceFinal part of setting ContractorId. Can be overwritten within derived classes, if CapMultiContractor is true. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapMultiContractor is true,
- id is one of CID_FIRST, CID_SECOND or CID_SINGLE,
- internal property AllowAlwaysSetProperties is true or id equals the previous value of ContractorId.
- Specified by:
contractorIdin interfaceFiscalPrinterInterface- Parameters:
id- One of CID_FIRST, CID_SECOND or CID_SINGLE.- Throws:
jpos.JposException- If an error occurs.
-
dateType
public void dateType(int type) throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterfaceFinal part of setting DateType. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- type is one of DT_CONF, DT_EOD, DT_RESET, DT_RTC, DT_VAT, DT_START, DT_TICKET_START or DT_TICKET_END,
- internal property AllowAlwaysSetProperties is true or type equals the previous value of DateType.
- Specified by:
dateTypein interfaceFiscalPrinterInterface- Parameters:
type- One of DT_CONF, DT_EOD, DT_RESET, DT_RTC, DT_VAT or DT_START.- Throws:
jpos.JposException- If an error occurs.
-
duplicateReceipt
public void duplicateReceipt(boolean yes) throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterfaceFinal part of setting DuplicateReceipt. This method will be called only if the following plausibility checks lead to a positive result:- Device is open,
- CapDuplicateReceipt is true,
- internal property AllowAlwaysSetProperties is true or yes equals the previous value of DuplicateReceipt.
- Specified by:
duplicateReceiptin interfaceFiscalPrinterInterface- Parameters:
yes- true if service can store printer commands for generation of fiscal receipt duplication.- Throws:
jpos.JposException- If an error occurs.
-
fiscalReceiptStation
public void fiscalReceiptStation(int station) throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterfaceFinal part of setting FiscalReceiptStation. This method will be called only if the following plausibility checks lead to a positive result:- Device is open,
- CapFiscalReceiptStation is true,
- Printer is in monitoring state,
- station is one of RS_RECEIPT or RS_SLIP.
- if CapSlpPresent is false, station is RS_RECEIPT,
- internal property AllowAlwaysSetProperties is true or station equals the previous value of FiscalReceiptStation.
- Specified by:
fiscalReceiptStationin interfaceFiscalPrinterInterface- Parameters:
station- One of RS_RECEIPT or RS_SLIP.- Throws:
jpos.JposException- If an error occurs.
-
fiscalReceiptType
public void fiscalReceiptType(int type) throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterfaceFinal part of setting FiscalReceiptType. This method will be called only if the following plausibility checks lead to a positive result:- Device is open,
- CapFiscalReceiptType is true,
- Printer is in monitoring state,
- type is one of RT_CASH_IN, RT_CASH_OUT, RT_GENERIC, RT_SALES, RT_SERVICE, SIMPLE_INVOICE or RT_REFUND,
- internal property AllowAlwaysSetProperties is true or type equals the previous value of FiscalReceiptType.
- Specified by:
fiscalReceiptTypein interfaceFiscalPrinterInterface- Parameters:
type- One of RT_CASH_IN, RT_CASH_OUT, RT_GENERIC, RT_SALES, RT_SERVICE, SIMPLE_INVOICE or RT_REFUND.- Throws:
jpos.JposException- If an error occurs.
-
messageType
public void messageType(int type) throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterfaceFinal part of setting MessageType. This method will be called only if the following plausibility checks lead to a positive result:- Device is open,
- type is one of the values listed in the UPOS specification for property MessageType,
- internal property AllowAlwaysSetProperties is true or type equals the previous value of MessageType.
- Specified by:
messageTypein interfaceFiscalPrinterInterface- Parameters:
type- One of the values listed in the UPOS specification for property MessageType.- Throws:
jpos.JposException- If an error occurs.
-
postLine
Description copied from interface:FiscalPrinterInterfaceFinal part of setting PostLine. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapPostPreLine is true,
- Printer is in fiscal receipt state.
- Specified by:
postLinein interfaceFiscalPrinterInterface- Parameters:
text- Text to be printed after next item line.- Throws:
jpos.JposException- If an error occurs.
-
preLine
Description copied from interface:FiscalPrinterInterfaceFinal part of setting PreLine. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapPostPreLine is true,
- Printer is in fiscal receipt state.
- Specified by:
preLinein interfaceFiscalPrinterInterface- Parameters:
text- Text to be printed before next item line.- Throws:
jpos.JposException- If an error occurs.
-
slipSelection
public void slipSelection(int type) throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterfaceFinal part of setting SlipSelection. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapSlpPresent is true,
- type is one of SS_FULL_LENGTH or SS_VALIDATION.
- If CapSlpValidation is false, type is SS_FULL_LENGTH.
- Specified by:
slipSelectionin interfaceFiscalPrinterInterface- Parameters:
type- One of SS_FULL_LENGTH or SS_VALIDATION.- Throws:
jpos.JposException- If an error occurs.
-
totalizerType
public void totalizerType(int type) throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterfaceFinal part of setting TotalizerType. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapTotalizerType is true,
- type is one of TT_DOCUMENT, TT_DAY, TT_RECEIPT or TT_GRAND.
- Specified by:
totalizerTypein interfaceFiscalPrinterInterface- Parameters:
type- One of TT_DOCUMENT, TT_DAY, TT_RECEIPT or TT_GRAND.- Throws:
jpos.JposException- If an error occurs.
-
beginFiscalDocument
public void beginFiscalDocument(int documentAmount) throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterfaceFinal part of BeginFiscalDocument method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapSlpPresent as well as CapSlpFiscalDocument is true,
- PrinterState is PS_MONITOR (not in any other kind of document).
- Specified by:
beginFiscalDocumentin interfaceFiscalPrinterInterface- Parameters:
documentAmount- Amount of document to be stored by the Fiscal Printer.- Throws:
jpos.JposException- If an error occurs.
-
beginFiscalReceipt
public void beginFiscalReceipt(boolean printHeader) throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterfaceFinal part of BeginFiscalReceipt method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- PrinterState is PS_MONITOR (not in any other kind of document).
- Specified by:
beginFiscalReceiptin interfaceFiscalPrinterInterface- Parameters:
printHeader- Indicates if the header lines are to be printed at this time.- Throws:
jpos.JposException- If an error occurs.
-
beginFixedOutput
public void beginFixedOutput(int station, int documentType) throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterfaceFinal part of BeginFixedOutput method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapFixedOutput is true,
- PrinterState is PS_MONITOR (not in any other kind of document),
- station is one of S_RECEIPT or S_SLIP,
- the corresponding station is present.
- Specified by:
beginFixedOutputin interfaceFiscalPrinterInterface- Parameters:
station- The Fiscal Printer station to be used.documentType- Identifier of a document stored in the Fiscal Printer.- Throws:
jpos.JposException- If an error occurs.
-
beginInsertion
public void beginInsertion(int timeout) throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterfaceFinal part of BeginInsertion method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapSlpPresent is true,
- timeout is ≥ 0 or FOREVER,
- PrinterState is not PS_LOCKED.
- Specified by:
beginInsertionin interfaceFiscalPrinterInterface- Parameters:
timeout- The timeout parameter gives the number of milliseconds.- Throws:
jpos.JposException- If an error occurs.
-
beginItemList
public void beginItemList(int vatID) throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterfaceFinal part of BeginItemList method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapItemList is true,
- PrinterState is PS_MONITOR (not in any other kind of document).
The default implementation should be called within derived methods to ensure that the property PrinterState is updated as expected.- Specified by:
beginItemListin interfaceFiscalPrinterInterface- Parameters:
vatID- Vat identifier for reporting.- Throws:
jpos.JposException- If an error occurs.
-
beginNonFiscal
public void beginNonFiscal() throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterfaceFinal part of BeginNonFiscal method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapNonFiscalMode is true,
- PrinterState is PS_MONITOR (not in any other kind of document).
- Specified by:
beginNonFiscalin interfaceFiscalPrinterInterface- Throws:
jpos.JposException- If an error occurs.
-
beginRemoval
public void beginRemoval(int timeout) throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterfaceFinal part of BeginRemoval method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapSlpPresent is true,
- timeout is ≥ 0 or FOREVER,
- PrinterState is not PS_LOCKED.
- Specified by:
beginRemovalin interfaceFiscalPrinterInterface- Parameters:
timeout- The timeout parameter gives the number of milliseconds.- Throws:
jpos.JposException- If an error occurs.
-
beginTraining
public void beginTraining() throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterfaceFinal part of BeginTraining method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapTrainingMode is true,
- TrainingModeActive is false,
- PrinterState is PS_MONITOR (not in any other kind of document).
- Specified by:
beginTrainingin interfaceFiscalPrinterInterface- Throws:
jpos.JposException- If an error occurs.
-
clearError
public void clearError() throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterfaceFinal part of ClearError method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled.
- Specified by:
clearErrorin interfaceFiscalPrinterInterface- Throws:
jpos.JposException- If an error occurs.
-
endFiscalDocument
public void endFiscalDocument() throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterfaceFinal part of EndFiscalDocument method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapSlpFiscalDocument is true,
- PrinterState is PS_FISCAL_DOCUMENT.
- Specified by:
endFiscalDocumentin interfaceFiscalPrinterInterface- Throws:
jpos.JposException- If an error occurs.
-
endFiscalReceipt
public void endFiscalReceipt(boolean printHeader) throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterfaceFinal part of EndFiscalReceipt method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- PrinterState is PS_FISCAL_RECEIPT_ENDING or PS_FISCAL_RECEIPT.
If called from PS_FISCAL_RECEIPT, this method must throw an exception after the first item has just been sold. In this case, PrintRecVoid must be called explicitly.- Specified by:
endFiscalReceiptin interfaceFiscalPrinterInterface- Parameters:
printHeader- Indicates if the header lines of the following receipt are to be printed at this time.- Throws:
jpos.JposException- If an error occurs.
-
endFixedOutput
public void endFixedOutput() throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterfaceFinal part of EndFixedOutput method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapFixedOutput is true,
- PrinterState is PS_FIXED_OUTPUT.
- Specified by:
endFixedOutputin interfaceFiscalPrinterInterface- Throws:
jpos.JposException- If an error occurs.
-
endInsertion
public void endInsertion() throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterfaceFinal part of EndInsertion method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapSlpPresent is true,
- PrinterState is not PS_LOCKED.
- Specified by:
endInsertionin interfaceFiscalPrinterInterface- Throws:
jpos.JposException- If an error occurs.
-
endItemList
public void endItemList() throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterfaceFinal part of EndItemList method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapItemList is true,
- PrinterState is PS_ITEM_LIST.
- Specified by:
endItemListin interfaceFiscalPrinterInterface- Throws:
jpos.JposException- If an error occurs.
-
endNonFiscal
public void endNonFiscal() throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterfaceFinal part of EndNonFiscal method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapNonFiscalMode is true,
- PrinterState is PS_NONFISCAL.
- Specified by:
endNonFiscalin interfaceFiscalPrinterInterface- Throws:
jpos.JposException- If an error occurs.
-
endRemoval
public void endRemoval() throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterfaceFinal part of EndRemoval method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapSlpPresent is true,
- PrinterState is not PS_LOCKED.
- Specified by:
endRemovalin interfaceFiscalPrinterInterface- Throws:
jpos.JposException- If an error occurs.
-
endTraining
public void endTraining() throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterfaceFinal part of EndTraining method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapTrainingMode is true,
- TrainingModeActive is true,
- PrinterState is PS_MONITOR (not in any other kind of document).
- Specified by:
endTrainingin interfaceFiscalPrinterInterface- Throws:
jpos.JposException- If an error occurs.
-
getData
Description copied from interface:FiscalPrinterInterfaceFinal part of GetData method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- AsyncMode is true or State is not S_BUSY,
- optArgs and data are not null and are of length 1,
- dataItem is one of the GD_ values as described for method GetData.
- dataItem is not one of GD_MID_VOID, GD_RECEIPT_NUMBER, one of the GD_ numbers for fiscal memory counts, one of the GD_ values for counter, GD_LINECOUNT or GD_DESCRIPTION_LENGTH, if final part for counters, numbers and lengths has been implementer in derived class.
- dataItem is not one of GD_CURRENT_TOTAL, GD_DAILY_TOTAL, GD_GRAND_TOTAL, GD_NOT_PAID, GD_REFUND or GD_REFUND_VOID, if final part for totalizers has been implementer in derived class.
- Specified by:
getDatain interfaceFiscalPrinterInterface- Parameters:
dataItem- The specific data item to retrieve.optArgs- For some dataItem this additional argument is used for further targeting.data- Character string to hold the data retrieved.- Throws:
jpos.JposException- If an error occurs.
-
getData
public void getData(int dataItem, int[] optArgs, int[] data) throws jpos.JposExceptionDefault implementation for backward compatibility. Must not be called from real implementation in derived class.- Specified by:
getDatain interfaceFiscalPrinterInterface- Parameters:
dataItem- The specific data item to retrieve.optArgs- For some dataItem this additional argument is used for further targeting.data- Integer to hold the data retrieved.- Throws:
jpos.JposException- If the specified data item does not specify an integer value.
-
getData
public void getData(int dataItem, int[] optArgs, long[] data) throws jpos.JposExceptionDefault implementation for backward compatibility. Must not be called from real implementation in derived class.- Specified by:
getDatain interfaceFiscalPrinterInterface- Parameters:
dataItem- The specific data item to retrieve.optArgs- For some dataItem this additional argument is used for further targeting.data- Currency (long variable) to hold the data retrieved.- Throws:
jpos.JposException- If the specified data item does not specify a currency value.
-
getDate
Description copied from interface:FiscalPrinterInterfaceFinal part of GetDate method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- date is not null and is of length 1.
- Specified by:
getDatein interfaceFiscalPrinterInterface- Parameters:
date- Date and time returned as a string.- Throws:
jpos.JposException- If an error occurs.
-
getTotalizer
@Deprecated public void getTotalizer(int vatID, int optArgs, String[] data) throws jpos.JposExceptionDeprecated.Description copied from interface:FiscalPrinterInterfaceFinal part of GetTotalizer method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- data is not null and is of length 1,
- optArgs is one of the GT_ values as described for method GetTotalizer.
This method has been marked as deprecated. Please use GetTotalizer with long[1] instead of String[1] as data argument.- Specified by:
getTotalizerin interfaceFiscalPrinterInterface- Parameters:
vatID- VAT identifier of the required totalizer.optArgs- Specifies the required totalizer.data- Totalizer returned as a string.- Throws:
jpos.JposException- If an error occurs.
-
getTotalizer
public void getTotalizer(int vatID, int optArgs, long[] data) throws jpos.JposExceptionThis is a dummy implementation that calls the deprecated version this method.- Specified by:
getTotalizerin interfaceFiscalPrinterInterface- Parameters:
vatID- VAT identifier of the required totalizer.optArgs- Specifies the required totalizer.data- Totalizer returned as a string.- Throws:
jpos.JposException- If an error occurs
-
getVatEntry
public void getVatEntry(int vatID, int optArgs, int[] vatRate) throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterfaceFinal part of GetVatEntry method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapHasVatTable is true.
- vatRate is not null and is of length 1,
- Specified by:
getVatEntryin interfaceFiscalPrinterInterface- Parameters:
vatID- VAT identifier of the required rate.optArgs- For some countries, this additional argument may be needed.vatRate- The rate associated with the VAT identifier.- Throws:
jpos.JposException- If an error occurs.
-
printDuplicateReceipt
public void printDuplicateReceipt() throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterfaceFinal part of PrintDuplicateReceipt method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapDuplicateReceipt is true,
- PrinterState is PS_MONITOR,
- State is not S_BUSY.
The default implementation should be called within derived methods to ensure that the property DuplicateReceipt is updated as expected.- Specified by:
printDuplicateReceiptin interfaceFiscalPrinterInterface- Throws:
jpos.JposException- If an error occurs.
-
printPeriodicTotalsReport
Description copied from interface:FiscalPrinterInterfaceFinal part of PrintPeriodicTotalsReport method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- PrinterState is PS_MONITOR,
- data1 and data2 are not null,
- both, date1 and date2, are well-formatted date strings as specified in the UPOS specification,
- date2 does not specify any date before date1.
- Specified by:
printPeriodicTotalsReportin interfaceFiscalPrinterInterface- Parameters:
date1- Starting date of report to print.date2- Ending date of report to print.- Throws:
jpos.JposException- If an error occurs.
-
printPowerLossReport
public void printPowerLossReport() throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterfaceFinal part of PrintPowerLossReport method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapPowerLossReport is true,
- PrinterState is PS_MONITOR.
- Specified by:
printPowerLossReportin interfaceFiscalPrinterInterface- Throws:
jpos.JposException- If an error occurs.
-
printReport
Description copied from interface:FiscalPrinterInterfaceFinal part of PrintReport method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- PrinterState is PS_MONITOR,
- reportType is one of RT_ORDINAL, RT_DATE or RT_EOD_ORDINAL,
- if reportType == RT_DATE: startNum and endNum are date values as specified in the UPOS specification and startNum specifies a date equal to or before endNum.
- if reportType != RT_DATE: startNum and endNum are numerical values and endNum is zero or startNum ≤ endNum.
- Specified by:
printReportin interfaceFiscalPrinterInterface- Parameters:
reportType- The kind of report to print.startNum- Starting record in fiscal printer.endNum- Final record in fiscal printer.- Throws:
jpos.JposException- If an error occurs.
-
printXReport
public void printXReport() throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterfaceFinal part of PrintXReport method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapXReport is true,
- PrinterState is PS_MONITOR.
- Specified by:
printXReportin interfaceFiscalPrinterInterface- Throws:
jpos.JposException- If an error occurs.
-
printZReport
public void printZReport() throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterfaceFinal part of PrintZReport method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- PrinterState is PS_MONITOR.
- Specified by:
printZReportin interfaceFiscalPrinterInterface- Throws:
jpos.JposException- If an error occurs.
-
resetPrinter
public void resetPrinter() throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterfaceFinal part of ResetPrinter method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled.
- Specified by:
resetPrinterin interfaceFiscalPrinterInterface- Throws:
jpos.JposException- If an error occurs.
-
setCurrency
public void setCurrency(int newCurrency) throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterfaceFinal part of SetCurrency method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapSetCurrency is true,
- DayOpened is false,
- newCurrency is one of the SC_ values (currently only SC_EURO).
- ActualCurrency is not the corresponding AC_value (currently: not AC_EUR).
- Specified by:
setCurrencyin interfaceFiscalPrinterInterface- Parameters:
newCurrency- The new currency.- Throws:
jpos.JposException- If an error occurs.
-
setDate
Description copied from interface:FiscalPrinterInterfaceFinal part of SetDate method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- DayOpened is false,
- date is a valid date string as specified in the UPOS specification vor method SetDate.
- Specified by:
setDatein interfaceFiscalPrinterInterface- Parameters:
date- Date and time as a string.- Throws:
jpos.JposException- If an error occurs.
-
setHeaderLine
public void setHeaderLine(int lineNumber, String text, boolean doubleWidth) throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterfaceFinal part of SetHeaderLine method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapSetHeader is true,
- DayOpened is false,
- lineNumber is between 1 and NumHeaderLines,
- if CapReservedWord is true, text does not contain the word stored in property ReservedWord.
- Specified by:
setHeaderLinein interfaceFiscalPrinterInterface- Parameters:
lineNumber- Line number of the header line to set.text- Text to which to set the header line.doubleWidth- Print this line in double wide characters.- Throws:
jpos.JposException- If an error occurs.
-
setPOSID
Description copied from interface:FiscalPrinterInterfaceFinal part of SetPOSID method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapSetPOSID is true,
- DayOpened is false,
- if CapReservedWord is true, neither POSID nor cashierID contains the word stored in property ReservedWord.
- Specified by:
setPOSIDin interfaceFiscalPrinterInterface- Parameters:
POSID- Identifier for the POS system.cashierID- Identifier of the current cashier.- Throws:
jpos.JposException- If an error occurs.
-
setStoreFiscalID
Description copied from interface:FiscalPrinterInterfaceFinal part of SetStoreFiscalID method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapSetStoreFiscalID is true,
- DayOpened is false.
- Specified by:
setStoreFiscalIDin interfaceFiscalPrinterInterface- Parameters:
ID- Fiscal identifier.- Throws:
jpos.JposException- If an error occurs.
-
setTrailerLine
public void setTrailerLine(int lineNumber, String text, boolean doubleWidth) throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterfaceFinal part of SetTrailerLine method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapSetTrailer is true,
- DayOpened is false,
- lineNumber is between 1 and NumTrailerLines,
- if CapReservedWord is true, text does not contain the word stored in property ReservedWord.
- Specified by:
setTrailerLinein interfaceFiscalPrinterInterface- Parameters:
lineNumber- Line number of the trailer line to set.text- Text to which to set the trailer line.doubleWidth- Print this line in double wide characters.- Throws:
jpos.JposException- If an error occurs.
-
setVatTable
public void setVatTable() throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterfaceFinal part of SetVatTable method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapHasVatTable is true,
- CapSetVatTable is true,
- DayOpened is false.
- Specified by:
setVatTablein interfaceFiscalPrinterInterface- Throws:
jpos.JposException- If an error occurs.
-
setVatValue
public void setVatValue(int vatID, long vatValue) throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterfaceFinal part of SetVatValue method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapHasVatTable is true,
- CapSetVatTable is true,
- DayOpened is false,
- vatValue is a value ≤ 999999, representing a percent value ≤ 99.9999.
- vatID must be one of NumVatRate values. However, UPOS does not specify the upper or lower border of vatID. For example, if NumVatRate is 4, valid values for vatID might be 0 - 3, 1 - 4, '1' - '4', 'A' - 'D', the ASCII code of any character in "ABZN" ...
- Since UPOS does not define the format of vatValue, JavaPOS-SPF specifies vatValue as either a percentage value (either an integer between 100 and 999999, representing a percentage between 0.01 % and 99.9999 % with 4 implicit decimals, an integer value between 0 and 99, representing a percentage between 0 % and 99 % or a percentage between 0 % and 99.9999 %, specified as fixed-point number with a maximum of 4 decimals) or an integer and a percentage value, separated by comma, this method will only be called if only a percentage value has been specified.
- Specified by:
setVatValuein interfaceFiscalPrinterInterface- Parameters:
vatID- Index of the VAT table entry to set.vatValue- Tax value as a percentage.- Throws:
jpos.JposException- If an error occurs.
-
setVatValue
public void setVatValue(int vatID, int optArgs, int vatValue) throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterfaceFinal part of SetVatValue method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapHasVatTable is true,
- CapSetVatTable is true,
- DayOpened is false,
- vatValue is a value ≤ 999999, representing a percent value ≤ 99.9999.
- vatID must be one of NumVatRate values. However, UPOS does not specify the upper or lower border of vatID. For example, if NumVatRate is 4, valid values for vatID might be 0 - 3, 1 - 4, '1' - '4', 'A' - 'D', the ASCII code of any character in "ABZN" ...
- Since UPOS does not define the format of vatValue, JavaPOS-SPF specifies vatValue as either a percentage value (either an integer between 100 and 999999, representing a percentage between 0.01 % and 99.9999 % with 4 implicit decimals, an integer value between 0 and 99, representing a percentage between 0 % and 99 % or a percentage between 0 % and 99.9999 %, specified as fixed-point number with a maximum of 4 decimals) or an integer and a percentage value, separated by comma, this method will only be called if an integer and a percentage value have been specified.
- Specified by:
setVatValuein interfaceFiscalPrinterInterface- Parameters:
vatID- Index of the VAT table entry to set.optArgs- Integer value, to be specified in getVatEntry method to retrieve this vat rate.vatValue- Tax value as a percentage.- Throws:
jpos.JposException- If an error occurs.
-
verifyItem
Description copied from interface:FiscalPrinterInterfaceFinal part of VerifyItem method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapHasVatTable is true,
- CapItemList is true,
- PrinterState is PS_ITEM_LIST,
- If CapReservedWord is true: itemName does not contain the contents of property ReservedWord.
- itemName may not contain invalid characters and must not exceed a specific length.
- vatID must be one of NumVatRate values. However, UPOS does not specify the upper or lower border of vatID. For example, if NumVatRate is 4, valid values for vatID might be 0 - 3, 1 - 4, '1' - '4', 'A' - 'D', the ASCII code of any character in "ABZN" ...
- Specified by:
verifyItemin interfaceFiscalPrinterInterface- Parameters:
itemName- Item to be verified.vatID- VAT identifier of the item.- Throws:
jpos.JposException- If an error occurs.
-
printFiscalDocumentLine
public PrintFiscalDocumentLine printFiscalDocumentLine(String documentLine) throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterfaceValidation part of PrintFiscalDocumentLine method. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapSlpFiscalDocument is true,
- PrinterState is PS_FISCAL_DOCUMENT,
- documentLine is not null.
- State is not S_BUSY,
- CapCoverSensor is false or CoverOpen is false,
- CapSlpEmptySensor is false or SlpEmpty is false.
- Specified by:
printFiscalDocumentLinein interfaceFiscalPrinterInterface- Parameters:
documentLine- Line to be printed on fiscal slip.- Returns:
- PrintFiscalDocumentLine object for use in final part.
- Throws:
jpos.JposException- If an error occurs.
-
printFiscalDocumentLine
Description copied from interface:FiscalPrinterInterfaceFinal part of PrintFiscalDocumentLine method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a PrintFiscalDocumentLine object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.
In case of asynchronous processing, the following additional checks have been made before as well:- The slip station is present.
- CapCoverSensor is false or CoverOpen is false,
- CapSlpEmptySensor is false or SlpEmpty is false.
- Specified by:
printFiscalDocumentLinein interfaceFiscalPrinterInterface- Parameters:
request- Output request object returned by validation method that contains all parameters to be used by PrintFiscalDocumentLine.- Throws:
jpos.JposException- If an error occurs.
-
printFixedOutput
public PrintFixedOutput printFixedOutput(int documentType, int lineNumber, String data) throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterfaceValidation part of PrintFixedOutput method. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapFixedOutput is true,
- PrinterState is PS_FIXED_OUTPUT,
- data is not null.
- State is not S_BUSY.
On success, the station stored within the returned PrintFixedOutput object must be set to the correct print station. If the implementation supports fixed output only to the receipt station, no further action is necessary because the default station is receipt. If the implementation supports fixed output on slip and slip has been selected in beginFixedOutput, PrintFixedOutput.changeToSlip() must be called to change the station before returning.- Specified by:
printFixedOutputin interfaceFiscalPrinterInterface- Parameters:
documentType- Identifier of a document stored in the Fiscal Printer.lineNumber- Number of the line in the document to print.data- String parameter for placement in printed line.- Returns:
- PrintFixedOutput object for use in final part.
- Throws:
jpos.JposException- If an error occurs.
-
printFixedOutput
Description copied from interface:FiscalPrinterInterfaceFinal part of PrintFixedOutput method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a PrintFixedOutput object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, especially the following additional checks that have not been made preceiding the validation part:- The station specified in beginFixedOutput is present.
- CapCoverSensor is false or CoverOpen is false,
- the corresponding empty paper sensor is not present signals paper present.
- Specified by:
printFixedOutputin interfaceFiscalPrinterInterface- Parameters:
request- Output request object returned by validation method that contains all parameters to be used by PrintFixedOutput.- Throws:
jpos.JposException- If an error occurs.
-
printNormal
Description copied from interface:FiscalPrinterInterfaceValidation part of PrintNormal method. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- PrinterState is PS_NONFISCAL, or PrinterState is PS_FISCAL_RECEIPT and FiscalReceiptType is RT_GENERIC, RT_CASH_IN or RT_CASH_OUT,
- station is one of S_JOURNAL, S_RECEIPT or S_SLIP,
- The corresponding presence property (CapJrnPresent, CapRecPresent or CapSlpPresent) is true,
- data is not null.
If AsyncMode is false:- State is not S_BUSY,
- CapCoverSensor is false or CoverOpen is false,
- the corresponding empty paper sensor is not present or signals paper present.
- Specified by:
printNormalin interfaceFiscalPrinterInterface- Parameters:
station- The Fiscal Printer station to be used.data- The characters to be printed.- Returns:
- PrintNormal object for use in final part.
- Throws:
jpos.JposException- If an error occurs.
-
printNormal
Description copied from interface:FiscalPrinterInterfaceFinal part of PrintNormal method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a PrintNormal object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.
In case of asynchronous processing, the following additional checks have been made before as well:- The station(s) specified by getStation() is present.
- CapCoverSensor is false or CoverOpen is false,
- the corresponding empty paper sensor is not present or signals paper present.
- Specified by:
printNormalin interfaceFiscalPrinterInterface- Parameters:
request- Output request object returned by validation method that contains all parameters to be used by PrintNormal.- Throws:
jpos.JposException- If an error occurs.
-
printRecCash
Description copied from interface:FiscalPrinterInterfaceValidation part of PrintRecCash method. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- PrinterState is PS_FISCAL_RECEIPT,
- CapFiscalReceiptType is true,
- FiscalReceiptType is RT_CASH_IN or RT_CASH_OUT,
- amount is > 0.
- amount is a multiple of smallest cash units (e.g. a multiple of 100 for Euro).
- State is not S_BUSY,
- CapCoverSensor is false or CoverOpen is false,
- the empty paper sensors of the journal and the station specified by FiscalReceiptStation are not present or signal paper present.
- Specified by:
printRecCashin interfaceFiscalPrinterInterface- Parameters:
amount- Amount to be incremented or decremented.- Returns:
- PrintRecCash object for use in final part.
- Throws:
jpos.JposException- If an error occurs.
-
printRecCash
Description copied from interface:FiscalPrinterInterfaceFinal part of PrintRecCash method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a PrintRecCash object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.
In case of asynchronous processing, the following additional checks have been made before as well:- CapCoverSensor is false or CoverOpen is false,
- the empty paper sensors of the journal and the station specified by FiscalReceiptStation are not present or signal paper present.
- Specified by:
printRecCashin interfaceFiscalPrinterInterface- Parameters:
request- Output request object returned by validation method that contains all parameters to be used by PrintRecCash.- Throws:
jpos.JposException- If an error occurs.
-
printRecItem
public PrintRecItem printRecItem(String description, long price, int quantity, int vatInfo, long unitPrice, String unitName) throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterfaceValidation part of PrintRecItem method. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- PrinterState is PS_FISCAL_RECEIPT,
- CapFiscalReceiptType is false or FiscalReceiptType is RT_SALES, RT_SERVICE, RT_SIMPLE_INVOICE or RT_REFUND,
- amount quantity and price are ≥ 0,
- description and unitName are not null and do not contain the reserved word, if any.
- State is not S_BUSY,
- CapCoverSensor is false or CoverOpen is false,
- the empty paper sensors of the journal and the station specified by FiscalReceiptStation are not present or signal paper present.
For synchronous processing, this difference should not be relevant. However, keep in mind that PreLine and PostLine must be reset to an empty string at least at the end of the final part of PrintRecItem.- Specified by:
printRecItemin interfaceFiscalPrinterInterface- Parameters:
description- Text describing the item sold.price- Price of the line item.quantity- Number of items. If zero, a single item is assumed.vatInfo- VAT rate identifier or amount.unitPrice- Price of each item.unitName- Name of the unit.- Returns:
- PrintRecItem object for use in final part.
- Throws:
jpos.JposException- If an error occurs.
-
printRecItem
Description copied from interface:FiscalPrinterInterfaceFinal part of PrintRecItem method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a PrintRecItem object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.
In case of asynchronous processing, the following additional checks have been made before as well:- CapCoverSensor is false or CoverOpen is false,
- the empty paper sensors of the journal and the station specified by FiscalReceiptStation are not present or signal paper present.
- Specified by:
printRecItemin interfaceFiscalPrinterInterface- Parameters:
request- Output request object returned by validation method that contains all parameters to be used by PrintRecItem.- Throws:
jpos.JposException- If an error occurs.
-
printRecItemAdjustment
public PrintRecItemAdjustment printRecItemAdjustment(int adjustmentType, String description, long amount, int vatInfo) throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterfaceValidation part of PrintRecItemAdjustment method. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- PrinterState is PS_FISCAL_RECEIPT,
- CapFiscalReceiptType is false or FiscalReceiptType is RT_SALES, RT_SERVICE, RT_SIMPLE_INVOICE or RT_REFUND,
- adjustmentType is one of AT_PERCENTAGE_DISCOUNT, AT_PERCENTAGE_SURCHARGE, AT_COUPON_PERCENTAGE_DISCOUNT, AT_AMOUNT_DISCOUNT, AT_AMOUNT_SURCHARGE or AT_COUPON_AMOUNT_DISCOUNT,
- if CapAmountAdjustment is false, adjustmentType is one of AT_PERCENTAGE_DISCOUNT, AT_PERCENTAGE_SURCHARGE or AT_COUPON_PERCENTAGE_DISCOUNT,
- if CapPercentAdjustment is false, adjustmentType is one of AT_AMOUNT_DISCOUNT, AT_AMOUNT_SURCHARGE or AT_COUPON_AMOUNT_DISCOUNT,
- if CapPositiveAdjustment is false, adjustmentType is one of AT_AMOUNT_DISCOUNT, AT_COUPON_AMOUNT_DISCOUNT, AT_PERCENTAGE_DISCOUNT, AT_PERCENTAGE_SURCHARGE or AT_COUPON_PERCENTAGE_DISCOUNT,
- amount > 0,
- description is not null and do not contain the reserved word, if any.
- State is not S_BUSY,
- CapCoverSensor is false or CoverOpen is false,
- the empty paper sensors of the journal and the station specified by FiscalReceiptStation are not present or signal paper present.
For synchronous processing, this difference should not be relevant. However, keep in mind that PreLine must be reset to an empty string at least at the end of the final part of PrintRecItemAdjustment.- Specified by:
printRecItemAdjustmentin interfaceFiscalPrinterInterface- Parameters:
adjustmentType- Type of adjustment.description- Text describing the item sold.amount- Number of items. If zero, a single item is assumed.vatInfo- VAT rate identifier or amount.- Returns:
- PrintRecItemAdjustment object for use in final part.
- Throws:
jpos.JposException- If an error occurs.
-
printRecItemAdjustment
Description copied from interface:FiscalPrinterInterfaceFinal part of PrintRecItemAdjustment method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a PrintRecItemAdjustment object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.
In case of asynchronous processing, the following additional checks have been made before as well:- CapCoverSensor is false or CoverOpen is false,
- the empty paper sensors of the journal and the station specified by FiscalReceiptStation are not present or signal paper present.
- Specified by:
printRecItemAdjustmentin interfaceFiscalPrinterInterface- Parameters:
request- Output request object returned by validation method that contains all parameters to be used by PrintRecItemAdjustment.- Throws:
jpos.JposException- If an error occurs.
-
printRecItemAdjustmentVoid
public PrintRecItemAdjustmentVoid printRecItemAdjustmentVoid(int adjustmentType, String description, long amount, int vatInfo) throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterfaceValidation part of PrintRecItemAdjustmentVoid method. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- PrinterState is PS_FISCAL_RECEIPT,
- CapFiscalReceiptType is false or FiscalReceiptType is RT_SALES, RT_SERVICE, RT_SIMPLE_INVOICE or RT_REFUND,
- adjustmentType is one of AT_PERCENTAGE_DISCOUNT, AT_PERCENTAGE_SURCHARGE, AT_COUPON_PERCENTAGE_DISCOUNT, AT_AMOUNT_DISCOUNT, AT_AMOUNT_SURCHARGE or AT_COUPON_AMOUNT_DISCOUNT,
- if CapAmountAdjustment is false, adjustmentType is one of AT_PERCENTAGE_DISCOUNT, AT_PERCENTAGE_SURCHARGE or AT_COUPON_PERCENTAGE_DISCOUNT,
- if CapPercentAdjustment is false, adjustmentType is one of AT_AMOUNT_DISCOUNT, AT_AMOUNT_SURCHARGE or AT_COUPON_AMOUNT_DISCOUNT,
- if CapPositiveAdjustment is false, adjustmentType is one of AT_AMOUNT_DISCOUNT, AT_COUPON_AMOUNT_DISCOUNT, AT_PERCENTAGE_DISCOUNT, AT_PERCENTAGE_SURCHARGE or AT_COUPON_PERCENTAGE_DISCOUNT,
- amount > 0,
- description is not null and do not contain the reserved word, if any.
- State is not S_BUSY,
- CapCoverSensor is false or CoverOpen is false,
- the empty paper sensors of the journal and the station specified by FiscalReceiptStation are not present or signal paper present.
For synchronous processing, this difference should not be relevant. However, keep in mind that PreLine must be reset to an empty string at least at the end of the final part of PrintRecItemAdjustmentVoid.- Specified by:
printRecItemAdjustmentVoidin interfaceFiscalPrinterInterface- Parameters:
adjustmentType- Type of adjustment.description- Text describing the item sold.amount- Number of items. If zero, a single item is assumed.vatInfo- VAT rate identifier or amount.- Returns:
- PrintRecItemAdjustmentVoid object for use in final part.
- Throws:
jpos.JposException- If an error occurs.
-
printRecItemAdjustmentVoid
public void printRecItemAdjustmentVoid(PrintRecItemAdjustmentVoid request) throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterfaceFinal part of PrintRecItemAdjustmentVoid method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a PrintRecItemAdjustmentVoid object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.
In case of asynchronous processing, the following additional checks have been made before as well:- CapCoverSensor is false or CoverOpen is false,
- the empty paper sensors of the journal and the station specified by FiscalReceiptStation are not present or signal paper present.
- Specified by:
printRecItemAdjustmentVoidin interfaceFiscalPrinterInterface- Parameters:
request- Output request object returned by validation method that contains all parameters to be used by PrintRecItemAdjustmentVoid.- Throws:
jpos.JposException- If an error occurs.
-
printRecItemFuel
public PrintRecItemFuel printRecItemFuel(String description, long price, int quantity, int vatInfo, long unitPrice, String unitName, long specialTax, String specialTaxName) throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterfaceValidation part of PrintRecItemFuel method. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- PrinterState is PS_FISCAL_RECEIPT,
- CapFiscalReceiptType is false or FiscalReceiptType is RT_SALES, RT_SERVICE, RT_SIMPLE_INVOICE or RT_REFUND,
- amount, quantity, price and specialTax are ≥ 0,
- description, unitName and specialTaxName are not null and do not contain the reserved word, if any.
- State is not S_BUSY,
- CapCoverSensor is false or CoverOpen is false,
- the empty paper sensors of the journal and the station specified by FiscalReceiptStation are not present or signal paper present.
It might be a good solution to set Preline and / or PostLine to an empty string whenever they should be printed by the service and to let them unchanged otherwise.- Specified by:
printRecItemFuelin interfaceFiscalPrinterInterface- Parameters:
description- Text describing the item sold.price- Price of the line item.quantity- Number of items. If zero, a single item is assumed.vatInfo- VAT rate identifier or amount.unitPrice- Price of each item.unitName- Name of the unit.specialTax- Special tax amount, e.g., road tax.specialTaxName- Name of the special tax.- Returns:
- PrintRecItemFuel object for use in final part.
- Throws:
jpos.JposException- If an error occurs.
-
printRecItemFuel
Description copied from interface:FiscalPrinterInterfaceFinal part of PrintRecItemFuel method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a PrintRecItemFuel object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.
In case of asynchronous processing, the following additional checks have been made before as well:- CapCoverSensor is false or CoverOpen is false,
- the empty paper sensors of the journal and the station specified by FiscalReceiptStation are not present or signal paper present.
- Specified by:
printRecItemFuelin interfaceFiscalPrinterInterface- Parameters:
request- Output request object returned by validation method that contains all parameters to be used by PrintRecItemFuel.- Throws:
jpos.JposException- If an error occurs.
-
printRecItemFuelVoid
public PrintRecItemFuelVoid printRecItemFuelVoid(String description, long price, int vatInfo, long specialTax) throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterfaceValidation part of PrintRecItemFuelVoid method. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- PrinterState is PS_FISCAL_RECEIPT,
- CapFiscalReceiptType is false or FiscalReceiptType is RT_SALES, RT_SERVICE, RT_SIMPLE_INVOICE or RT_REFUND,
- price and specialTax are ≥ 0,
- description is not null and does not contain the reserved word, if any.
- State is not S_BUSY,
- CapCoverSensor is false or CoverOpen is false,
- the empty paper sensors of the journal and the station specified by FiscalReceiptStation are not present or signal paper present.
It might be a good solution to set Preline and / or PostLine to an empty string whenever they should be printed by the service and to let them unchanged otherwise.- Specified by:
printRecItemFuelVoidin interfaceFiscalPrinterInterface- Parameters:
description- Text describing the item sold.price- Price of the line item.vatInfo- VAT rate identifier or amount.specialTax- Special tax amount, e.g., road tax.- Returns:
- PrintRecItemFuelVoid object for use in final part.
- Throws:
jpos.JposException- If an error occurs.
-
printRecItemFuelVoid
Description copied from interface:FiscalPrinterInterfaceFinal part of PrintRecItemFuelVoid method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a PrintRecItemFuelVoid object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.
In case of asynchronous processing, the following additional checks have been made before as well:- CapCoverSensor is false or CoverOpen is false,
- the empty paper sensors of the journal and the station specified by FiscalReceiptStation are not present or signal paper present.
- Specified by:
printRecItemFuelVoidin interfaceFiscalPrinterInterface- Parameters:
request- Output request object returned by validation method that contains all parameters to be used by PrintRecItemFuelVoid.- Throws:
jpos.JposException- If an error occurs.
-
printRecItemVoid
public PrintRecItemVoid printRecItemVoid(String description, long price, int quantity, int vatInfo, long unitPrice, String unitName) throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterfaceValidation part of PrintRecItemVoid method. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- PrinterState is PS_FISCAL_RECEIPT,
- CapFiscalReceiptType is false or FiscalReceiptType is RT_SALES, RT_SERVICE, RT_SIMPLE_INVOICE or RT_REFUND,
- amount, quantity and price are ≥ 0,
- description and unitName are not null and do not contain the reserved word, if any.
- State is not S_BUSY,
- CapCoverSensor is false or CoverOpen is false,
- the empty paper sensors of the journal and the station specified by FiscalReceiptStation are not present or signal paper present.
For synchronous processing, this difference should not be relevant. However, keep in mind that PreLine and PostLine must be reset to an empty string at least at the end of the final part of PrintRecItemVoid.- Specified by:
printRecItemVoidin interfaceFiscalPrinterInterface- Parameters:
description- Text describing the item sold.price- Price of the line item.quantity- Number of items. If zero, a single item is assumed.vatInfo- VAT rate identifier or amount.unitPrice- Price of each item.unitName- Name of the unit.- Returns:
- PrintRecItemVoid object for use in final part.
- Throws:
jpos.JposException- If an error occurs.
-
printRecItemVoid
Description copied from interface:FiscalPrinterInterfaceFinal part of PrintRecItemVoid method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a PrintRecItemVoid object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.
In case of asynchronous processing, the following additional checks have been made before as well:- CapCoverSensor is false or CoverOpen is false,
- the empty paper sensors of the journal and the station specified by FiscalReceiptStation are not present or signal paper present.
- Specified by:
printRecItemVoidin interfaceFiscalPrinterInterface- Parameters:
request- Output request object returned by validation method that contains all parameters to be used by PrintRecItemVoid.- Throws:
jpos.JposException- If an error occurs.
-
printRecItemRefund
public PrintRecItemRefund printRecItemRefund(String description, long amount, int quantity, int vatInfo, long unitAmount, String unitName) throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterfaceValidation part of PrintRecItemRefund method. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- PrinterState is PS_FISCAL_RECEIPT,
- CapFiscalReceiptType is false or FiscalReceiptType is RT_SALES, RT_SERVICE or RT_REFUND,
- amount, quantity and price are ≥ 0,
- description and unitName are not null and do not contain the reserved word, if any.
- State is not S_BUSY,
- CapCoverSensor is false or CoverOpen is false,
- the empty paper sensors of the journal and the station specified by FiscalReceiptStation are not present or signal paper present.
For synchronous processing, this difference should not be relevant. However, keep in mind that PreLine must be reset to an empty string at least at the end of the final part of PrintRecItemRefund.- Specified by:
printRecItemRefundin interfaceFiscalPrinterInterface- Parameters:
description- Text describing the item sold.amount- Price of the line item.quantity- Number of items. If zero, a single item is assumed.vatInfo- VAT rate identifier or amount.unitAmount- Price of each item.unitName- Name of the unit.- Returns:
- PrintRecItemRefund object for use in final part.
- Throws:
jpos.JposException- If an error occurs.
-
printRecItemRefund
Description copied from interface:FiscalPrinterInterfaceFinal part of PrintRecItemRefund method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a PrintRecItemRefund object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.
In case of asynchronous processing, the following additional checks have been made before as well:- CapCoverSensor is false or CoverOpen is false,
- the empty paper sensors of the journal and the station specified by FiscalReceiptStation are not present or signal paper present.
- Specified by:
printRecItemRefundin interfaceFiscalPrinterInterface- Parameters:
request- Output request object returned by validation method that contains all parameters to be used by PrintRecItemRefund.- Throws:
jpos.JposException- If an error occurs.
-
printRecItemRefundVoid
public PrintRecItemRefundVoid printRecItemRefundVoid(String description, long amount, int quantity, int vatInfo, long unitAmount, String unitName) throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterfaceValidation part of PrintRecItemRefundVoid method. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- PrinterState is PS_FISCAL_RECEIPT,
- CapFiscalReceiptType is false or FiscalReceiptType is RT_SALES, RT_SERVICE or RT_REFUND,
- amount, quantity and price are ≥ 0,
- description and unitName are not null and do not contain the reserved word, if any.
- State is not S_BUSY,
- CapCoverSensor is false or CoverOpen is false,
- the empty paper sensors of the journal and the station specified by FiscalReceiptStation are not present or signal paper present.
- Specified by:
printRecItemRefundVoidin interfaceFiscalPrinterInterface- Parameters:
description- Text describing the item sold.amount- Price of the line item.quantity- Number of items. If zero, a single item is assumed.vatInfo- VAT rate identifier or amount.unitAmount- Price of each item.unitName- Name of the unit.- Returns:
- PrintRecItemRefundVoid object for use in final part.
- Throws:
jpos.JposException- If an error occurs.
-
printRecItemRefundVoid
Description copied from interface:FiscalPrinterInterfaceFinal part of PrintRecItemRefundVoid method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a PrintRecItemRefundVoid object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.
In case of asynchronous processing, the following additional checks have been made before as well:- CapCoverSensor is false or CoverOpen is false,
- the empty paper sensors of the journal and the station specified by FiscalReceiptStation are not present or signal paper present.
- Specified by:
printRecItemRefundVoidin interfaceFiscalPrinterInterface- Parameters:
request- Output request object returned by validation method that contains all parameters to be used by PrintRecItemRefundVoid.- Throws:
jpos.JposException- If an error occurs.
-
printRecMessage
Description copied from interface:FiscalPrinterInterfaceValidation part of PrintRecMessage method. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapAdditionalLines is true,
- PrinterState is PS_FISCAL_RECEIPT,
- CapFiscalReceiptType is false or FiscalReceiptType is RT_SALES, RT_SERVICE, RT_SIMPLE_INVOICE or RT_REFUND,
- amount is ≥ 0,
- description is not null and do not contain the reserved word, if any.
- State is not S_BUSY,
- CapCoverSensor is false or CoverOpen is false,
- the empty paper sensors of the journal and the station specified by FiscalReceiptStation are not present or signal paper present,
- description in not longer than MessageLength property specifies.
- Specified by:
printRecMessagein interfaceFiscalPrinterInterface- Parameters:
message- Text message to print.- Returns:
- PrintRecMessage object for use in final part.
- Throws:
jpos.JposException- If an error occurs.
-
printRecMessage
Description copied from interface:FiscalPrinterInterfaceFinal part of PrintRecMessage method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a PrintRecMessage object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.
In case of asynchronous processing, the following additional checks have been made before as well:- CapCoverSensor is false or CoverOpen is false,
- the empty paper sensors of the journal and the station specified by FiscalReceiptStation are not present or signal paper present.
- Specified by:
printRecMessagein interfaceFiscalPrinterInterface- Parameters:
request- Output request object returned by validation method that contains all parameters to be used by PrintRecMessage.- Throws:
jpos.JposException- If an error occurs.
-
printRecNotPaid
Description copied from interface:FiscalPrinterInterfaceValidation part of PrintRecNotPaid method. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapReceiptNotPaid is true,
- PrinterState is PS_FISCAL_RECEIPT or PS_FISCAL_RECEIPT_TOTAL,
- CapFiscalReceiptType is false or FiscalReceiptType is RT_SALES, RT_SERVICE, RT_SIMPLE_INVOICE or RT_REFUND,
- amount is > 0,
- description is not null and does not contain the reserved word, if any.
- State is not S_BUSY,
- CapCoverSensor is false or CoverOpen is false,
- the empty paper sensors of the journal and the station specified by FiscalReceiptStation are not present or signal paper present.
- Specified by:
printRecNotPaidin interfaceFiscalPrinterInterface- Parameters:
description- Text describing the not paid amount.amount- Amount not paid.- Returns:
- PrintRecNotPaid object for use in final part.
- Throws:
jpos.JposException- If an error occurs.
-
printRecNotPaid
Description copied from interface:FiscalPrinterInterfaceFinal part of PrintRecNotPaid method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a PrintRecNotPaid object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.
In case of asynchronous processing, the following additional checks have been made before as well:- CapCoverSensor is false or CoverOpen is false,
- the empty paper sensors of the journal and the station specified by FiscalReceiptStation are not present or signal paper present.
The default implementation should be called within derived methods to ensure that the property PrinterState is updated as expected.- Specified by:
printRecNotPaidin interfaceFiscalPrinterInterface- Parameters:
request- Output request object returned by validation method that contains all parameters to be used by PrintRecNotPaid.- Throws:
jpos.JposException- If an error occurs.
-
printRecPackageAdjustment
@Deprecated public PrintRecPackageAdjustment printRecPackageAdjustment(int adjustmentType, String description, String vatAdjustment) throws jpos.JposExceptionDeprecated.Description copied from interface:FiscalPrinterInterfaceValidation part of PrintRecPackageAdjustment method. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapPackageAdjustment is true,
- PrinterState is PS_FISCAL_RECEIPT,
- CapFiscalReceiptType is false or FiscalReceiptType is RT_SALES, RT_SERVICE, RT_SIMPLE_INVOICE or RT_REFUND,
- depending on the value of AllowItemAdjustmentTypesInPackageAdjustment of the FiscalPrinterService object bound to the device implementation, adjustmentType is one of FPTR_AT_DISCOUNT and FPTR_AT_SURCHARGE, or one of AT_PERCENTAGE_DISCOUNT, AT_PERCENTAGE_SURCHARGE, AT_COUPON_PERCENTAGE_DISCOUNT, AT_AMOUNT_DISCOUNT, AT_AMOUNT_SURCHARGE and AT_COUPON_AMOUNT_DISCOUNT,
- description is not null and does not contain the reserved word, if any,
- vatAdjustment is not null and consists of no more than NumVatRates value pairs, each consisting of two values: An integer (the vat id) and a currency value (decimal number with maximum 4 decimals,
- Each vat id occurs only once within vatAdjustment.
- State is not S_BUSY,
- CapCoverSensor is false or CoverOpen is false,
- the empty paper sensors of the journal and the station specified by FiscalReceiptStation are not present or signal paper present.
The implementation should set property PreLine to an empty string. Even if the UPOS specification tells that this shall be done after the command has been executed, this should be done here because the contents of this property is buffered in the PrePostOutputRequest and the application should have the opportunity to set this property for further print requests after a print request has been enqueued for asynchronous processing.
For synchronous processing, this difference should not be relevant. However, keep in mind that PreLine must be reset to an empty string at least at the end of the final part of PrintRecPackageAdjustment.
This method has been replaced by the method of the same name with additional parameter parsedAdjustments and has been marked as deprecated.- Specified by:
printRecPackageAdjustmentin interfaceFiscalPrinterInterface- Parameters:
adjustmentType- Type of adjustment.description- Text describing the adjustment.vatAdjustment- String containing a list of adjustment(s) to be voided for different VAT(s). See UPOS method PrintRecPackageAdjustment.- Returns:
- PrintRecPackageAdjustment object for use in final part.
- Throws:
jpos.JposException- If an error occurs.
-
printRecPackageAdjustment
public PrintRecPackageAdjustment printRecPackageAdjustment(int adjustmentType, String description, String vatAdjustment, Map<Integer,Number> parsedAdjustments) throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterfaceValidation part of PrintRecPackageAdjustment method. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapPackageAdjustment is true,
- PrinterState is PS_FISCAL_RECEIPT,
- CapFiscalReceiptType is false or FiscalReceiptType is RT_SALES, RT_SERVICE, RT_SIMPLE_INVOICE or RT_REFUND,
- depending on the value of AllowItemAdjustmentTypesInPackageAdjustment of the FiscalPrinterService object bound to the device implementation, adjustmentType is one of FPTR_AT_DISCOUNT and FPTR_AT_SURCHARGE, or one of AT_PERCENTAGE_DISCOUNT, AT_PERCENTAGE_SURCHARGE, AT_COUPON_PERCENTAGE_DISCOUNT, AT_AMOUNT_DISCOUNT, AT_AMOUNT_SURCHARGE and AT_COUPON_AMOUNT_DISCOUNT,
- description is not null and does not contain the reserved word, if any,
- vatAdjustment is not null and consists of no more than NumVatRates value pairs, each consisting of two values: An integer (the vat id) and a currency value (decimal number with maximum 4 decimals,
- Each vat id occurs only once within vatAdjustment.
- State is not S_BUSY,
- CapCoverSensor is false or CoverOpen is false,
- the empty paper sensors of the journal and the station specified by FiscalReceiptStation are not present or signal paper present.
The implementation should set property PreLine to an empty string. Even if the UPOS specification tells that this shall be done after the command has been executed, this should be done here because the contents of this property is buffered in the PrePostOutputRequest and the application should have the opportunity to set this property for further print requests after a print request has been enqueued for asynchronous processing.
For synchronous processing, this difference should not be relevant. However, keep in mind that PreLine must be reset to an empty string at least at the end of the final part of PrintRecPackageAdjustment.- Specified by:
printRecPackageAdjustmentin interfaceFiscalPrinterInterface- Parameters:
adjustmentType- Type of adjustment.description- Text describing the adjustment.vatAdjustment- String containing a list of adjustment(s) to be voided for different VAT(s). See UPOS method PrintRecPackageAdjustment.parsedAdjustments- Map containing the parsed vat ids and adjustments. For each pair of vat id and adjustment amount, it contains the adjustment amount with the corresponding vat id as the key. A percentage amount will be stored in a Number instance of type Integer, a fixed amount in a Number instance of type Long.- Returns:
- PrintRecPackageAdjustment object for use in final part.
- Throws:
jpos.JposException- If an error occurs.
-
printRecPackageAdjustment
Description copied from interface:FiscalPrinterInterfaceFinal part of PrintRecPackageAdjustment method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a PrintRecPackageAdjustment object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.
In case of asynchronous processing, the following additional checks have been made before as well:- CapCoverSensor is false or CoverOpen is false,
- the empty paper sensors of the journal and the station specified by FiscalReceiptStation are not present or signal paper present.
- Specified by:
printRecPackageAdjustmentin interfaceFiscalPrinterInterface- Parameters:
request- Output request object returned by validation method that contains all parameters to be used by PrintRecPackageAdjustment.- Throws:
jpos.JposException- If an error occurs.
-
printRecPackageAdjustVoid
@Deprecated public PrintRecPackageAdjustVoid printRecPackageAdjustVoid(int adjustmentType, String vatAdjustment) throws jpos.JposExceptionDeprecated.Description copied from interface:FiscalPrinterInterfaceValidation part of PrintRecPackageAdjustVoid method. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapPackageAdjustment is true,
- PrinterState is PS_FISCAL_RECEIPT,
- CapFiscalReceiptType is false or FiscalReceiptType is RT_SALES, RT_SERVICE, RT_SIMPLE_INVOICE or RT_REFUND,
- depending on the value of AllowItemAdjustmentTypesInPackageAdjustment of the FiscalPrinterService object bound to the device implementation, adjustmentType is one of FPTR_AT_DISCOUNT and FPTR_AT_SURCHARGE, or one of AT_PERCENTAGE_DISCOUNT, AT_PERCENTAGE_SURCHARGE, AT_COUPON_PERCENTAGE_DISCOUNT, AT_AMOUNT_DISCOUNT, AT_AMOUNT_SURCHARGE and AT_COUPON_AMOUNT_DISCOUNT,
- vatAdjustment is not null and consists of no more than NumVatRates value pairs, each consisting of two values: An integer (the vat id) and a currency value (decimal number with maximum 4 decimals,
- Each vat id occurs only once within vatAdjustment.
- State is not S_BUSY,
- CapCoverSensor is false or CoverOpen is false,
- the empty paper sensors of the journal and the station specified by FiscalReceiptStation are not present or signal paper present.
The implementation should sets property PreLine to an empty string. Even if the UPOS specification tells that this shall be done after the command has been executed, this should be done here because the contents of this properties is buffered in the PrePostOutputRequest and the application should have the opportunity to set this property for further print requests after a print request has been enqueued for asynchronous processing.
For synchronous processing, this difference should not be relevant. However, keep in mind that PreLine must be reset to an empty string at least at the end of the final part of PrintRecPackageAdjustVoid.
This method has been replaced by the method of the same name with additional parameter parsedAdjustments and has been marked as deprecated.- Specified by:
printRecPackageAdjustVoidin interfaceFiscalPrinterInterface- Parameters:
adjustmentType- Type of adjustment.vatAdjustment- String containing a list of adjustment(s) to be voided for different VAT(s). See UPOS method PrintRecPackageAdjustVoid.- Returns:
- PrintRecPackageAdjustVoid object for use in final part.
- Throws:
jpos.JposException- If an error occurs.
-
printRecPackageAdjustVoid
public PrintRecPackageAdjustVoid printRecPackageAdjustVoid(int adjustmentType, String vatAdjustment, Map<Integer,Number> parsedAdjustments) throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterfaceValidation part of PrintRecPackageAdjustVoid method. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapPackageAdjustment is true,
- PrinterState is PS_FISCAL_RECEIPT,
- CapFiscalReceiptType is false or FiscalReceiptType is RT_SALES, RT_SERVICE, RT_SIMPLE_INVOICE or RT_REFUND,
- depending on the value of AllowItemAdjustmentTypesInPackageAdjustment of the FiscalPrinterService object bound to the device implementation, adjustmentType is one of FPTR_AT_DISCOUNT and FPTR_AT_SURCHARGE, or one of AT_PERCENTAGE_DISCOUNT, AT_PERCENTAGE_SURCHARGE, AT_COUPON_PERCENTAGE_DISCOUNT, AT_AMOUNT_DISCOUNT, AT_AMOUNT_SURCHARGE and AT_COUPON_AMOUNT_DISCOUNT,
- vatAdjustment is not null and consists of no more than NumVatRates value pairs, each consisting of two values: An integer (the vat id) and a currency value (decimal number with maximum 4 decimals,
- Each vat id occurs only once within vatAdjustment.
- State is not S_BUSY,
- CapCoverSensor is false or CoverOpen is false,
- the empty paper sensors of the journal and the station specified by FiscalReceiptStation are not present or signal paper present.
The implementation should sets property PreLine to an empty string. Even if the UPOS specification tells that this shall be done after the command has been executed, this should be done here because the contents of this properties is buffered in the PrePostOutputRequest and the application should have the opportunity to set this property for further print requests after a print request has been enqueued for asynchronous processing.
For synchronous processing, this difference should not be relevant. However, keep in mind that PreLine must be reset to an empty string at least at the end of the final part of PrintRecPackageAdjustVoid.- Specified by:
printRecPackageAdjustVoidin interfaceFiscalPrinterInterface- Parameters:
adjustmentType- Type of adjustment.vatAdjustment- String containing a list of adjustment(s) to be voided for different VAT(s). See UPOS method PrintRecPackageAdjustVoid.parsedAdjustments- Map containing the parsed vat ids and adjustments. For each pair of vat id and adjustment amount, it contains the adjustment amount with the corresponding vat id as the key.- Returns:
- PrintRecPackageAdjustVoid object for use in final part.
- Throws:
jpos.JposException- If an error occurs.
-
printRecPackageAdjustVoid
Description copied from interface:FiscalPrinterInterfaceFinal part of PrintRecPackageAdjustVoid method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a PrintRecPackageAdjustVoid object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.
In case of asynchronous processing, the following additional checks have been made before as well:- CapCoverSensor is false or CoverOpen is false,
- the empty paper sensors of the journal and the station specified by FiscalReceiptStation are not present or signal paper present.
- Specified by:
printRecPackageAdjustVoidin interfaceFiscalPrinterInterface- Parameters:
request- Output request object returned by validation method that contains all parameters to be used by PrintRecPackageAdjustVoid.- Throws:
jpos.JposException- If an error occurs.
-
printRecRefund
public PrintRecRefund printRecRefund(String description, long amount, int vatInfo) throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterfaceValidation part of PrintRecRefund method. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- PrinterState is PS_FISCAL_RECEIPT,
- CapFiscalReceiptType is false or FiscalReceiptType is RT_SALES, RT_SERVICE or RT_REFUND,
- amount is ≥ 0,
- description is not null and do not contain the reserved word, if any.
- State is not S_BUSY,
- CapCoverSensor is false or CoverOpen is false,
- the empty paper sensors of the journal and the station specified by FiscalReceiptStation are not present or signal paper present.
For synchronous processing, this difference should not be relevant. However, keep in mind that PreLine must be reset to an empty string at least at the end of the final part of PrintRecRefund.- Specified by:
printRecRefundin interfaceFiscalPrinterInterface- Parameters:
description- Text describing the item sold.amount- Price of the line item.vatInfo- VAT rate identifier or amount.- Returns:
- PrintRecRefund object for use in final part.
- Throws:
jpos.JposException- If an error occurs.
-
printRecRefund
Description copied from interface:FiscalPrinterInterfaceFinal part of PrintRecRefund method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a PrintRecRefund object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.
In case of asynchronous processing, the following additional checks have been made before as well:- CapCoverSensor is false or CoverOpen is false,
- the empty paper sensors of the journal and the station specified by FiscalReceiptStation are not present or signal paper present.
- Specified by:
printRecRefundin interfaceFiscalPrinterInterface- Parameters:
request- Output request object returned by validation method that contains all parameters to be used by PrintRecRefund.- Throws:
jpos.JposException- If an error occurs.
-
printRecRefundVoid
public PrintRecRefundVoid printRecRefundVoid(String description, long amount, int vatInfo) throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterfaceValidation part of PrintRecRefundVoid method. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- PrinterState is PS_FISCAL_RECEIPT,
- CapFiscalReceiptType is false or FiscalReceiptType is RT_SALES, RT_SERVICE or RT_REFUND,
- amount is ≥ 0,
- description is not null and do not contain the reserved word, if any.
- State is not S_BUSY,
- CapCoverSensor is false or CoverOpen is false,
- the empty paper sensors of the journal and the station specified by FiscalReceiptStation are not present or signal paper present.
- Specified by:
printRecRefundVoidin interfaceFiscalPrinterInterface- Parameters:
description- Text describing the item sold.amount- Price of the line item.vatInfo- VAT rate identifier or amount.- Returns:
- PrintRecRefundVoid object for use in final part.
- Throws:
jpos.JposException- If an error occurs.
-
printRecRefundVoid
Description copied from interface:FiscalPrinterInterfaceFinal part of PrintRecRefundVoid method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a PrintRecRefundVoid object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.
In case of asynchronous processing, the following additional checks have been made before as well:- CapCoverSensor is false or CoverOpen is false,
- the empty paper sensors of the journal and the station specified by FiscalReceiptStation are not present or signal paper present.
- Specified by:
printRecRefundVoidin interfaceFiscalPrinterInterface- Parameters:
request- Output request object returned by validation method that contains all parameters to be used by PrintRecRefundVoid.- Throws:
jpos.JposException- If an error occurs.
-
printRecSubtotal
Description copied from interface:FiscalPrinterInterfaceValidation part of PrintRecSubtotal method. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- PrinterState is PS_FISCAL_RECEIPT,
- CapFiscalReceiptType is false or FiscalReceiptType is RT_SALES, RT_SERVICE, RT_SIMPLE_INVOICE or RT_REFUND,
- amount is ≥ 0.
- State is not S_BUSY,
- CapCoverSensor is false or CoverOpen is false,
- the empty paper sensors of the journal and the station specified by FiscalReceiptStation are not present or signal paper present.
For synchronous processing, this difference should not be relevant. However, keep in mind that PostLine must be reset to an empty string at least at the end of the final part of PrintRecSubtotal.- Specified by:
printRecSubtotalin interfaceFiscalPrinterInterface- Parameters:
amount- Price of the line item.- Returns:
- PrintRecSubtotal object for use in final part.
- Throws:
jpos.JposException- If an error occurs.
-
printRecSubtotal
Description copied from interface:FiscalPrinterInterfaceFinal part of PrintRecSubtotal method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a PrintRecSubtotal object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.
In case of asynchronous processing, the following additional checks have been made before as well:- CapCoverSensor is false or CoverOpen is false,
- the empty paper sensors of the journal and the station specified by FiscalReceiptStation are not present or signal paper present.
- Specified by:
printRecSubtotalin interfaceFiscalPrinterInterface- Parameters:
request- Output request object returned by validation method that contains all parameters to be used by PrintRecSubtotal.- Throws:
jpos.JposException- If an error occurs.
-
printRecSubtotalAdjustment
public PrintRecSubtotalAdjustment printRecSubtotalAdjustment(int adjustmentType, String description, long amount) throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterfaceValidation part of PrintRecSubtotalAdjustment method. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- PrinterState is PS_FISCAL_RECEIPT,
- CapFiscalReceiptType is false or FiscalReceiptType is RT_SALES, RT_SERVICE, RT_SIMPLE_INVOICE or RT_REFUND,
- adjustmentType is one of AT_AMOUNT_DISCOUNT, AT_AMOUNT_SURCHARGE, AT_PERCENTAGE_DISCOUNT, AT_PERCENTAGE_SURCHARGE, AT_COUPON_AMOUNT_DISCOUNT or AT_COUPON_PERCENTAGE_DISCOUNT,
- CapSubAmountAdjustment is true or adjustmentType is neither AT_AMOUNT_DISCOUNT nor AT_AMOUNT_SURCHARGE or AT_COUPON_AMOUNT_DISCOUNT,
- CapSubPercentAdjustment is true or adjustmentType is neither AT_PERCENTAGE_DISCOUNT nor AT_PERCENTAGE_SURCHARGE or AT_COUPON_PERCENTAGE_DISCOUNT,
- CapPositiveSubtotalAdjustment is true or adjustmentType is neither AT_AMOUNT_SURCHARGE nor AT_PERCENTAGE_SURCHARGE,
- description is not null and does not contain the reserver word, if any.
- amount is ≥ 0.
- State is not S_BUSY,
- CapCoverSensor is false or CoverOpen is false,
- the empty paper sensors of the journal and the station specified by FiscalReceiptStation are not present or signal paper present.
For synchronous processing, this difference should not be relevant. However, keep in mind that PreLine must be reset to an empty string at least at the end of the final part of PrintRecSubtotalAdjustment.- Specified by:
printRecSubtotalAdjustmentin interfaceFiscalPrinterInterface- Parameters:
adjustmentType- Type of adjustment.description- Text describing the discount or surcharge.amount- Amount or percent amount (in case of percent adjustment).- Returns:
- PrintRecSubtotalAdjustment object for use in final part.
- Throws:
jpos.JposException- If an error occurs.
-
printRecSubtotalAdjustment
public void printRecSubtotalAdjustment(PrintRecSubtotalAdjustment request) throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterfaceFinal part of PrintRecSubtotalAdjustment method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a PrintRecSubtotalAdjustment object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.
In case of asynchronous processing, the following additional checks have been made before as well:- CapCoverSensor is false or CoverOpen is false,
- the empty paper sensors of the journal and the station specified by FiscalReceiptStation are not present or signal paper present.
- Specified by:
printRecSubtotalAdjustmentin interfaceFiscalPrinterInterface- Parameters:
request- Output request object returned by validation method that contains all parameters to be used by PrintRecSubtotalAdjustment.- Throws:
jpos.JposException- If an error occurs.
-
printRecSubtotalAdjustVoid
public PrintRecSubtotalAdjustVoid printRecSubtotalAdjustVoid(int adjustmentType, long amount) throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterfaceValidation part of PrintRecSubtotalAdjustVoid method. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- PrinterState is PS_FISCAL_RECEIPT,
- CapFiscalReceiptType is false or FiscalReceiptType is RT_SALES, RT_SERVICE, RT_SIMPLE_INVOICE or RT_REFUND,
- adjustmentType is one of AT_AMOUNT_DISCOUNT, AT_AMOUNT_SURCHARGE, AT_PERCENTAGE_DISCOUNT, AT_PERCENTAGE_SURCHARGE, AT_COUPON_AMOUNT_DISCOUNT or AT_COUPON_PERCENTAGE_DISCOUNT,
- CapSubAmountAdjustment is true or adjustmentType is neither AT_AMOUNT_DISCOUNT nor AT_AMOUNT_SURCHARGE or AT_COUPON_AMOUNT_DISCOUNT,
- CapSubPercentAdjustment is true or adjustmentType is neither AT_PERCENTAGE_DISCOUNT nor AT_PERCENTAGE_SURCHARGE or AT_COUPON_PERCENTAGE_DISCOUNT,
- CapPositiveSubtotalAdjustment is true or adjustmentType is neither AT_AMOUNT_SURCHARGE nor AT_PERCENTAGE_SURCHARGE,
- amount is ≥ 0.
- State is not S_BUSY,
- CapCoverSensor is false or CoverOpen is false,
- the empty paper sensors of the journal and the station specified by FiscalReceiptStation are not present or signal paper present.
For synchronous processing, this difference should not be relevant. However, keep in mind that PreLine must be reset to an empty string at least at the end of the final part of PrintRecSubtotalAdjustVoid.- Specified by:
printRecSubtotalAdjustVoidin interfaceFiscalPrinterInterface- Parameters:
adjustmentType- Type of adjustment.amount- Amount or percent amount (in case of percent adjustment).- Returns:
- PrintRecSubtotalAdjustVoid object for use in final part.
- Throws:
jpos.JposException- If an error occurs.
-
printRecSubtotalAdjustVoid
public void printRecSubtotalAdjustVoid(PrintRecSubtotalAdjustVoid request) throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterfaceFinal part of PrintRecSubtotalAdjustVoid method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a PrintRecSubtotalAdjustVoid object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.
In case of asynchronous processing, the following additional checks have been made before as well:- CapCoverSensor is false or CoverOpen is false,
- the empty paper sensors of the journal and the station specified by FiscalReceiptStation are not present or signal paper present.
- Specified by:
printRecSubtotalAdjustVoidin interfaceFiscalPrinterInterface- Parameters:
request- Output request object returned by validation method that contains all parameters to be used by PrintRecSubtotalAdjustVoid.- Throws:
jpos.JposException- If an error occurs.
-
printRecTaxID
Description copied from interface:FiscalPrinterInterfaceValidation part of PrintRecTaxID method. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- PrinterState is PS_FISCAL_RECEIPT_ENDING,
- CapFiscalReceiptType is false or FiscalReceiptType is RT_SALES, RT_SERVICE, RT_SIMPLE_INVOICE or RT_REFUND,
- State is not S_BUSY,
- CapCoverSensor is false or CoverOpen is false,
- the empty paper sensors of the journal and the station specified by FiscalReceiptStation are not present or signal paper present.
- Specified by:
printRecTaxIDin interfaceFiscalPrinterInterface- Parameters:
taxId- Customer identification with identification characters and tax number.- Returns:
- PrintRecTaxID object for use in final part.
- Throws:
jpos.JposException- If an error occurs.
-
printRecTaxID
Description copied from interface:FiscalPrinterInterfaceFinal part of PrintRecTaxID method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a PrintRecTaxID object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.
In case of asynchronous processing, the following additional checks have been made before as well:- CapCoverSensor is false or CoverOpen is false,
- the empty paper sensors of the journal and the station specified by FiscalReceiptStation are not present or signal paper present.
- Specified by:
printRecTaxIDin interfaceFiscalPrinterInterface- Parameters:
request- Output request object returned by validation method that contains all parameters to be used by PrintRecTaxID.- Throws:
jpos.JposException- If an error occurs.
-
printRecTotal
public PrintRecTotal printRecTotal(long total, long payment, String description) throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterfaceValidation part of PrintRecTotal method. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- PrinterState is PS_FISCAL_RECEIPT or PS_FISCAL_RECEIPT_TOTAL,
- CapFiscalReceiptType is false or FiscalReceiptType is RT_SALES, RT_SERVICE, RT_SIMPLE_INVOICE or RT_REFUND,
- total is ≥ 0,
- payment is ≥ 0.
In addition, If AsyncMode is false:- State is not S_BUSY,
- CapCoverSensor is false or CoverOpen is false,
- the empty paper sensors of the journal and the station specified by FiscalReceiptStation are not present or signal paper present.
For synchronous processing, this difference should not be relevant. However, keep in mind that PostLine must be reset to an empty string at least at the end of the final part of PrintRecTotal.- Specified by:
printRecTotalin interfaceFiscalPrinterInterface- Parameters:
total- Application computed receipt total.payment- Amount of payment tendered.description- Text description of the payment or the index of a predefined payment description. See UPOS method PrintRecTotal.- Returns:
- PrintRecTotal object for use in final part.
- Throws:
jpos.JposException- If an error occurs.
-
printRecTotal
Description copied from interface:FiscalPrinterInterfaceFinal part of PrintRecTotal method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a PrintRecTotal object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.
In case of asynchronous processing, the following additional checks have been made before as well:- CapCoverSensor is false or CoverOpen is false,
- the empty paper sensors of the journal and the station specified by FiscalReceiptStation are not present or signal paper present.
- Specified by:
printRecTotalin interfaceFiscalPrinterInterface- Parameters:
request- Output request object returned by validation method that contains all parameters to be used by PrintRecTotal.- Throws:
jpos.JposException- If an error occurs.
-
printRecVoid
Description copied from interface:FiscalPrinterInterfaceValidation part of PrintRecVoid method. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- PrinterState is PS_FISCAL_RECEIPT or PS_FISCAL_RECEIPT_TOTAL,
- CapFiscalReceiptType is false or FiscalReceiptType is RT_SALES, RT_SERVICE, RT_SIMPLE_INVOICE or RT_REFUND,
- description is not null and does not contain the reserved word, if any.
- State is not S_BUSY,
- CapCoverSensor is false or CoverOpen is false,
- the empty paper sensors of the journal and the station specified by FiscalReceiptStation are not present or signal paper present.
- Specified by:
printRecVoidin interfaceFiscalPrinterInterface- Parameters:
description- Text describing the void.- Returns:
- PrintRecVoid object for use in final part.
- Throws:
jpos.JposException- If an error occurs.
-
printRecVoid
Description copied from interface:FiscalPrinterInterfaceFinal part of PrintRecVoid method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a PrintRecVoid object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.
In case of asynchronous processing, the following additional checks have been made before as well:- CapCoverSensor is false or CoverOpen is false,
- the empty paper sensors of the journal and the station specified by FiscalReceiptStation are not present or signal paper present.
The default implementation should be called within derived methods to ensure that the property PrinterState is updated as expected.- Specified by:
printRecVoidin interfaceFiscalPrinterInterface- Parameters:
request- Output request object returned by validation method that contains all parameters to be used by PrintRecVoid.- Throws:
jpos.JposException- If an error occurs.
-
printRecVoidItem
public PrintRecVoidItem printRecVoidItem(String description, long price, int quantity, int adjustmentType, long adjustment, int vatInfo) throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterfaceValidation part of PrintRecVoidItem method. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- AllowDeprecatedMethods is true.
- Device is enabled,
- PrinterState is PS_FISCAL_RECEIPT,
- CapFiscalReceiptType is false or FiscalReceiptType is RT_SALES, RT_SERVICE, RT_SIMPLE_INVOICE or RT_REFUND,
- adjustmentType is one of AT_PERCENTAGE_DISCOUNT, AT_PERCENTAGE_SURCHARGE, AT_COUPON_PERCENTAGE_DISCOUNT, AT_AMOUNT_DISCOUNT, AT_AMOUNT_SURCHARGE or AT_COUPON_AMOUNT_DISCOUNT,
- if CapAmountAdjustment is false, adjustmentType is one of AT_PERCENTAGE_DISCOUNT, AT_PERCENTAGE_SURCHARGE or AT_COUPON_PERCENTAGE_DISCOUNT,
- if CapPercentAdjustment is false, adjustmentType is one of AT_AMOUNT_DISCOUNT, AT_AMOUNT_SURCHARGE or AT_COUPON_AMOUNT_DISCOUNT,
- if CapPositiveAdjustment is false, adjustmentType is one of AT_AMOUNT_DISCOUNT, AT_COUPON_AMOUNT_DISCOUNT, AT_PERCENTAGE_DISCOUNT, AT_PERCENTAGE_SURCHARGE or AT_COUPON_PERCENTAGE_DISCOUNT,
- adjustment, quantity and price are ≥ 0,
- description is not null and does not contain the reserved word, if any.
- State is not S_BUSY,
- CapCoverSensor is false or CoverOpen is false,
- the empty paper sensors of the journal and the station specified by FiscalReceiptStation are not present or signal paper present.
For synchronous processing, this difference should not be relevant. However, keep in mind that PreLine and PostLine must be reset to an empty string at least at the end of the final part of PrintRecItem.- Specified by:
printRecVoidItemin interfaceFiscalPrinterInterface- Parameters:
description- Text describing the item sold.price- Price of the line item.quantity- Number of items. If zero, a single item is assumed.adjustmentType- Type of adjustment.adjustment- Amount of the adjustment (discount or surcharge).vatInfo- VAT rate identifier or amount.- Returns:
- PrintRecItem object for use in final part.
- Throws:
jpos.JposException- If an error occurs.
-
printRecVoidItem
Description copied from interface:FiscalPrinterInterfaceFinal part of PrintRecVoidItem method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a PrintRecVoidItem object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.
In case of asynchronous processing, the following additional checks have been made before as well:- CapCoverSensor is false or CoverOpen is false,
- the empty paper sensors of the journal and the station specified by FiscalReceiptStation are not present or signal paper present.
The default implementation should be called within derived methods to ensure that the property PrinterState is updated as expected.- Specified by:
printRecVoidItemin interfaceFiscalPrinterInterface- Parameters:
request- Output request object returned by validation method that contains all parameters to be used by PrintRecVoid.- Throws:
jpos.JposException- If an error occurs.
-