Class SerialTrackingGuard.Line

java.lang.Object
org.bgerp.plugin.inventoru.service.SerialTrackingGuard.Line
Enclosing class:
SerialTrackingGuard

public static final class SerialTrackingGuard.Line extends Object
One store and position: the balance against the units standing there.
  • Method Details

    • getStoreId

      public int getStoreId()
    • getStoreTitle

      public String getStoreTitle()
    • getItemId

      public int getItemId()
    • getItemTitle

      public String getItemTitle()
    • getQuantity

      public BigDecimal getQuantity()
    • getDevices

      public int getDevices()
    • getReservesWithoutSerial

      public BigDecimal getReservesWithoutSerial()
      Units reserved without a serial number — quantity, not movements: one reserve may hold several.
    • getUncovered

      public BigDecimal getUncovered()
      Balance no unit backs yet: serial numbers still to be filled in.
    • getExcess

      public BigDecimal getExcess()
      Units beyond the balance. Counted as a number, not as whole units: two units against a balance of 1.5 used to truncate to none, the guard let the position be tracked per unit, and every movement of it was then refused by MovementDAO — which compares the same two without truncating.
    • isProblem

      public boolean isProblem()
    • describe

      public String describe()
      Returns:
      the line in words, for a refusal message