We reserve the right to change this documentation
The salesledger is one of the ledgers which make up a company’s accounts. It is the only ledger which is included in SendRegning.
The balance of a ledger is the sum of all entries in that ledger. In the case of the salesledger the balance indicates how much money the company’s customers owe it at any given time. To achieve this everything that affects the amount the customers owe must be recorded in the salesledger. Things that increase the amount the customers owe, such as invoices or interest, are recorded as “debit entries” which are represented as positive numbers. Things that decrease the amount customers owe, such as payments or credit notes are recorded as “credit entries” which are represented as negative numbers.
Entries in the salesledger must be connected to a recipient, and are almost always connected to an invoice. This means that it is possible to fetch the balance for a recipient or for an invoice, showing how much is owed by a particular customer or for a particular invoice.
An important principle of accounting is that an entry may not be changed after it has been entered in a ledger. This means that if any incorrect information is added to the ledger a correction entry must first be made such that the total of the incorrect entry and the correction entry is 0. After the correction entry is made a new entry can be added with the correct information. SendRegning automatically creates these correction entries in the use cases where they are needed, but you must be aware that they exist when fetching ledger entries.