Class cmdReceipt.FiscalTransaction

java.lang.Object
com.datecs.fiscalprinter.SDK.model.DatecsFiscalDevice
com.datecs.fiscalprinter.SDK.model.UserLayerV2.cmdReceipt
com.datecs.fiscalprinter.SDK.model.UserLayerV2.cmdReceipt.FiscalTransaction
Enclosing class:
cmdReceipt

public static class cmdReceipt.FiscalTransaction
extends cmdReceipt
Class hold Status of the fiscal receipt
  • Constructor Details

    • FiscalTransaction

      public FiscalTransaction() throws java.lang.Exception
      Throws:
      java.lang.Exception
  • Method Details

    • getReceiptType

    • isOpen

      public boolean isOpen()
      Returns:
      Receipt is open-true
    • getNumber

      public int getNumber()
      Returns:
      The number of the current or the last receipt (1...9999999);
    • getNumberAsString

      public java.lang.String getNumberAsString()
      Returns:
      The number of the current or the last receipt (1...9999999);
    • getAmount

      public java.lang.Double getAmount()
      Returns:
      The sum from the current or the last fiscal receipt ( 0.00...9999999.99 or 0...999999999
    • getAmountAsString

      public java.lang.String getAmountAsString()
    • getPaid

      public java.lang.Double getPaid()
      Returns:
      The sum paid for the current or the last receipt ( 0.00...9999999.99 or 0...999999999 depending dec point position );
    • getPaidAsString

      public java.lang.String getPaidAsString()
      Returns:
      The sum paid for the current or the last receipt ( 0.00...9999999.99 or 0...999999999 depending dec point position );
    • getNotPaid

      public java.lang.Double getNotPaid()
      Returns:
      The amount in the current or the last receipt is unpaid