Accounting Module: Chart of Accounts and Financial Notes
The accounting module provides a chart of accounts (plan contable), credit notes, and debit notes for financial record-keeping across all business types.
Use this file to discover all available pages before exploring further.
The accounting module gives every MultiSas company a standard double-entry chart of accounts alongside the ability to issue credit notes that adjust previously generated invoices. Account plan entries classify transactions into assets, liabilities, income, and costs using a predefined set of account codes, while credit notes reference the original sale and production records to maintain a clear audit trail. These features are available starting from Plan Basico and are accessible to all company types.
Stored in collection credit_note. A credit note reduces the value of a previously issued invoice — for example, to correct an overcharge, process a return, or apply a discount after the fact.
Field
Type
Notes
bill_number
String
Auto-generated credit note number
date_credit_note
String
Date the credit note was issued
reason
String
Explanation for the adjustment
total
String
Adjusted total amount
company
Object
Snapshot of company identity (_id, name_company, name_founder, nit_company)
client
Object
Snapshot of client identity (_id, document_type_client, number_document_client, name_client, emial_client, phone_client)
production
Object
Snapshot of the referenced production record (_id, bill_number, price_production, type_production, quantity_production)
sale
Object
Snapshot of the original sale (_id, bill_number, date_sale, quantity, state, price, sub_total, total)
When to use a credit note: Issue a credit note when an invoice has already been delivered to a client but the amount needs to be reduced — such as when goods are returned, a pricing error is found, or a negotiated discount is applied post-invoice.
Stored in collection debit_note. A debit note increases the value owed on a previously issued invoice — for example, to account for additional charges, interest, or quantities not originally billed.
Field
Type
Notes
bill_number
String
Auto-generated debit note number (automatic)
date_debit_note
String
Date the debit note was issued (automatic)
reason
String
Explanation for the additional charge (manual)
total
String
Additional amount to be charged (manual)
company
Object
Snapshot of company identity fields
client
Object
Snapshot of client identity fields
production
Object
Snapshot of the referenced production record
sale
Object
Snapshot of the original sale record
When to use a debit note: Issue a debit note when a client owes more than what was originally invoiced — such as when additional items were delivered, extra services were rendered, or a pricing correction increases the balance due.
The DebitNote model exists in the codebase (src/modules/general/models/DebitNote.js) but no HTTP route is currently registered for creating or retrieving debit notes. Only the credit note route (POST /api/notes/credit/...) is wired up in notesRoutes.js and mounted in app.js. Do not attempt to POST to a debit note endpoint — it will return a 404.
Credit notes require at minimum Plan Basico to be accessible. The TokenValidationPlan middleware enforces this check on the relevant endpoints, rejecting requests from companies on "Sin Plan".
Attempting to create credit notes on a company with available_plans: "Sin Plan" will result in a 403 Forbidden response from the plan validation middleware.
Create a credit note referencing a sale, production, and client
No HTTP endpoint is currently registered for debit note creation. The DebitNote model is defined in the source but the corresponding route has not yet been implemented.
Full Accounting API Reference
Browse the complete endpoint reference for account plans and credit notes.