How were things done before a computer was invented?

Bookkeeping was done in a general ledger. All entries were manually written and posted as a debit or a credit. All columns with numbers recorded had to be totalled and must balance at the end of each month.