Interface AtpFormulaService

  • All Known Implementing Classes:
    DefaultAtpFormulaService

    public interface AtpFormulaService
    Services to interact with ATP formulas.
    • Method Detail

      • deleteAtpFormula

        void deleteAtpFormula​(java.lang.String formulaCode)
        Deletes an AtpFormulaModel from its code. Only possible if the formula is not assign to any base store
        Parameters:
        formulaCode - The formula code that we want to delete
      • getAtpValueFromFormula

        java.lang.Long getAtpValueFromFormula​(AtpFormulaModel atpFormula,
                                              java.util.Map<java.lang.String,​java.lang.Object> params)
        Retrieves the ATP value from a specific formula
        Parameters:
        atpFormula - The AtpFormulaModel from which we want to retrieve the ATP value
        params - The list of StockLevelModel to gather in order to define the ATP value
        Returns:
        the number of available item according to the params