java.lang.Object
com.datecs.fiscalprinter.SDK.model.DatecsFiscalDevice
com.datecs.fiscalprinter.SDK.model.UserLayerV2.cmdReceipt
Direct Known Subclasses:
cmdReceipt.FiscalReceipt, cmdReceipt.FiscalReceipt.InvoiceClientInfo, cmdReceipt.FiscalSale, cmdReceipt.FiscalTransaction, cmdReceipt.NonFiscalReceipt

public class cmdReceipt
extends DatecsFiscalDevice
Primary class for printing of fiscal and non-fiscal receipt.
  • Constructor Details

  • Method Details

    • isStornoReceiptOpen

      public boolean isStornoReceiptOpen() throws java.lang.Exception
      Throws:
      java.lang.Exception
    • printFreeText

      public void printFreeText​(java.lang.String text, boolean Bold, boolean Italic, boolean DoubleH, boolean Underline, cmdReceipt.AlignmentType alignment) throws java.lang.Exception
      Printing of a free fiscal text with text attributes
      Parameters:
      text - text of 0...XX symbols, XX = PrintColumns-2;
      Bold -
      Italic -
      DoubleH -
      Underline -
      alignment -
      Throws:
      java.lang.Exception
    • paperFeed

      public void paperFeed​(int linesToFeed) throws java.lang.Exception
      Paper feed
      Parameters:
      linesToFeed - - Number of lines;
      Throws:
      FiscalException
      java.io.IOException
      java.lang.Exception
    • paperCutting

      public void paperCutting() throws java.lang.Exception
      Paper cutting
      Throws:
      java.lang.Exception
    • cashInCashOut

      public java.lang.Double[] cashInCashOut​(java.lang.Double dAmount, boolean foreignCurrency) throws java.lang.Exception
      Parameters:
      dAmount - the sum ( 0.00...9999999.99 or 0...999999999 depending dec point position ); If Amount=0, the only Answer is returned, and receipt does not print.
      foreignCurrency - if true operation in foreign currency
      Returns:
      - Double array 0-"cashSum" 1-"cashIn" 2-"cashOut"
      Throws:
      java.lang.Exception
    • printBarcode

      public void printBarcode​(cmdReceipt.BarcdeType bcType, java.lang.String bcData, int bcQRSize) throws java.lang.Exception
      Throws:
      java.lang.Exception
    • drawerKickOut

      public void drawerKickOut() throws java.lang.Exception
      Drawer opening
      Throws:
      java.lang.Exception