Updating Validated Inventory
No existing inventory is deleted. For each inventory piece, the following logics are realized:
IF: existing activity has inventory with the same key values as this inventory piece
THEN: all non-key fields of existing inventory are updated with values from the command AND fields of the existing inventory absent in the inbound command are deleted (if any)
IF: existing activity does not have this inventory piece
THEN: new inventory is inserted