Interface SalesTransactionsUtil

All Known Implementing Classes:
SalesTransactionsUtilImpl

public interface SalesTransactionsUtil
Utility class for salestransactions module.
  • Field Details

    • AUTH_ACTVT_DISPLAY

      static final String AUTH_ACTVT_DISPLAY
      Constant for Authority Check - display authority
      See Also:
    • AUTH_ACTVT_EDIT

      static final String AUTH_ACTVT_EDIT
      Constant for Authority Check - change authority
      See Also:
    • AUTH_ACTVT_CREATE

      static final String AUTH_ACTVT_CREATE
      Constant for Authority Check - create authority
      See Also:
    • AUTH_ACTVT_DELETE

      static final String AUTH_ACTVT_DELETE
      Constant for Authority Check - delete authority
      See Also:
    • PATTERN_REPLACE_ZEROS

      static final Pattern PATTERN_REPLACE_ZEROS
      Pattern for removing leading zeros in a String. Sufficient to compile this exactly one time.
    • REPLACEMENT_EMPTY_STRING

      static final String REPLACEMENT_EMPTY_STRING
      Just an empty string.
      See Also:
    • SEARCH_NAME_ORDER

      static final String SEARCH_NAME_ORDER
      Name of the search description used for the order search.
      See Also:
  • Method Details

    • deleteEmptyItems

      void deleteEmptyItems(ItemList itemList)
      Deletes empty items from the item list, so that no empty items are transfered to the backend. An empty item is a main item (no subitem), where quantity is 0 or no product was entered.
      Parameters:
      itemList - to clean up
    • removeLeadingZeros

      String removeLeadingZeros(String input)
      Removes leading zeros from a string. Use full when dealing with Id's that might have leading zeros,
      Parameters:
      input - and id string, should only contain digits
      Returns:
      input string without leading zeros