A cheque is assembled from entries on three basic files - Earnings, Deductions, and Cheques. In order to support multiple cheques in a single pay period, the cheque number is attached to each record in each file. A manual cheque is documented by entering each of its parts with the cheque number. An automated cheque has the cheque number updated to Earnings and Deductions when the cheque is printed.