Class Config

java.lang.Object
org.bgerp.app.cfg.Config
org.bgerp.plugin.inventory.Config

public class Config extends Config
Configuration for Inventory plugin. Keys are stored in DB config with prefix "inventory:". Example: inventory:enable=1 inventory:process.showTab=1 inventory:processType.45.reserveStatuses=8,4,7,16
  • Constructor Details

    • Config

      protected Config(ConfigMap config)
  • Method Details

    • isProcessShowTab

      public boolean isProcessShowTab()
      Whether to show the Materials tab on a process.
    • getReserveStatusIds

      public Set<Integer> getReserveStatusIds(int processTypeId)
      Status IDs of the given process type in which reserving/unreserving materials is allowed. Empty set means the restriction isn't configured for this type — callers should treat that as "no restriction" for backward compatibility.