Class cmdService.VAT

java.lang.Object
Enclosing class:
cmdService

public static class cmdService.VAT
extends cmdService
This class contains methods for handling tax rates (VATS), Decimal point and currency
  • Constructor Details

    • VAT

      public VAT()
  • Method Details

    • getDecimalPoint

      public static java.lang.String getDecimalPoint()
    • setDecimalPoint

      public static void setDecimalPoint​(java.lang.String decimalPoint)
    • setVatRates

      public int setVatRates​(java.util.List<java.lang.String> vats) throws java.io.IOException, FiscalException
      Programming of VAT rates
      Parameters:
      vats - - Value of VAT rate X; * 0.00...99.99 - enabled; * 100.00 - disabled;
      Returns:
      RemainingChanges - number of remaining changes (1...30);
      Throws:
      java.io.IOException
      FiscalException
    • setVatRates

      public int setVatRates​(java.lang.String TaxA, java.lang.String TaxB, java.lang.String TaxC, java.lang.String TaxD, java.lang.String TaxE, java.lang.String TaxF, java.lang.String TaxG, java.lang.String TaxH) throws java.io.IOException, FiscalException
      Programming of VAT rates
      Parameters:
      TaxA - Value of VAT rate X; 0.00...99.99 - enabled; 100.00 - disabled;
      TaxB -
      TaxC -
      TaxD -
      TaxE -
      TaxF -
      TaxG -
      TaxH -
      Returns:
      RemainingChanges - number of remaining changes (1...30);
      Throws:
      java.io.IOException
      FiscalException
    • getVatRates

      public java.util.List<java.lang.String> getVatRates() throws java.io.IOException, FiscalException
      Reading VAT rates
      Returns:
      - the active VAT rates
      Throws:
      java.io.IOException
      FiscalException
    • setIntegerPrices

      public int setIntegerPrices() throws java.io.IOException, FiscalException
      Note When changing decimal_point is necessary to restart the printer so the correct values indicate on the client display
      Returns:
      RemainingChanges - number of remaining changes (1...30);
      Throws:
      java.io.IOException
      FiscalException
    • setFractionalPrices

      public int setFractionalPrices() throws java.io.IOException, FiscalException
      Note When changing decimal_point is necessary to restart the printer so the correct values indicate on the client display
      Returns:
      RemainingChanges - number of remaining changes (1...30);
      Throws:
      java.io.IOException
      FiscalException
    • getVatEnabled

      public java.util.List<java.lang.Boolean> getVatEnabled() throws java.io.IOException, FiscalException
      Returns:
      List of boolean with enabled-true or disabled-false values
      Throws:
      java.io.IOException
      FiscalException
    • getDecimals

      public java.lang.String getDecimals() throws java.io.IOException, FiscalException
      Returns:
      - number of symbols after decimal point;

      Depending on whether setFractionalPrices return 2, if setIntegerPrices is used return 0

      Throws:
      java.io.IOException
      FiscalException