Class FiscalPrinterService
java.lang.Object
de.gmxhome.conrad.jpos.jpos_base.JposBase
de.gmxhome.conrad.jpos.jpos_base.fiscalprinter.FiscalPrinterService
- All Implemented Interfaces:
jpos.loader.JposServiceInstance,jpos.services.BaseService,jpos.services.FiscalPrinterService110,jpos.services.FiscalPrinterService111,jpos.services.FiscalPrinterService112,jpos.services.FiscalPrinterService113,jpos.services.FiscalPrinterService114,jpos.services.FiscalPrinterService115,jpos.services.FiscalPrinterService116,jpos.services.FiscalPrinterService13,jpos.services.FiscalPrinterService14,jpos.services.FiscalPrinterService15,jpos.services.FiscalPrinterService16,jpos.services.FiscalPrinterService17,jpos.services.FiscalPrinterService18,jpos.services.FiscalPrinterService19
FiscalPrinter service implementation. For more details about getter, setter and method implementations,
see JposBase.
This service supports the following properties in jpos.xml in addition to the properties listed in JposBaseDevice:
This service supports the following properties in jpos.xml in addition to the properties listed in JposBaseDevice:
- UseEnumeratedValues: If true, string representations contain a decimal point, where trailing zeroes up to and inclusive the decimal point can be stripped. Examples for a currency value of 123.4: "123.4", "123.4000". If false, string representations contain the 64-bit integer value used internally to store a currency value. This value does not contain a decimal point. Example for a currency value of 123.4: "1234000", for 0.19: "1900". The default is true.
-
Field Summary
FieldsModifier and TypeFieldDescriptionDeprecated.Instance of a class implementing the FiscalPrinterInterface for fiscal printer specific setter and method calls bound to the property set.Fields inherited from class de.gmxhome.conrad.jpos.jpos_base.JposBase
Device, DeviceInterface, Props -
Constructor Summary
ConstructorsConstructorDescriptionFiscalPrinterService(FiscalPrinterProperties props, JposDevice device)Constructor.FiscalPrinterService(FiscalPrinterProperties props, JposDevice device, boolean ignored)Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidbeginFiscalDocument(int documentAmount)voidbeginFiscalReceipt(boolean printHeader)voidbeginFixedOutput(int station, int documentType)voidbeginInsertion(int timeout)voidbeginItemList(int vatID)voidvoidbeginRemoval(int timeout)voidvoidcheckCoverPaper(int station)Checks whether the cover is closed and paper present on all selected stations.voidcheckReserved(String text, String valuename)Check whether a text contains the reserved word, if CapReservedWord is true.voidvoidvoidendFiscalReceipt(boolean printHeader)voidvoidvoidvoidvoidvoidintintintbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanintintbooleanvoidvoidintbooleanintbooleanintintintintintintbooleanbooleanbooleanintintintintintintintintbooleanbooleanintintbooleanbooleanvoidgetTotalizer(int vatID, int optArgs, String[] data)intbooleanvoidgetVatEntry(int vatID, int optArgs, int[] vatRate)voidifSyncCheckBusyCoverPaper(int station)If AsyncMode is false, checks whether the device is busy, cover closed and paper present on all selected stations.voidvoidprintFiscalDocumentLine(String documentLine)voidprintFixedOutput(int documentType, int lineNumber, String data)voidprintNormal(int station, String data)voidprintPeriodicTotalsReport(String date1, String date2)voidvoidprintRecCash(long amount)voidprintRecItem(String description, long price, int quantity, int vatInfo, long unitPrice, String unitName)voidprintRecItemAdjustment(int adjustmentType, String description, long amount, int vatInfo)voidprintRecItemAdjustmentVoid(int adjustmentType, String description, long amount, int vatInfo)voidprintRecItemFuel(String description, long price, int quantity, int vatInfo, long unitPrice, String unitName, long specialTax, String specialTaxName)voidprintRecItemFuelVoid(String description, long price, int vatInfo, long specialTax)voidprintRecItemRefund(String description, long amount, int quantity, int vatInfo, long unitAmount, String unitName)voidprintRecItemRefundVoid(String description, long amount, int quantity, int vatInfo, long unitAmount, String unitName)voidprintRecItemVoid(String description, long price, int quantity, int vatInfo, long unitPrice, String unitName)voidprintRecMessage(String message)voidprintRecNotPaid(String description, long amount)voidprintRecPackageAdjustment(int adjustmentType, String description, String vatAdjustment)voidprintRecPackageAdjustVoid(int adjustmentType, String vatAdjustment)voidprintRecRefund(String description, long amount, int vatInfo)voidprintRecRefundVoid(String description, long amount, int vatInfo)voidprintRecSubtotal(long amount)voidprintRecSubtotalAdjustment(int adjustmentType, String description, long amount)voidprintRecSubtotalAdjustVoid(int adjustmentType, long amount)voidprintRecTaxID(String taxId)voidprintRecTotal(long total, long payment, String description)voidprintRecVoid(String description)voidprintRecVoidItem(String description, long price, int quantity, int adjustmentType, long adjustment, int vatInfo)voidprintReport(int reportType, String startNum, String endNum)voidvoidvoidvoidvoidsetAdditionalTrailer(String trailer)voidsetChangeDue(String changeDue)voidsetCheckTotal(boolean check)voidsetContractorId(int id)voidsetCurrency(int newCurrency)voidvoidsetDateType(int type)voidsetDuplicateReceipt(boolean yes)voidsetFiscalReceiptStation(int station)voidsetFiscalReceiptType(int type)voidsetFlagWhenIdle(boolean b)voidsetHeaderLine(int lineNumber, String text, boolean doubleWidth)voidsetMessageType(int type)voidvoidsetPostLine(String text)voidsetPreLine(String text)voidsetSlipSelection(int type)voidsetStoreFiscalID(String ID)voidsetTotalizerType(int type)voidsetTrailerLine(int lineNumber, String text, boolean doubleWidth)voidvoidsetVatValue(int vatID, String vatValue)Sets the value of a specific VAT class in the VAT table.longstringToCurrency(String value, String name)Convert a string containing a currency value into a currency value (a long with 4 implicit decimals).stringToCurrency(String value, String name, boolean percent)Convert a string containing a currency or percentage value into a Number value (a long or int with 4 implicit decimals).voidverifyItem(String itemName, int vatID)Methods inherited from class de.gmxhome.conrad.jpos.jpos_base.JposBase
callNowOrLater, check, check, check, check, checkBusy, checkClaimed, checkEnabled, checkEnabledUnclaimed, checkFirstEnabled, checkHealth, checkNoChangedOrClaimed, checkOpened, claim, clearInput, clearInputProperties, clearOutput, close, compareFirmwareVersion, deepToString, deleteInstance, directIO, getAsyncMode, getAutoDisable, getCapCompareFirmwareVersion, getCapPowerReporting, getCapStatisticsReporting, getCapUpdateFirmware, getCapUpdateStatistics, getCheckHealthText, getClaimed, getDataCount, getDataEventEnabled, getDeviceEnabled, getDeviceServiceDescription, getDeviceServiceVersion, getFreezeEvents, getOutputID, getPhysicalDeviceDescription, getPhysicalDeviceName, getPowerNotify, getPowerState, getPropertyString, getState, logAsyncCall, logCall, logCall, logGet, logGet, logPreCall, logPreCall, logPreSet, logSet, open, release, removeOuterArraySpecifier, resetStatistics, retrieveStatistics, setAsyncMode, setAutoDisable, setDataEventEnabled, setDeviceEnabled, setFreezeEvents, setPowerNotify, signalRelease, startClaiming, updateFirmware, updateStatisticsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jpos.services.BaseService
checkHealth, claim, close, directIO, getCheckHealthText, getClaimed, getDeviceEnabled, getDeviceServiceDescription, getDeviceServiceVersion, getFreezeEvents, getPhysicalDeviceDescription, getPhysicalDeviceName, getState, open, release, setDeviceEnabled, setFreezeEventsMethods inherited from interface jpos.services.FiscalPrinterService13
clearOutput, getAsyncMode, getCapPowerReporting, getOutputID, getPowerNotify, getPowerState, setAsyncMode, setPowerNotifyMethods inherited from interface jpos.services.FiscalPrinterService18
getCapStatisticsReporting, getCapUpdateStatistics, resetStatistics, retrieveStatistics, updateStatisticsMethods inherited from interface jpos.services.FiscalPrinterService19
compareFirmwareVersion, getCapCompareFirmwareVersion, getCapUpdateFirmware, updateFirmwareMethods inherited from interface jpos.loader.JposServiceInstance
deleteInstance
-
Field Details
-
FiscalPrinterInterface
Instance of a class implementing the FiscalPrinterInterface for fiscal printer specific setter and method calls bound to the property set. Almost always the same object as Data. -
AllowItemAdjustmentTypesInPackageAdjustment
Deprecated.True if package adjustments may have the same (or a sub-set of) adjustment types as item adjustments. False if only FPTR_AT_DISCOUNT and FPTR_AT_SURCHARGE are valid package adjustment types, as specified in the UPOS specification.
-
-
Constructor Details
-
FiscalPrinterService
Constructor. Stores given property set and device implementation object.- Parameters:
props- Property set.device- Device implementation object.
-
FiscalPrinterService
Constructor. Stores given property set and device implementation object.- Parameters:
props- Property set.ignored- Will not be used. Previous versions specified the value of Data.CurrencyStringWithDecimalPoint here.device- Device implementation object.
-
-
Method Details
-
checkReserved
Check whether a text contains the reserved word, if CapReservedWord is true. If so, a JposException will be thrown with error code E_EXTENDED and extended error code EFPTR_BAD_ITEM_DESCRIPTION.- Parameters:
text- Text to be checkedvaluename- Name of the text argument to be checked.- Throws:
jpos.JposException- with E_EXTENDED and EFPTR_BAD_ITEM_DESCRIPTION if the text contains the reserved word.
-
stringToCurrency
Convert a string containing a currency value into a currency value (a long with 4 implicit decimals). Class BigDecimal will be used for conversion- Parameters:
value- Value to be converted.name- Name of the value, used if value is invalid.- Returns:
- Currency value if value could be converted.
- Throws:
jpos.JposException- with error code E_ILLEGAL if value cannot be converted or if value is out of range.
-
stringToCurrency
public Number stringToCurrency(String value, String name, boolean percent) throws jpos.JposExceptionConvert a string containing a currency or percentage value into a Number value (a long or int with 4 implicit decimals). Class BigDecimal will be used for conversion- Parameters:
value- Value to be converted.name- Name of the value, used if value is invalid.percent- If true, return value is percent value, otherwise fixed amount.- Returns:
- Number value if value could be converted.
- Throws:
jpos.JposException- with error code E_ILLEGAL if value cannot be converted or if value is out of range.
-
ifSyncCheckBusyCoverPaper
public void ifSyncCheckBusyCoverPaper(int station) throws jpos.JposExceptionIf AsyncMode is false, checks whether the device is busy, cover closed and paper present on all selected stations.- Parameters:
station- Selected station(s), any bit-wise combination of S_JOURNAL, S_RECEIPT and S_SLIP.- Throws:
jpos.JposException- If AsyncMode is false and device busy, cover open or paper not present.
-
checkCoverPaper
public void checkCoverPaper(int station) throws jpos.JposExceptionChecks whether the cover is closed and paper present on all selected stations.- Parameters:
station- Selected station(s), any bit-wise combination of S_JOURNAL, S_RECEIPT and S_SLIP.- Throws:
jpos.JposException- If AsyncMode is false and device busy, cover open or paper not present.
-
getActualCurrency
public int getActualCurrency() throws jpos.JposException- Specified by:
getActualCurrencyin interfacejpos.services.FiscalPrinterService16- Throws:
jpos.JposException
-
getAdditionalHeader
- Specified by:
getAdditionalHeaderin interfacejpos.services.FiscalPrinterService16- Throws:
jpos.JposException
-
setAdditionalHeader
- Specified by:
setAdditionalHeaderin interfacejpos.services.FiscalPrinterService16- Throws:
jpos.JposException
-
getAdditionalTrailer
- Specified by:
getAdditionalTrailerin interfacejpos.services.FiscalPrinterService16- Throws:
jpos.JposException
-
setAdditionalTrailer
- Specified by:
setAdditionalTrailerin interfacejpos.services.FiscalPrinterService16- Throws:
jpos.JposException
-
getAmountDecimalPlace
public int getAmountDecimalPlace() throws jpos.JposException- Specified by:
getAmountDecimalPlacein interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getAmountDecimalPlaces
public int getAmountDecimalPlaces() throws jpos.JposException- Specified by:
getAmountDecimalPlacesin interfacejpos.services.FiscalPrinterService17- Throws:
jpos.JposException
-
getCapAdditionalHeader
public boolean getCapAdditionalHeader() throws jpos.JposException- Specified by:
getCapAdditionalHeaderin interfacejpos.services.FiscalPrinterService16- Throws:
jpos.JposException
-
getCapAdditionalLines
public boolean getCapAdditionalLines() throws jpos.JposException- Specified by:
getCapAdditionalLinesin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getCapAdditionalTrailer
public boolean getCapAdditionalTrailer() throws jpos.JposException- Specified by:
getCapAdditionalTrailerin interfacejpos.services.FiscalPrinterService16- Throws:
jpos.JposException
-
getCapAmountAdjustment
public boolean getCapAmountAdjustment() throws jpos.JposException- Specified by:
getCapAmountAdjustmentin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getCapAmountNotPaid
public boolean getCapAmountNotPaid() throws jpos.JposException- Specified by:
getCapAmountNotPaidin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getCapChangeDue
public boolean getCapChangeDue() throws jpos.JposException- Specified by:
getCapChangeDuein interfacejpos.services.FiscalPrinterService16- Throws:
jpos.JposException
-
getCapCheckTotal
public boolean getCapCheckTotal() throws jpos.JposException- Specified by:
getCapCheckTotalin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getCapCoverSensor
public boolean getCapCoverSensor() throws jpos.JposException- Specified by:
getCapCoverSensorin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getCapDoubleWidth
public boolean getCapDoubleWidth() throws jpos.JposException- Specified by:
getCapDoubleWidthin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getCapDuplicateReceipt
public boolean getCapDuplicateReceipt() throws jpos.JposException- Specified by:
getCapDuplicateReceiptin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getCapEmptyReceiptIsVoidable
public boolean getCapEmptyReceiptIsVoidable() throws jpos.JposException- Specified by:
getCapEmptyReceiptIsVoidablein interfacejpos.services.FiscalPrinterService16- Throws:
jpos.JposException
-
getCapFiscalReceiptStation
public boolean getCapFiscalReceiptStation() throws jpos.JposException- Specified by:
getCapFiscalReceiptStationin interfacejpos.services.FiscalPrinterService16- Throws:
jpos.JposException
-
getCapFiscalReceiptType
public boolean getCapFiscalReceiptType() throws jpos.JposException- Specified by:
getCapFiscalReceiptTypein interfacejpos.services.FiscalPrinterService16- Throws:
jpos.JposException
-
getCapFixedOutput
public boolean getCapFixedOutput() throws jpos.JposException- Specified by:
getCapFixedOutputin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getCapHasVatTable
public boolean getCapHasVatTable() throws jpos.JposException- Specified by:
getCapHasVatTablein interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getCapIndependentHeader
public boolean getCapIndependentHeader() throws jpos.JposException- Specified by:
getCapIndependentHeaderin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getCapItemList
public boolean getCapItemList() throws jpos.JposException- Specified by:
getCapItemListin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getCapJrnEmptySensor
public boolean getCapJrnEmptySensor() throws jpos.JposException- Specified by:
getCapJrnEmptySensorin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getCapJrnNearEndSensor
public boolean getCapJrnNearEndSensor() throws jpos.JposException- Specified by:
getCapJrnNearEndSensorin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getCapJrnPresent
public boolean getCapJrnPresent() throws jpos.JposException- Specified by:
getCapJrnPresentin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getCapMultiContractor
public boolean getCapMultiContractor() throws jpos.JposException- Specified by:
getCapMultiContractorin interfacejpos.services.FiscalPrinterService16- Throws:
jpos.JposException
-
getCapNonFiscalMode
public boolean getCapNonFiscalMode() throws jpos.JposException- Specified by:
getCapNonFiscalModein interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getCapOnlyVoidLastItem
public boolean getCapOnlyVoidLastItem() throws jpos.JposException- Specified by:
getCapOnlyVoidLastItemin interfacejpos.services.FiscalPrinterService16- Throws:
jpos.JposException
-
getCapOrderAdjustmentFirst
public boolean getCapOrderAdjustmentFirst() throws jpos.JposException- Specified by:
getCapOrderAdjustmentFirstin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getCapPackageAdjustment
public boolean getCapPackageAdjustment() throws jpos.JposException- Specified by:
getCapPackageAdjustmentin interfacejpos.services.FiscalPrinterService16- Throws:
jpos.JposException
-
getCapPercentAdjustment
public boolean getCapPercentAdjustment() throws jpos.JposException- Specified by:
getCapPercentAdjustmentin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getCapPositiveAdjustment
public boolean getCapPositiveAdjustment() throws jpos.JposException- Specified by:
getCapPositiveAdjustmentin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getCapPositiveSubtotalAdjustment
public boolean getCapPositiveSubtotalAdjustment() throws jpos.JposException- Specified by:
getCapPositiveSubtotalAdjustmentin interfacejpos.services.FiscalPrinterService111- Throws:
jpos.JposException
-
getCapPostPreLine
public boolean getCapPostPreLine() throws jpos.JposException- Specified by:
getCapPostPreLinein interfacejpos.services.FiscalPrinterService16- Throws:
jpos.JposException
-
getCapPowerLossReport
public boolean getCapPowerLossReport() throws jpos.JposException- Specified by:
getCapPowerLossReportin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getCapPredefinedPaymentLines
public boolean getCapPredefinedPaymentLines() throws jpos.JposException- Specified by:
getCapPredefinedPaymentLinesin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getCapReceiptNotPaid
public boolean getCapReceiptNotPaid() throws jpos.JposException- Specified by:
getCapReceiptNotPaidin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getCapRecEmptySensor
public boolean getCapRecEmptySensor() throws jpos.JposException- Specified by:
getCapRecEmptySensorin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getCapRecNearEndSensor
public boolean getCapRecNearEndSensor() throws jpos.JposException- Specified by:
getCapRecNearEndSensorin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getCapRecPresent
public boolean getCapRecPresent() throws jpos.JposException- Specified by:
getCapRecPresentin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getCapRemainingFiscalMemory
public boolean getCapRemainingFiscalMemory() throws jpos.JposException- Specified by:
getCapRemainingFiscalMemoryin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getCapReservedWord
public boolean getCapReservedWord() throws jpos.JposException- Specified by:
getCapReservedWordin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getCapSetCurrency
public boolean getCapSetCurrency() throws jpos.JposException- Specified by:
getCapSetCurrencyin interfacejpos.services.FiscalPrinterService16- Throws:
jpos.JposException
-
getCapSetHeader
public boolean getCapSetHeader() throws jpos.JposException- Specified by:
getCapSetHeaderin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getCapSetPOSID
public boolean getCapSetPOSID() throws jpos.JposException- Specified by:
getCapSetPOSIDin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getCapSetStoreFiscalID
public boolean getCapSetStoreFiscalID() throws jpos.JposException- Specified by:
getCapSetStoreFiscalIDin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getCapSetTrailer
public boolean getCapSetTrailer() throws jpos.JposException- Specified by:
getCapSetTrailerin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getCapSetVatTable
public boolean getCapSetVatTable() throws jpos.JposException- Specified by:
getCapSetVatTablein interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getCapSlpEmptySensor
public boolean getCapSlpEmptySensor() throws jpos.JposException- Specified by:
getCapSlpEmptySensorin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getCapSlpFiscalDocument
public boolean getCapSlpFiscalDocument() throws jpos.JposException- Specified by:
getCapSlpFiscalDocumentin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getCapSlpFullSlip
public boolean getCapSlpFullSlip() throws jpos.JposException- Specified by:
getCapSlpFullSlipin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getCapSlpNearEndSensor
public boolean getCapSlpNearEndSensor() throws jpos.JposException- Specified by:
getCapSlpNearEndSensorin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getCapSlpPresent
public boolean getCapSlpPresent() throws jpos.JposException- Specified by:
getCapSlpPresentin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getCapSlpValidation
public boolean getCapSlpValidation() throws jpos.JposException- Specified by:
getCapSlpValidationin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getCapSubAmountAdjustment
public boolean getCapSubAmountAdjustment() throws jpos.JposException- Specified by:
getCapSubAmountAdjustmentin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getCapSubPercentAdjustment
public boolean getCapSubPercentAdjustment() throws jpos.JposException- Specified by:
getCapSubPercentAdjustmentin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getCapSubtotal
public boolean getCapSubtotal() throws jpos.JposException- Specified by:
getCapSubtotalin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getCapTotalizerType
public boolean getCapTotalizerType() throws jpos.JposException- Specified by:
getCapTotalizerTypein interfacejpos.services.FiscalPrinterService16- Throws:
jpos.JposException
-
getCapTrainingMode
public boolean getCapTrainingMode() throws jpos.JposException- Specified by:
getCapTrainingModein interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getCapValidateJournal
public boolean getCapValidateJournal() throws jpos.JposException- Specified by:
getCapValidateJournalin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getCapXReport
public boolean getCapXReport() throws jpos.JposException- Specified by:
getCapXReportin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getChangeDue
- Specified by:
getChangeDuein interfacejpos.services.FiscalPrinterService16- Throws:
jpos.JposException
-
setChangeDue
- Specified by:
setChangeDuein interfacejpos.services.FiscalPrinterService16- Throws:
jpos.JposException
-
getCheckTotal
public boolean getCheckTotal() throws jpos.JposException- Specified by:
getCheckTotalin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
setCheckTotal
public void setCheckTotal(boolean check) throws jpos.JposException- Specified by:
setCheckTotalin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getContractorId
public int getContractorId() throws jpos.JposException- Specified by:
getContractorIdin interfacejpos.services.FiscalPrinterService16- Throws:
jpos.JposException
-
setContractorId
public void setContractorId(int id) throws jpos.JposException- Specified by:
setContractorIdin interfacejpos.services.FiscalPrinterService16- Throws:
jpos.JposException
-
getCountryCode
public int getCountryCode() throws jpos.JposException- Specified by:
getCountryCodein interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getCoverOpen
public boolean getCoverOpen() throws jpos.JposException- Specified by:
getCoverOpenin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getDateType
public int getDateType() throws jpos.JposException- Specified by:
getDateTypein interfacejpos.services.FiscalPrinterService16- Throws:
jpos.JposException
-
setDateType
public void setDateType(int type) throws jpos.JposException- Specified by:
setDateTypein interfacejpos.services.FiscalPrinterService16- Throws:
jpos.JposException
-
getDayOpened
public boolean getDayOpened() throws jpos.JposException- Specified by:
getDayOpenedin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getDescriptionLength
public int getDescriptionLength() throws jpos.JposException- Specified by:
getDescriptionLengthin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getDuplicateReceipt
public boolean getDuplicateReceipt() throws jpos.JposException- Specified by:
getDuplicateReceiptin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
setDuplicateReceipt
public void setDuplicateReceipt(boolean yes) throws jpos.JposException- Specified by:
setDuplicateReceiptin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getErrorLevel
public int getErrorLevel() throws jpos.JposException- Specified by:
getErrorLevelin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getErrorOutID
public int getErrorOutID() throws jpos.JposException- Specified by:
getErrorOutIDin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getErrorState
public int getErrorState() throws jpos.JposException- Specified by:
getErrorStatein interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getErrorStation
public int getErrorStation() throws jpos.JposException- Specified by:
getErrorStationin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getErrorString
- Specified by:
getErrorStringin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getFiscalReceiptStation
public int getFiscalReceiptStation() throws jpos.JposException- Specified by:
getFiscalReceiptStationin interfacejpos.services.FiscalPrinterService16- Throws:
jpos.JposException
-
setFiscalReceiptStation
public void setFiscalReceiptStation(int station) throws jpos.JposException- Specified by:
setFiscalReceiptStationin interfacejpos.services.FiscalPrinterService16- Throws:
jpos.JposException
-
getFiscalReceiptType
public int getFiscalReceiptType() throws jpos.JposException- Specified by:
getFiscalReceiptTypein interfacejpos.services.FiscalPrinterService16- Throws:
jpos.JposException
-
setFiscalReceiptType
public void setFiscalReceiptType(int type) throws jpos.JposException- Specified by:
setFiscalReceiptTypein interfacejpos.services.FiscalPrinterService16- Throws:
jpos.JposException
-
getFlagWhenIdle
public boolean getFlagWhenIdle() throws jpos.JposException- Specified by:
getFlagWhenIdlein interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
setFlagWhenIdle
public void setFlagWhenIdle(boolean b) throws jpos.JposException- Specified by:
setFlagWhenIdlein interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getJrnEmpty
public boolean getJrnEmpty() throws jpos.JposException- Specified by:
getJrnEmptyin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getJrnNearEnd
public boolean getJrnNearEnd() throws jpos.JposException- Specified by:
getJrnNearEndin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getMessageLength
public int getMessageLength() throws jpos.JposException- Specified by:
getMessageLengthin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getMessageType
public int getMessageType() throws jpos.JposException- Specified by:
getMessageTypein interfacejpos.services.FiscalPrinterService16- Throws:
jpos.JposException
-
setMessageType
public void setMessageType(int type) throws jpos.JposException- Specified by:
setMessageTypein interfacejpos.services.FiscalPrinterService16- Throws:
jpos.JposException
-
getNumHeaderLines
public int getNumHeaderLines() throws jpos.JposException- Specified by:
getNumHeaderLinesin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getNumTrailerLines
public int getNumTrailerLines() throws jpos.JposException- Specified by:
getNumTrailerLinesin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getNumVatRates
public int getNumVatRates() throws jpos.JposException- Specified by:
getNumVatRatesin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getPostLine
- Specified by:
getPostLinein interfacejpos.services.FiscalPrinterService16- Throws:
jpos.JposException
-
setPostLine
- Specified by:
setPostLinein interfacejpos.services.FiscalPrinterService16- Throws:
jpos.JposException
-
getPredefinedPaymentLines
- Specified by:
getPredefinedPaymentLinesin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getPreLine
- Specified by:
getPreLinein interfacejpos.services.FiscalPrinterService16- Throws:
jpos.JposException
-
setPreLine
- Specified by:
setPreLinein interfacejpos.services.FiscalPrinterService16- Throws:
jpos.JposException
-
getPrinterState
public int getPrinterState() throws jpos.JposException- Specified by:
getPrinterStatein interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getQuantityDecimalPlaces
public int getQuantityDecimalPlaces() throws jpos.JposException- Specified by:
getQuantityDecimalPlacesin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getQuantityLength
public int getQuantityLength() throws jpos.JposException- Specified by:
getQuantityLengthin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getRecEmpty
public boolean getRecEmpty() throws jpos.JposException- Specified by:
getRecEmptyin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getRecNearEnd
public boolean getRecNearEnd() throws jpos.JposException- Specified by:
getRecNearEndin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getRemainingFiscalMemory
public int getRemainingFiscalMemory() throws jpos.JposException- Specified by:
getRemainingFiscalMemoryin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getReservedWord
- Specified by:
getReservedWordin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getSlpEmpty
public boolean getSlpEmpty() throws jpos.JposException- Specified by:
getSlpEmptyin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getSlpNearEnd
public boolean getSlpNearEnd() throws jpos.JposException- Specified by:
getSlpNearEndin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getSlipSelection
public int getSlipSelection() throws jpos.JposException- Specified by:
getSlipSelectionin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
setSlipSelection
public void setSlipSelection(int type) throws jpos.JposException- Specified by:
setSlipSelectionin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getTotalizerType
public int getTotalizerType() throws jpos.JposException- Specified by:
getTotalizerTypein interfacejpos.services.FiscalPrinterService16- Throws:
jpos.JposException
-
setTotalizerType
public void setTotalizerType(int type) throws jpos.JposException- Specified by:
setTotalizerTypein interfacejpos.services.FiscalPrinterService16- Throws:
jpos.JposException
-
getTrainingModeActive
public boolean getTrainingModeActive() throws jpos.JposException- Specified by:
getTrainingModeActivein interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
beginFiscalDocument
public void beginFiscalDocument(int documentAmount) throws jpos.JposException- Specified by:
beginFiscalDocumentin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
beginFiscalReceipt
public void beginFiscalReceipt(boolean printHeader) throws jpos.JposException- Specified by:
beginFiscalReceiptin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
beginFixedOutput
public void beginFixedOutput(int station, int documentType) throws jpos.JposException- Specified by:
beginFixedOutputin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
beginInsertion
public void beginInsertion(int timeout) throws jpos.JposException- Specified by:
beginInsertionin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
beginItemList
public void beginItemList(int vatID) throws jpos.JposException- Specified by:
beginItemListin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
beginNonFiscal
public void beginNonFiscal() throws jpos.JposException- Specified by:
beginNonFiscalin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
beginRemoval
public void beginRemoval(int timeout) throws jpos.JposException- Specified by:
beginRemovalin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
beginTraining
public void beginTraining() throws jpos.JposException- Specified by:
beginTrainingin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
clearError
public void clearError() throws jpos.JposException- Specified by:
clearErrorin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
endFiscalDocument
public void endFiscalDocument() throws jpos.JposException- Specified by:
endFiscalDocumentin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
endFiscalReceipt
public void endFiscalReceipt(boolean printHeader) throws jpos.JposException- Specified by:
endFiscalReceiptin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
endFixedOutput
public void endFixedOutput() throws jpos.JposException- Specified by:
endFixedOutputin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
endInsertion
public void endInsertion() throws jpos.JposException- Specified by:
endInsertionin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
endItemList
public void endItemList() throws jpos.JposException- Specified by:
endItemListin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
endNonFiscal
public void endNonFiscal() throws jpos.JposException- Specified by:
endNonFiscalin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
endRemoval
public void endRemoval() throws jpos.JposException- Specified by:
endRemovalin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
endTraining
public void endTraining() throws jpos.JposException- Specified by:
endTrainingin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getData
- Specified by:
getDatain interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getDate
- Specified by:
getDatein interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getTotalizer
- Specified by:
getTotalizerin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
getVatEntry
public void getVatEntry(int vatID, int optArgs, int[] vatRate) throws jpos.JposException- Specified by:
getVatEntryin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
printDuplicateReceipt
public void printDuplicateReceipt() throws jpos.JposException- Specified by:
printDuplicateReceiptin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
printPeriodicTotalsReport
- Specified by:
printPeriodicTotalsReportin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
printPowerLossReport
public void printPowerLossReport() throws jpos.JposException- Specified by:
printPowerLossReportin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
printRecVoidItem
public void printRecVoidItem(String description, long price, int quantity, int adjustmentType, long adjustment, int vatInfo) throws jpos.JposException- Specified by:
printRecVoidItemin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
printReport
- Specified by:
printReportin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
printXReport
public void printXReport() throws jpos.JposException- Specified by:
printXReportin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
printZReport
public void printZReport() throws jpos.JposException- Specified by:
printZReportin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
resetPrinter
public void resetPrinter() throws jpos.JposException- Specified by:
resetPrinterin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
setCurrency
public void setCurrency(int newCurrency) throws jpos.JposException- Specified by:
setCurrencyin interfacejpos.services.FiscalPrinterService16- Throws:
jpos.JposException
-
setDate
- Specified by:
setDatein interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
setHeaderLine
public void setHeaderLine(int lineNumber, String text, boolean doubleWidth) throws jpos.JposException- Specified by:
setHeaderLinein interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
setPOSID
- Specified by:
setPOSIDin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
setStoreFiscalID
- Specified by:
setStoreFiscalIDin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
setTrailerLine
public void setTrailerLine(int lineNumber, String text, boolean doubleWidth) throws jpos.JposException- Specified by:
setTrailerLinein interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
setVatTable
public void setVatTable() throws jpos.JposException- Specified by:
setVatTablein interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
setVatValue
Sets the value of a specific VAT class in the VAT table. See UPOS specification, chapter Fiscal Printer - Methods - setVatValue. In this implementation, vatValue must be either a percentage value (0 or a value between 0.01 and 99.9999, either specified with decimal point or with 4 implicit digits) or an integer and a percent value, separated by comma. Examples for vatValue are "0", "0,0", "1,0", "19", "55000", "1,5.5".
If vatValue is an integer and a percentage value separated by comma, the integer specifies the optArgs argument that must be passed to getVatEntry together with vatID to retrieve the vat rate after the vat table has been set.- Specified by:
setVatValuein interfacejpos.services.FiscalPrinterService13- Parameters:
vatID- Index of the vat table entry to be set.vatValue- Tax value specifier, percentage value or integer and percentage value, separated by comma.- Throws:
jpos.JposException- If an error occurs
-
verifyItem
- Specified by:
verifyItemin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
printFiscalDocumentLine
- Specified by:
printFiscalDocumentLinein interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
printFixedOutput
public void printFixedOutput(int documentType, int lineNumber, String data) throws jpos.JposException- Specified by:
printFixedOutputin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
printNormal
- Specified by:
printNormalin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
printRecCash
public void printRecCash(long amount) throws jpos.JposException- Specified by:
printRecCashin interfacejpos.services.FiscalPrinterService16- Throws:
jpos.JposException
-
printRecItem
public void printRecItem(String description, long price, int quantity, int vatInfo, long unitPrice, String unitName) throws jpos.JposException- Specified by:
printRecItemin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
printRecItemAdjustment
public void printRecItemAdjustment(int adjustmentType, String description, long amount, int vatInfo) throws jpos.JposException- Specified by:
printRecItemAdjustmentin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
printRecItemAdjustmentVoid
public void printRecItemAdjustmentVoid(int adjustmentType, String description, long amount, int vatInfo) throws jpos.JposException- Specified by:
printRecItemAdjustmentVoidin interfacejpos.services.FiscalPrinterService111- Throws:
jpos.JposException
-
printRecItemFuel
public void printRecItemFuel(String description, long price, int quantity, int vatInfo, long unitPrice, String unitName, long specialTax, String specialTaxName) throws jpos.JposException- Specified by:
printRecItemFuelin interfacejpos.services.FiscalPrinterService16- Throws:
jpos.JposException
-
printRecItemFuelVoid
public void printRecItemFuelVoid(String description, long price, int vatInfo, long specialTax) throws jpos.JposException- Specified by:
printRecItemFuelVoidin interfacejpos.services.FiscalPrinterService16- Throws:
jpos.JposException
-
printRecItemRefund
public void printRecItemRefund(String description, long amount, int quantity, int vatInfo, long unitAmount, String unitName) throws jpos.JposException- Specified by:
printRecItemRefundin interfacejpos.services.FiscalPrinterService112- Throws:
jpos.JposException
-
printRecItemRefundVoid
public void printRecItemRefundVoid(String description, long amount, int quantity, int vatInfo, long unitAmount, String unitName) throws jpos.JposException- Specified by:
printRecItemRefundVoidin interfacejpos.services.FiscalPrinterService112- Throws:
jpos.JposException
-
printRecItemVoid
public void printRecItemVoid(String description, long price, int quantity, int vatInfo, long unitPrice, String unitName) throws jpos.JposException- Specified by:
printRecItemVoidin interfacejpos.services.FiscalPrinterService111- Throws:
jpos.JposException
-
printRecMessage
- Specified by:
printRecMessagein interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
printRecNotPaid
- Specified by:
printRecNotPaidin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
printRecPackageAdjustment
public void printRecPackageAdjustment(int adjustmentType, String description, String vatAdjustment) throws jpos.JposException- Specified by:
printRecPackageAdjustmentin interfacejpos.services.FiscalPrinterService16- Throws:
jpos.JposException
-
printRecPackageAdjustVoid
public void printRecPackageAdjustVoid(int adjustmentType, String vatAdjustment) throws jpos.JposException- Specified by:
printRecPackageAdjustVoidin interfacejpos.services.FiscalPrinterService16- Throws:
jpos.JposException
-
printRecRefund
- Specified by:
printRecRefundin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
printRecRefundVoid
public void printRecRefundVoid(String description, long amount, int vatInfo) throws jpos.JposException- Specified by:
printRecRefundVoidin interfacejpos.services.FiscalPrinterService16- Throws:
jpos.JposException
-
printRecSubtotal
public void printRecSubtotal(long amount) throws jpos.JposException- Specified by:
printRecSubtotalin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
printRecSubtotalAdjustment
public void printRecSubtotalAdjustment(int adjustmentType, String description, long amount) throws jpos.JposException- Specified by:
printRecSubtotalAdjustmentin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
printRecSubtotalAdjustVoid
public void printRecSubtotalAdjustVoid(int adjustmentType, long amount) throws jpos.JposException- Specified by:
printRecSubtotalAdjustVoidin interfacejpos.services.FiscalPrinterService16- Throws:
jpos.JposException
-
printRecTaxID
- Specified by:
printRecTaxIDin interfacejpos.services.FiscalPrinterService16- Throws:
jpos.JposException
-
printRecTotal
- Specified by:
printRecTotalin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-
printRecVoid
- Specified by:
printRecVoidin interfacejpos.services.FiscalPrinterService13- Throws:
jpos.JposException
-