Accounting information systems

A clerk enters a supplier invoice into the accounting system. What is the main purpose of retaining the invoice or its electronic equivalent?