Cancel goods transfer
This action requires the "Cancel goods transfers" permission.
Goods transfers cannot be deleted directly, due to the stock transactions that are connected to them. Instead, they need to be "canceled" first.
When canceling a goods transfer, make sure that it is the last transfer to/from the source location (last transaction in the lot). Trying to cancel a goods transfer that is not last will result in an error being shown.
To cancel a goods transfer, go to the details page of goods transfer and open the "Danger zone" section.
You will see a button, labeled as "Cancel". Click and confirm the button to cancel the goods transfer. This will rollback any changes to the stock, done by the goods transfer, as well as delete any stock transactions, tied to this goods transfer.
After the process in finished, the status of the goods transfer will then be updated to "Canceled".
When goods transfer cannot be cancelled (i.e. the error "Transactions exist after this goods transfer." appears), that usually means a transaction after this transfer has been created for one of the items on this transfer. To find the problematic item, list all items in the "Goods transfer Items" table and open every item's Lot.
On the "Lot" page, open "Stock transactions" section, and check the "Show goods transfers" checkbox. All transactions, created after your goods transfer, are the reason, why the goods transfer cannot be canceled.