An ERP system such as SAP ERP treats a sale as a sequence of related functions, including taking orders, setting prices, checking product availability, checking the customer's credit line, arranging for delivery, billing the customer, and collecting payment. In SAP ErRP, all these transactions, or documents, are electronically linked, so tracking an order's status (partial shipments, returns, partial payments, and so forth) is easily accomplished.