Class ExportQueue
java.lang.Object
org.bgerp.plugin.inventoru.sync1c.model.ExportQueue
Export queue entry for write-off export to 1C.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final StringWritten off in ERP by hand, and 1C will never hold this write-off — the decision of whoever pressed it, not a failure.static final Stringstatic final StringWrite-off was already sent to 1C, but the process was later moved back out of the write-off status.static final Stringstatic final String1C accepted the write-off, but writing the movements in ERP failed and was rolled back. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintintgetId()intintintbooleanWhether 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.voidsetAttempts(int attempts) voidsetConfirmedAt(Date confirmedAt) voidsetConfirmedBy(int confirmedBy) voidsetCreatedAt(Date createdAt) voidsetId(int id) voidsetInstanceId(int instanceId) voidsetLastError(String lastError) voidsetProcessId(int processId) voidvoidsetStoreId(int storeId) voidsetUpdatedAt(Date updatedAt) voidsetWarehouseId(String warehouseId)
-
Field Details
-
STATUS_PENDING
- See Also:
-
STATUS_SUCCESS
- See Also:
-
STATUS_FAILED
- See Also:
-
STATUS_CANCELLED
- See Also:
-
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
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
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 fromSTATUS_SUCCESSbecause 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):unpostedis 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
-
setWarehouseId
-
getStatus
-
setStatus
-
getAttempts
public int getAttempts() -
setAttempts
public void setAttempts(int attempts) -
getLastError
-
setLastError
-
getCreatedAt
-
setCreatedAt
-
getUpdatedAt
-
setUpdatedAt
-
getConfirmedBy
public int getConfirmedBy() -
setConfirmedBy
public void setConfirmedBy(int confirmedBy) -
getConfirmedAt
-
setConfirmedAt
-