Skip to content
Astera Technology

Record a two-way device swap without an intermediate duplicate

Prepare both new custody rows together and preserve both old associations in one swap record.

Fix the two-way exchange scope

Synthetic confirmed swap SW2 moves DEV-A from S8 to S9 and DEV-B from S9 to S8. Local active-assignment rule gives each device one custodian and these staff one of these devices each. Both physical acknowledgements already exist; the task updates the two-row custody record together, not one row copied over the other.

Prepared swap pair
DeviceOld custodianNew custodian
DEV-AS8S9
DEV-BS9S8
Download editable CSV ↓

Prepare the complete replacement pair

  1. Read both SW2 acknowledgements
  2. Prepare both new rows from old pair
  3. Check unique device and staff assignments
  4. Record one completed swap with old/new pair

One missing acknowledgement leaves the swap unrecorded as complete; do not record a one-sided final pair.

What is the final pair and active assignment count?

Show the worked answer

DEV-A→S9 and DEV-B→S8, two active associations. Old associations are historical; there are not four active loans.

Check the pair before recording completion

Filled administration checks
CaseAction or resultEvidence boundary
UpdateDEV-A only as finalReject incomplete swapS9 would have both devices
Replace complete pair underSW2AcceptTwo unique new custodians
Download editable CSV ↓

The swap record retains both movement acknowledgements and both association revisions. Subsequent device queries use the active pair, not all history rows.

Related resources

Custom software development →