You can void a shipment receipt transaction that was created in error. When you void a shipment receipt, the record returns to its former state and storeroom balances are resolved.
A voided receipt has the same effect on storeroom balances as a return, but a voided receipt cannot be used on a credit invoice.