Enum Class DeviceAccountingService.Source

java.lang.Object
java.lang.Enum<DeviceAccountingService.Source>
org.bgerp.plugin.inventoru.service.DeviceAccountingService.Source
All Implemented Interfaces:
Serializable, Comparable<DeviceAccountingService.Source>, Constable
Enclosing class:
DeviceAccountingService

public static enum DeviceAccountingService.Source extends Enum<DeviceAccountingService.Source>
Who saves the unit: decides whether placing it on a store 1C keeps is allowed.
  • Enum Constant Details

    • USER

      public static final DeviceAccountingService.Source USER
      the device card
    • IMPORT

      public static final DeviceAccountingService.Source IMPORT
      A bulk placement resolved from codes rather than typed on one card: the equipment import from a CSV file (DeviceImportService), or its scanner-driven counterpart with no file (ScanReceiptService) — both resolve many units by a business key (serial) and write them the same way, so they share this source rather than one of them silently reusing USER.
    • ONEC

      public static final DeviceAccountingService.Source ONEC
      the 1C stock import — the one allowed to place units on stores 1C keeps
  • Method Details

    • values

      public static DeviceAccountingService.Source[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static DeviceAccountingService.Source valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null