Interface SalesTransactionsUtil
- All Known Implementing Classes:
SalesTransactionsUtilImpl
public interface SalesTransactionsUtil
Utility class for salestransactions module.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringConstant for Authority Check - create authoritystatic final StringConstant for Authority Check - delete authoritystatic final StringConstant for Authority Check - display authoritystatic final StringConstant for Authority Check - change authoritystatic final PatternPattern for removing leading zeros in a String.static final StringJust an empty string.static final StringName of the search description used for the order search. -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteEmptyItems(ItemList itemList) Deletes empty items from the item list, so that no empty items are transfered to the backend.removeLeadingZeros(String input) Removes leading zeros from a string.
-
Field Details
-
AUTH_ACTVT_DISPLAY
Constant for Authority Check - display authority- See Also:
-
AUTH_ACTVT_EDIT
Constant for Authority Check - change authority- See Also:
-
AUTH_ACTVT_CREATE
Constant for Authority Check - create authority- See Also:
-
AUTH_ACTVT_DELETE
Constant for Authority Check - delete authority- See Also:
-
PATTERN_REPLACE_ZEROS
Pattern for removing leading zeros in a String. Sufficient to compile this exactly one time. -
REPLACEMENT_EMPTY_STRING
Just an empty string.- See Also:
-
SEARCH_NAME_ORDER
Name of the search description used for the order search.- See Also:
-
-
Method Details
-
deleteEmptyItems
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
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
-