Class ExportQueue

java.lang.Object
org.bgerp.plugin.inventoru.sync1c.model.ExportQueue

public class ExportQueue extends Object
Export queue entry for write-off export to 1C.
  • Field Details

    • STATUS_PENDING

      public static final String STATUS_PENDING
      See Also:
    • STATUS_SUCCESS

      public static final String STATUS_SUCCESS
      See Also:
    • STATUS_FAILED

      public static final String STATUS_FAILED
      See Also:
    • STATUS_CANCELLED

      public static final String STATUS_CANCELLED
      See Also:
    • STATUS_REVERSED

      public static final String STATUS_REVERSED
      Write-off was already sent to 1C, but the process was later moved back out of the write-off status.
      See Also:
    • STATUS_UNPOSTED

      public static final String STATUS_UNPOSTED
      1C accepted the write-off, but writing the movements in ERP failed and was rolled back. Never sent again; posted in ERP from the export queue once the cause is fixed.
      See Also:
    • STATUS_LOCAL

      public static final String STATUS_LOCAL
      Written off in ERP by hand, and 1C will never hold this write-off — the decision of whoever pressed it, not a failure. Kept apart from STATUS_SUCCESS because the two leave the books in different places: after a success 1C shows the same goods gone, after this it still shows them standing on the warehouse, and the next stock import will offer to bring them back. This row is the only record of why.
      See Also:
  • Constructor Details

    • ExportQueue

      public ExportQueue()
  • Method Details

    • needsDecision

      public boolean needsDecision()
      Whether the entry is waiting for a person to decide something — and, with it, whether the reserve of the process is still standing because of this entry. Wider than what a confirmation may claim (finalizeOpenStatus: pending or failed): unposted is settled as far as 1C is concerned but has no write-off in ERP yet — the movements were rolled back — so the reserve hangs exactly as it does while waiting, and the way out is «Провести в ERP», not a confirmation.
    • getId

      public int getId()
    • setId

      public void setId(int id)
    • getProcessId

      public int getProcessId()
    • setProcessId

      public void setProcessId(int processId)
    • getInstanceId

      public int getInstanceId()
    • setInstanceId

      public void setInstanceId(int instanceId)
    • getStoreId

      public int getStoreId()
    • setStoreId

      public void setStoreId(int storeId)
    • getWarehouseId

      public String getWarehouseId()
    • setWarehouseId

      public void setWarehouseId(String warehouseId)
    • getStatus

      public String getStatus()
    • setStatus

      public void setStatus(String status)
    • getAttempts

      public int getAttempts()
    • setAttempts

      public void setAttempts(int attempts)
    • getLastError

      public String getLastError()
    • setLastError

      public void setLastError(String lastError)
    • getCreatedAt

      public Date getCreatedAt()
    • setCreatedAt

      public void setCreatedAt(Date createdAt)
    • getUpdatedAt

      public Date getUpdatedAt()
    • setUpdatedAt

      public void setUpdatedAt(Date updatedAt)
    • getConfirmedBy

      public int getConfirmedBy()
    • setConfirmedBy

      public void setConfirmedBy(int confirmedBy)
    • getConfirmedAt

      public Date getConfirmedAt()
    • setConfirmedAt

      public void setConfirmedAt(Date confirmedAt)