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 TypeFieldDescriptionint
UPOS property AdditionalHeader.int
Default value of ActualCurrency property.UPOS property AdditionalHeader.UPOS property AdditionalTrailer.int
UPOS property AmountDecimalPlaces.int
Default value of AmountDecimalPlaces property.boolean
UPOS property CapAdditionalHeader.boolean
UPOS property CapAdditionalLines.boolean
UPOS property CapAdditionalTrailer.boolean
UPOS property CapAmountAdjustment.boolean
UPOS property CapAmountNotPaid.boolean
UPOS property CapChangeDue.boolean
UPOS property CapCheckTotal.boolean
UPOS property CapCoverSensor.boolean
UPOS property CapDoubleWidth.boolean
UPOS property CapDuplicateReceipt.boolean
UPOS property CapEmptyReceiptIsVoidable.boolean
UPOS property CapFiscalReceiptStation.boolean
UPOS property CapFiscalReceiptType.boolean
UPOS property CapFixedOutput.boolean
UPOS property CapHasVatTable.boolean
UPOS property CapIndependentHeader.boolean
UPOS property CapItemList.boolean
UPOS property CapJrnEmptySensor.boolean
UPOS property CapJrnNearEndSensor.boolean
UPOS property CapJrnPresent.boolean
UPOS property CapMultiContractor.boolean
UPOS property CapNonFiscalMode.boolean
UPOS property CapOnlyVoidLastItem.boolean
UPOS property CapOrderAdjustmentFirst.boolean
UPOS property CapPackageAdjustment.boolean
UPOS property CapPercentAdjustment.boolean
UPOS property CapPositiveAdjustment.boolean
UPOS property CapPositiveSubtotalAdjustment.boolean
UPOS property CapPostPreLine.boolean
UPOS property CapPowerLossReport.boolean
UPOS property CapPredefinedPaymentLines.boolean
UPOS property CapReceiptNotPaid.boolean
UPOS property CapRecEmptySensor.boolean
UPOS property CapRecNearEndSensor.boolean
UPOS property CapRecPresent.boolean
UPOS property CapRemainingFiscalMemory.boolean
UPOS property CapReservedWord.boolean
UPOS property CapSetCurrency.boolean
UPOS property CapSetHeader.boolean
UPOS property CapSetPOSID.boolean
UPOS property CapSetStoreFiscalID.boolean
UPOS property CapSetTrailer.boolean
UPOS property CapSetVatTable.boolean
UPOS property CapSlpEmptySensor.boolean
UPOS property CapSlpFiscalDocument.boolean
UPOS property CapSlpFullSlip.boolean
UPOS property CapSlpNearEndSensor.boolean
UPOS property CapSlpPresent.boolean
UPOS property CapSlpValidation.boolean
UPOS property CapSubAmountAdjustment.boolean
UPOS property CapSubPercentAdjustment.boolean
UPOS property CapSubtotal.boolean
UPOS property CapTotalizerType.boolean
UPOS property CapTrainingMode.boolean
UPOS property CapValidateJournal.boolean
UPOS property CapXReport.UPOS property ChangeDue.boolean
UPOS property CheckTotal.int
UPOS property ContractorId.int
UPOS property CountryCode.int
Default value of CountryCode property.boolean
UPOS property CoverOpen.boolean
Default value of CoverOpen property.boolean
Specified whether string values representing a currency value will be stored with decimal point.int
UPOS property DateType.boolean
UPOS property DayOpened.boolean
Default value of DayOpened property.int
UPOS property DescriptionLength.boolean
UPOS property DuplicateReceipt.int
UPOS property ErrorLevel.int
UPOS property ErrorOutID.int
UPOS property ErrorState.int
UPOS property ErrorStation.UPOS property ErrorString.int
UPOS property FiscalReceiptStation.int
UPOS property FiscalReceiptType.Object to be used to wait until all asynchronous commands derived from OutputRequest have been finished.boolean
UPOS property JrnEmpty.boolean
Default value of JrnEmpty property.boolean
UPOS property JrnNearEnd.boolean
Default value of JrnNearEnd property.int
UPOS property MessageLength.int
Default value of MessageLength property.int
UPOS property MessageType.int
UPOS property NumHeaderLines.int
UPOS property NumTrailerLines.int
UPOS property NumVatRates.UPOS property PostLine.UPOS property PredefinedPaymentLines.UPOS property PreLine.int
UPOS property PrinterState.int
Default value of PrinterState property.int
UPOS property QuantityDecimalPlaces.int
Default value of QuantityDecimalPlaces property.int
UPOS property QuantityLength.int
Default value of QuantityLength property.boolean
UPOS property RecEmpty.boolean
Default value of RecEmpty property.boolean
UPOS property RecNearEnd.boolean
Default value of RecNearEnd property.int
UPOS property RemainingFiscalMemory.int
Default value of RemainingFiscalMemory property.UPOS property ReservedWord.int
UPOS property SlipSelection.boolean
UPOS property SlpEmpty.boolean
Default value of SlpEmpty property.boolean
UPOS property SlpNearEnd.boolean
Default value of SlpNearEnd property.int
UPOS property TotalizerType.boolean
UPOS property TrainingModeActive.boolean
Default 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 TypeMethodDescriptionvoid
additionalHeader(String header)
Final part of setting AdditionalHeader.void
additionalTrailer(String trailer)
Final part of setting AdditionalTrailer.void
beginFiscalDocument(int documentAmount)
Final part of BeginFiscalDocument method.void
beginFiscalReceipt(boolean printHeader)
Final part of BeginFiscalReceipt method.void
beginFixedOutput(int station, int documentType)
Final part of BeginFixedOutput method.void
beginInsertion(int timeout)
Final part of BeginInsertion method.void
beginItemList(int vatID)
Final part of BeginItemList method.void
Final part of BeginNonFiscal method.void
beginRemoval(int timeout)
Final part of BeginRemoval method.void
Final part of BeginTraining method.void
Final part of setting ChangeDue.void
checkProperties(jpos.config.JposEntry entry)
Checks jpos entries for service specific jpos property values and set corresponding service values.void
checkTotal(boolean check)
Final part of setting CheckTotal.void
Final part of ClearError method.void
Clear output processing.void
contractorId(int id)
Final part of setting ContractorId.void
dateType(int type)
Final part of setting DateType.void
duplicateReceipt(boolean yes)
Final part of setting DuplicateReceipt.void
Final part of EndFiscalDocument method.void
endFiscalReceipt(boolean printHeader)
Final part of EndFiscalReceipt method.void
Final part of EndFixedOutput method.void
Final part of EndInsertion method.void
Final part of EndItemList method.void
Final part of EndNonFiscal method.void
Final part of EndRemoval method.void
Final part of EndTraining method.void
fiscalReceiptStation(int station)
Final part of setting FiscalReceiptStation.void
fiscalReceiptType(int type)
Final part of setting FiscalReceiptType.void
getData(int dataItem, int[] optArgs, int[] data)
Default implementation for backward compatibility.void
getData(int dataItem, int[] optArgs, long[] data)
Default implementation for backward compatibility.void
Final part of GetData method.void
Final part of GetDate method.void
getTotalizer(int vatID, int optArgs, long[] data)
This is a dummy implementation that calls the deprecated version this method.void
getTotalizer(int vatID, int optArgs, String[] data)
Deprecated.void
getVatEntry(int vatID, int optArgs, int[] vatRate)
Final part of GetVatEntry method.void
Initialize properties that must be initialized whenever the device will be claimed.void
initOnEnable(boolean enable)
Initialization of properties that must be initialized during deviceEnable.boolean
Initialize properties that must be initialized whenever the device will be enabled the first time-void
Initialization of properties that must be initialized during open.void
messageType(int type)
Final part of setting MessageType.void
Final part of setting PostLine.void
Final part of setting PreLine.void
Final part of PrintDuplicateReceipt method.void
Final part of PrintFiscalDocumentLine method.printFiscalDocumentLine(String documentLine)
Validation part of PrintFiscalDocumentLine method.printFixedOutput(int documentType, int lineNumber, String data)
Validation part of PrintFixedOutput method.void
printFixedOutput(PrintFixedOutput request)
Final part of PrintFixedOutput method.printNormal(int station, String data)
Validation part of PrintNormal method.void
printNormal(PrintNormal request)
Final part of PrintNormal method.void
printPeriodicTotalsReport(String date1, String date2)
Final part of PrintPeriodicTotalsReport method.void
Final part of PrintPowerLossReport method.printRecCash(long amount)
Validation part of PrintRecCash method.void
printRecCash(PrintRecCash request)
Final part of PrintRecCash method.void
printRecItem(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.void
printRecItemAdjustment(PrintRecItemAdjustment request)
Final part of PrintRecItemAdjustment method.printRecItemAdjustmentVoid(int adjustmentType, String description, long amount, int vatInfo)
Validation part of PrintRecItemAdjustmentVoid method.void
Final part of PrintRecItemAdjustmentVoid method.void
printRecItemFuel(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.void
printRecItemFuelVoid(PrintRecItemFuelVoid request)
Final part of PrintRecItemFuelVoid method.printRecItemFuelVoid(String description, long price, int vatInfo, long specialTax)
Validation part of PrintRecItemFuelVoid method.void
printRecItemRefund(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.void
printRecItemRefundVoid(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.void
printRecItemVoid(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.void
printRecMessage(PrintRecMessage request)
Final part of PrintRecMessage method.printRecMessage(String message)
Validation part of PrintRecMessage method.void
printRecNotPaid(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.void
Final part of PrintRecPackageAdjustment method.printRecPackageAdjustVoid(int adjustmentType, String vatAdjustment)
Deprecated.printRecPackageAdjustVoid(int adjustmentType, String vatAdjustment, Map<Integer,Number> parsedAdjustments)
Validation part of PrintRecPackageAdjustVoid method.void
Final part of PrintRecPackageAdjustVoid method.void
printRecRefund(PrintRecRefund request)
Final part of PrintRecRefund method.printRecRefund(String description, long amount, int vatInfo)
Validation part of PrintRecRefund method.void
printRecRefundVoid(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.void
printRecSubtotal(PrintRecSubtotal request)
Final part of PrintRecSubtotal method.printRecSubtotalAdjustment(int adjustmentType, String description, long amount)
Validation part of PrintRecSubtotalAdjustment method.void
Final part of PrintRecSubtotalAdjustment method.printRecSubtotalAdjustVoid(int adjustmentType, long amount)
Validation part of PrintRecSubtotalAdjustVoid method.void
Final part of PrintRecSubtotalAdjustVoid method.void
printRecTaxID(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.void
printRecTotal(PrintRecTotal request)
Final part of PrintRecTotal method.void
printRecVoid(PrintRecVoid request)
Final part of PrintRecVoid method.printRecVoid(String description)
Validation part of PrintRecVoid method.void
printRecVoidItem(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.void
printReport(int reportType, String startNum, String endNum)
Final part of PrintReport method.void
Final part of PrintXReport method.void
Final part of PrintZReport method.void
Final part of ResetPrinter method.void
setCurrency(int newCurrency)
Final part of SetCurrency method.void
Final part of SetDate method.void
setHeaderLine(int lineNumber, String text, boolean doubleWidth)
Final part of SetHeaderLine method.void
Final part of SetPOSID method.void
setStoreFiscalID(String ID)
Final part of SetStoreFiscalID method.void
setTrailerLine(int lineNumber, String text, boolean doubleWidth)
Final part of SetTrailerLine method.void
Final part of SetVatTable method.void
setVatValue(int vatID, int optArgs, int vatValue)
Final part of SetVatValue method.void
setVatValue(int vatID, long vatValue)
Final part of SetVatValue method.void
slipSelection(int type)
Final part of setting SlipSelection.void
totalizerType(int type)
Final part of setting TotalizerType.void
verifyItem(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, waitWaiter
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:JposCommonProperties
Checks jpos entries for service specific jpos property values and set corresponding service values.- Overrides:
checkProperties
in 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:JposCommonProperties
Initialization of properties that must be initialized during open.- Overrides:
initOnOpen
in classJposCommonProperties
-
initOnFirstEnable
public boolean initOnFirstEnable()Description copied from class:JposCommonProperties
Initialize properties that must be initialized whenever the device will be enabled the first time-- Overrides:
initOnFirstEnable
in classJposCommonProperties
- Returns:
- Returns true in case of first enable.
-
initOnClaim
public void initOnClaim()Description copied from class:JposCommonProperties
Initialize properties that must be initialized whenever the device will be claimed.- Overrides:
initOnClaim
in classJposCommonProperties
-
initOnEnable
public void initOnEnable(boolean enable)Description copied from class:JposCommonProperties
Initialization of properties that must be initialized during deviceEnable.- Overrides:
initOnEnable
in classJposCommonProperties
- Parameters:
enable
- True: initialize properties, false: do nothing
-
clearOutput
public void clearOutput() throws jpos.JposExceptionDescription copied from interface:JposBaseInterface
Clear 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:
clearOutput
in interfaceJposBaseInterface
- Overrides:
clearOutput
in classJposCommonProperties
- Throws:
jpos.JposException
- See UPOS specification, method ClearOutput
-
additionalHeader
Description copied from interface:FiscalPrinterInterface
Final 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:
additionalHeader
in 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:FiscalPrinterInterface
Final 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:
additionalTrailer
in 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:FiscalPrinterInterface
Final 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:
changeDue
in 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:FiscalPrinterInterface
Final 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:
checkTotal
in 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:FiscalPrinterInterface
Final 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:
contractorId
in 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:FiscalPrinterInterface
Final 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:
dateType
in 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:FiscalPrinterInterface
Final 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:
duplicateReceipt
in 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:FiscalPrinterInterface
Final 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:
fiscalReceiptStation
in 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:FiscalPrinterInterface
Final 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:
fiscalReceiptType
in 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:FiscalPrinterInterface
Final 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:
messageType
in 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:FiscalPrinterInterface
Final 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:
postLine
in interfaceFiscalPrinterInterface
- Parameters:
text
- Text to be printed after next item line.- Throws:
jpos.JposException
- If an error occurs.
-
preLine
Description copied from interface:FiscalPrinterInterface
Final 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:
preLine
in 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:FiscalPrinterInterface
Final 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:
slipSelection
in 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:FiscalPrinterInterface
Final 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:
totalizerType
in 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:FiscalPrinterInterface
Final 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:
beginFiscalDocument
in 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:FiscalPrinterInterface
Final 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:
beginFiscalReceipt
in 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:FiscalPrinterInterface
Final 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:
beginFixedOutput
in 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:FiscalPrinterInterface
Final 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:
beginInsertion
in 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:FiscalPrinterInterface
Final 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:
beginItemList
in interfaceFiscalPrinterInterface
- Parameters:
vatID
- Vat identifier for reporting.- Throws:
jpos.JposException
- If an error occurs.
-
beginNonFiscal
public void beginNonFiscal() throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterface
Final 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:
beginNonFiscal
in interfaceFiscalPrinterInterface
- Throws:
jpos.JposException
- If an error occurs.
-
beginRemoval
public void beginRemoval(int timeout) throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterface
Final 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:
beginRemoval
in 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:FiscalPrinterInterface
Final 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:
beginTraining
in interfaceFiscalPrinterInterface
- Throws:
jpos.JposException
- If an error occurs.
-
clearError
public void clearError() throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterface
Final 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:
clearError
in interfaceFiscalPrinterInterface
- Throws:
jpos.JposException
- If an error occurs.
-
endFiscalDocument
public void endFiscalDocument() throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterface
Final 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:
endFiscalDocument
in interfaceFiscalPrinterInterface
- Throws:
jpos.JposException
- If an error occurs.
-
endFiscalReceipt
public void endFiscalReceipt(boolean printHeader) throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterface
Final 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:
endFiscalReceipt
in 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:FiscalPrinterInterface
Final 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:
endFixedOutput
in interfaceFiscalPrinterInterface
- Throws:
jpos.JposException
- If an error occurs.
-
endInsertion
public void endInsertion() throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterface
Final 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:
endInsertion
in interfaceFiscalPrinterInterface
- Throws:
jpos.JposException
- If an error occurs.
-
endItemList
public void endItemList() throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterface
Final 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:
endItemList
in interfaceFiscalPrinterInterface
- Throws:
jpos.JposException
- If an error occurs.
-
endNonFiscal
public void endNonFiscal() throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterface
Final 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:
endNonFiscal
in interfaceFiscalPrinterInterface
- Throws:
jpos.JposException
- If an error occurs.
-
endRemoval
public void endRemoval() throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterface
Final 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:
endRemoval
in interfaceFiscalPrinterInterface
- Throws:
jpos.JposException
- If an error occurs.
-
endTraining
public void endTraining() throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterface
Final 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:
endTraining
in interfaceFiscalPrinterInterface
- Throws:
jpos.JposException
- If an error occurs.
-
getData
Description copied from interface:FiscalPrinterInterface
Final 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:
getData
in 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:
getData
in 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:
getData
in 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:FiscalPrinterInterface
Final 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:
getDate
in 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:FiscalPrinterInterface
Final 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:
getTotalizer
in 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:
getTotalizer
in 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:FiscalPrinterInterface
Final 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:
getVatEntry
in 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:FiscalPrinterInterface
Final 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:
printDuplicateReceipt
in interfaceFiscalPrinterInterface
- Throws:
jpos.JposException
- If an error occurs.
-
printPeriodicTotalsReport
Description copied from interface:FiscalPrinterInterface
Final 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:
printPeriodicTotalsReport
in 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:FiscalPrinterInterface
Final 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:
printPowerLossReport
in interfaceFiscalPrinterInterface
- Throws:
jpos.JposException
- If an error occurs.
-
printReport
Description copied from interface:FiscalPrinterInterface
Final 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:
printReport
in 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:FiscalPrinterInterface
Final 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:
printXReport
in interfaceFiscalPrinterInterface
- Throws:
jpos.JposException
- If an error occurs.
-
printZReport
public void printZReport() throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterface
Final 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:
printZReport
in interfaceFiscalPrinterInterface
- Throws:
jpos.JposException
- If an error occurs.
-
resetPrinter
public void resetPrinter() throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterface
Final 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:
resetPrinter
in interfaceFiscalPrinterInterface
- Throws:
jpos.JposException
- If an error occurs.
-
setCurrency
public void setCurrency(int newCurrency) throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterface
Final 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:
setCurrency
in interfaceFiscalPrinterInterface
- Parameters:
newCurrency
- The new currency.- Throws:
jpos.JposException
- If an error occurs.
-
setDate
Description copied from interface:FiscalPrinterInterface
Final 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:
setDate
in 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:FiscalPrinterInterface
Final 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:
setHeaderLine
in 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:FiscalPrinterInterface
Final 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:
setPOSID
in 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:FiscalPrinterInterface
Final 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:
setStoreFiscalID
in 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:FiscalPrinterInterface
Final 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:
setTrailerLine
in 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:FiscalPrinterInterface
Final 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:
setVatTable
in interfaceFiscalPrinterInterface
- Throws:
jpos.JposException
- If an error occurs.
-
setVatValue
public void setVatValue(int vatID, long vatValue) throws jpos.JposExceptionDescription copied from interface:FiscalPrinterInterface
Final 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:
setVatValue
in 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:FiscalPrinterInterface
Final 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:
setVatValue
in 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:FiscalPrinterInterface
Final 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:
verifyItem
in 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:FiscalPrinterInterface
Validation 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:
printFiscalDocumentLine
in 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:FiscalPrinterInterface
Final 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:
printFiscalDocumentLine
in 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:FiscalPrinterInterface
Validation 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:
printFixedOutput
in 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:FiscalPrinterInterface
Final 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:
printFixedOutput
in 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:FiscalPrinterInterface
Validation 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:
printNormal
in 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:FiscalPrinterInterface
Final 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:
printNormal
in 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:FiscalPrinterInterface
Validation 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:
printRecCash
in 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:FiscalPrinterInterface
Final 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:
printRecCash
in 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:FiscalPrinterInterface
Validation 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:
printRecItem
in 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:FiscalPrinterInterface
Final 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:
printRecItem
in 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:FiscalPrinterInterface
Validation 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:
printRecItemAdjustment
in 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:FiscalPrinterInterface
Final 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:
printRecItemAdjustment
in 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:FiscalPrinterInterface
Validation 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:
printRecItemAdjustmentVoid
in 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:FiscalPrinterInterface
Final 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:
printRecItemAdjustmentVoid
in 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:FiscalPrinterInterface
Validation 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:
printRecItemFuel
in 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:FiscalPrinterInterface
Final 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:
printRecItemFuel
in 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:FiscalPrinterInterface
Validation 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:
printRecItemFuelVoid
in 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:FiscalPrinterInterface
Final 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:
printRecItemFuelVoid
in 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:FiscalPrinterInterface
Validation 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:
printRecItemVoid
in 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:FiscalPrinterInterface
Final 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:
printRecItemVoid
in 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:FiscalPrinterInterface
Validation 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:
printRecItemRefund
in 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:FiscalPrinterInterface
Final 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:
printRecItemRefund
in 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:FiscalPrinterInterface
Validation 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:
printRecItemRefundVoid
in 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:FiscalPrinterInterface
Final 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:
printRecItemRefundVoid
in 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:FiscalPrinterInterface
Validation 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:
printRecMessage
in 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:FiscalPrinterInterface
Final 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:
printRecMessage
in 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:FiscalPrinterInterface
Validation 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:
printRecNotPaid
in 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:FiscalPrinterInterface
Final 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:
printRecNotPaid
in 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:FiscalPrinterInterface
Validation 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:
printRecPackageAdjustment
in 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:FiscalPrinterInterface
Validation 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:
printRecPackageAdjustment
in 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:FiscalPrinterInterface
Final 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:
printRecPackageAdjustment
in 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:FiscalPrinterInterface
Validation 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:
printRecPackageAdjustVoid
in 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:FiscalPrinterInterface
Validation 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:
printRecPackageAdjustVoid
in 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:FiscalPrinterInterface
Final 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:
printRecPackageAdjustVoid
in 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:FiscalPrinterInterface
Validation 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:
printRecRefund
in 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:FiscalPrinterInterface
Final 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:
printRecRefund
in 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:FiscalPrinterInterface
Validation 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:
printRecRefundVoid
in 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:FiscalPrinterInterface
Final 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:
printRecRefundVoid
in 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:FiscalPrinterInterface
Validation 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:
printRecSubtotal
in 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:FiscalPrinterInterface
Final 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:
printRecSubtotal
in 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:FiscalPrinterInterface
Validation 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:
printRecSubtotalAdjustment
in 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:FiscalPrinterInterface
Final 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:
printRecSubtotalAdjustment
in 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:FiscalPrinterInterface
Validation 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:
printRecSubtotalAdjustVoid
in 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:FiscalPrinterInterface
Final 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:
printRecSubtotalAdjustVoid
in 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:FiscalPrinterInterface
Validation 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:
printRecTaxID
in 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:FiscalPrinterInterface
Final 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:
printRecTaxID
in 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:FiscalPrinterInterface
Validation 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:
printRecTotal
in 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:FiscalPrinterInterface
Final 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:
printRecTotal
in 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:FiscalPrinterInterface
Validation 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:
printRecVoid
in 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:FiscalPrinterInterface
Final 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:
printRecVoid
in 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:FiscalPrinterInterface
Validation 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:
printRecVoidItem
in 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:FiscalPrinterInterface
Final 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:
printRecVoidItem
in 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.
-