Class SalesTransactionsUtilImpl

java.lang.Object
de.hybris.platform.sap.sapordermgmtbol.transaction.util.impl.SalesTransactionsUtilImpl
All Implemented Interfaces:
SalesTransactionsUtil

public class SalesTransactionsUtilImpl extends Object implements SalesTransactionsUtil
Class containing general utility methods for sales transactions module and important constants
Version:
1.0
  • Field Details

    • sapLogger

      protected static final Log4JWrapper sapLogger
    • defaultEmptyLinesBackend

      protected int defaultEmptyLinesBackend
    • defaultEmptyLinesJava

      protected int defaultEmptyLinesJava
  • Constructor Details

    • SalesTransactionsUtilImpl

      public SalesTransactionsUtilImpl()
  • Method Details

    • deleteEmptyItems

      public void deleteEmptyItems(ItemList itemList)
      Description copied from interface: SalesTransactionsUtil
      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.
      Specified by:
      deleteEmptyItems in interface SalesTransactionsUtil
      Parameters:
      itemList - to clean up
    • removeLeadingZeros

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