Chart of Accounts and Legal Books
Astra keeps full double-entry accounting for each business: a chart of accounts based on Costa Rica's IFRS for SMEs (NIIF para PYMES) template, the legal books (Journal, General Ledger, and Trial Balance), cost centers, and opening balances. It all lives in Accounting, inside the Ledger section. This guide walks through each tab, what it does, which permissions it needs, and the warnings you should know before touching the ledger.
The chart of accounts and the books are on the Contabilidad / ERP plans (ERP Pyme, ERP Pro and ERP Plus).
- Where it lives and who can access it
- Overview tab: books against the business
- Generating the chart (NIIF para PYMES)
- A chart of your own
- Accounts tab: the Catalog
- Account mappings (roles)
- Sales and cost by product category
- Purchase categories
- Books tab: the legal books
- Journal
- General Ledger
- Trial Balance
- Manual entries and reversal
- Cost Centers
- Opening Balances
- Export and permissions
Where it lives and who can access it
All of these tools sit in Accounting, at /contabilidad, inside the Ledger section. That section groups six tabs, in this order:
- Overview — Accounting summary and ledger health: unposted documents, unmapped roles and the nightly check of the books against the business (see below).
- Accounts — The chart of accounts and the role mappings.
- Books — Journal, General Ledger, and Trial Balance.
- Statements — Financial statements (Income Statement, Balance Sheet, Cash Flow, Changes in Equity, Notes, and Close).
- Cost Centers — Segmentation by cost center.
- Opening Balances — Guided loading of opening balances, or bringing books that already exist to the real balances.
Permissions
The whole Ledger section requires the Estados financieros y libros contables (financial statements and accounting books) permission of the Contabilidad module — a stronger permission than the Ver (view) that merely opens the module — plus the advanced-accounting add-on on the company's plan. With that permission you can view the chart, the books, the cost centers, and the opening balances, but not change anything.
To modify the ledger — create accounts, map roles, post a manual entry, reverse an entry, create cost centers, or load opening balances — you also need the Gestionar catálogo de cuentas y asientos (manage chart of accounts and entries) permission. Astra re-checks this permission server-side on every action, so a user who only has the financial-statements permission sees the tables but the write buttons will not work.
The built-in Contador (accountant) role already includes both the financial-statements and the manage-the-chart permissions, so an accountant with that role can review the general ledger and post entries. What that role does not include is Tesorería (bancos y métodos de pago) (treasury): if you also want them to see the cash-flow view and bank reconciliation, enable it explicitly on their role.
Overview tab: books against the business
Besides quarantined documents and unmapped roles, the Overview tab shows Books against the business: every night Astra compares your books with your documents and shows you where they disagree.
- Unbalanced entries — entries whose debits do not add up to their credits.
- Documents against entries — invoices, payments and purchases whose amount today is not the one in their entry, for example because they were edited after posting, or voided while the entry is still live.
- Accounts receivable, Accounts payable, Inventory, Banks, Cash, Customer advances and Output VAT — each control account's balance against what the documents say: open invoices and purchases, stock at cost, each bank account's balance (dollar accounts in dollars), the tills' float, your customers' credit and the VAT on the invoices.
- Overpaid invoices and Credit notes above their invoice — for example a payment typed with extra zeros.
- Unclassified expenses — what piled up in account 6.3.23 from purchases nobody classified (in a chart of your own, in the Compras role's account).
- Quarantined documents — those that could not be posted for more than a day. Those dated before the sync window are retried every night.
Each row shows the difference today, the baseline and what is new. The baseline is what the check found on its first night: differences that already existed, shown as Already there. A difference that appears later, or grows past a small margin, is marked New difference in red. When a difference shrinks, the baseline follows it down, so if it grows again it is marked again. Show details lists each check's documents or accounts, with what the books say and what the business says.
The check fixes nothing: it only points. If a new difference appears after a document was edited, review that document with your accountant; differences that already existed when your company started keeping books in Astra usually come from imported history.
Generating the chart (NIIF para PYMES)
A newly created business has no chart of accounts yet. The first time you open the Accounts tab you will see an empty state with a Generate chart of accounts button.
When you press it, Astra copies the Costa Rica IFRS for SMEs template (NIIF para PYMES) into the business's own space, creating the full account tree: Assets (1), Liabilities (2), Equity (3), Income (4), Cost (5), and Expenses (6). Each account gets its code, its name, and its level in the tree, and Astra confirms how many accounts it created.
During generation, Astra also maps automatically the accounting roles to the template accounts whose code it knows (see Account mappings). Roles for which the template has no verified account are left unmapped, for the accountant to configure.
Generating the chart is a one-time step per business. Once generated, the button disappears and you always work on that (editable) tree. The chart is unique to each business: editing yours has no effect on any other organization. If you do not have the manage-the-chart permission, the screen tells you to ask an administrator for it.
A chart of your own
A business can also keep its books in its accountant's chart, with its own codes (for instance 100-02-01), instead of the template. There Astra looks up no template code: every entry goes to the account of a role in Account mappings or to the account of a purchase category, so both lists need to be complete. Also:
- Banks — If the chart splits its banks by currency (for instance BANCOS COLONES and BANCOS EN DÓLARES), each bank account goes in the group of its currency, read from the group's name: a dollar account never ends up under a colones group. If there is no group for its currency, Astra creates no account: pick one in the bank account, under In the books → Pick its ledger account. See Bank accounts → In the books.
- Payments — Each line of a New Payment or a New Recurring Payment carries a template concept. In a chart of your own it posts to the account of the role that matches the concept (Sueldos y salarios goes to Gasto de salarios's); failing that, to its purchase category's (Combustibles y lubricantes goes to the Combustibles category's); a fixed asset goes to Activo fijo's, and an expense that matches nothing goes to the Compras role's, where the Overview flags it. A liability line with no account of its own (a loan payment, for instance) is never booked as an expense: the payment waits in quarantine until its concept is changed.
- Unclassified expenses — With no account 6.3.23, the Overview watches the Compras role's account, where purchases nobody classified land.
- Sales and cost by product line — If your chart keeps a sales account and a cost account for each product line, set them by product category (Contabilidad Pro); otherwise every sale goes to the Sales role's account and its cost to the Cost of goods sold one.
- New bank accounts — While the group of its currency has a free account (the one your accountant already keeps for that bank), Astra creates none: you pick its own in the bank account, or Create a new account. See Bank accounts → In the books.
- New accounts — The ones Astra creates follow their group's numbering: after
100-03-08comes100-03-09.
Accounts tab: the Catalog
The Accounts tab has three views, chosen with the buttons at the top: Catalog, Account mappings and Purchase categories.
The Catalog view shows the account tree in a table, ordered by hierarchical position (child accounts appear indented under their parent). Each row shows:
- Code — The account code (for example,
1.1.1.1.02for petty cash). - Name — The account name, indented by its level.
- Type — Asset, Liability, Equity, Income, Cost, Expense, or Memo.
- Postable — Whether the account accepts entries directly (only leaf accounts are postable).
- Active — Whether the account is active or deactivated.
Each company bank account, cash account and card has its own account in the chart, named after it: banks under 1.1.1.2 Bancos, cash accounts under 1.1.1.1 Caja and cards under their group in liabilities. Astra creates it on its own when you create the bank account, and if you rename the bank account, the ledger account is renamed with it while it keeps the name Astra gave it. See Bank accounts → In the books.
Filters
The top bar lets you filter the chart by:
- Search by code or name.
- All types — or one specific type (Asset, Liability, etc.).
- Show inactive — A toggle to include deactivated accounts, which are hidden by default.
Creating an account
With the Gestionar catálogo de cuentas y asientos permission, the Add account button opens a form with these fields:
- Parent account — Optional. Choose which account to nest the new one under; leave it on No parent (root account) and the account is created as a root.
- Code — Required and unique within the business. You cannot reuse a code already in use.
- Name — Required.
- Type — Applies only to root accounts: if you pick a parent, the account inherits its type.
- Postable — Check this if the account should accept direct entries.
Astra inserts the account at the end of its parent's subtree to preserve the visual nesting.
When you add a child account to an account that was postable, that parent automatically stops being postable (the "only leaves receive entries" rule applies). If the parent account already has a mapped role or already has ledger movements, Astra blocks the operation: you must first re-map the role or create the sub-account somewhere else. This prevents orphaning whole posting domains or stranding history.
Activating and deactivating accounts
Instead of deleting accounts (which would break the entry history), Astra lets you deactivate them. Reactivation is always safe. On deactivation, Astra blocks the operation if:
- The account is assigned to an accounting role — deactivating it would leave that posting domain without a target.
- The account has active sub-accounts — you have to deactivate the sub-accounts first.
- An active bank account posts to it — pick another one for it first, with Use another ledger account in Bank accounts.
- A product category posts its sales or cost to it — change it first in Sales and cost by product category.
Account mappings (roles)
The second view of the Accounts tab is Account mappings. This is the key that connects Astra's day-to-day operations to double-entry accounting.
Astra's posting engine never references account codes directly. Instead it uses semantic roles — for example Sales, Output VAT, Input VAT, Cash, Bank, Accounts Receivable, Accounts Payable, Cost of Sales, Salary Expense, Accumulated Depreciation, and dozens more. Each role is assigned to one postable account from the chart. When a sale, a payment, a purchase, or payroll happens, the engine consults the mapping to know which account to debit and which to credit.
The screen lists all the roles with a dropdown next to each; you pick the account from your chart for each role. Only postable and active accounts appear as targets. Unmapped roles carry an Unmapped label: they must be configured before automatic posting can use them.
Each role expects a specific account type. For example, Sales must point to an Income account, Cash to an Asset, Output VAT to a Liability, and Opening balance to Equity. A role mapped to the wrong account type still produces a balanced entry, but the amount lands in the wrong financial statement (or vanishes from the Income Statement) with no visible error at posting time. The Overview tab of the Ledger section warns you when it detects roles pointing at an account of the wrong kind; check there after touching the mappings.
The NIIF para PYMES template auto-maps the most common roles when the chart is generated. The Compras role starts on 6.3.23 Gastos por clasificar, a holding account: point it at the account your company uses. Some specialized roles are intentionally left unmapped because the template has no suitable leaf account — for example the production sub-inventories or absorbed production costs. If your business needs them, create the leaf account in the Catalog and then map the role here.
Four roles cover what changes inventory or a fixed asset without being a sale or a purchase: Ajustes al inventario (5.1.1.01, inventory adjustments: counts, damage, shortages and overages; see Inventory), Inventario inicial (3.6.02 Ajustes iniciales en inventario, opening inventory, in equity), Ganancia en venta de activos (4.2.3.03, gain on the sale of assets) and Pérdida por venta o baja de activos (6.5.04, loss on the sale or write-off of assets; see Assets). The template maps them on its own; change them if your accountant prefers other accounts.
Sales and cost by product category
With Contabilidad Pro (from ERP Pro), Sales and cost by product category appears above the roles. It is for a chart that keeps a sales account and a cost account for each product line, for instance Ventas Plomo and CMV Plomo, Venta Polipropileno and CMV Polipropileno. Give each product category its Sales account (an income account) and its Cost of goods sold account (a cost or expense account).
- Invoices — Each line credits the sales account of its product's category, for its amount before VAT and after its discount, and its cost goes to that category's cost account. When the invoice has a discount on the total, each category takes its share.
- What has no category — A line with no product, a product with no category, or a category with no account of its own goes to the Sales and Cost of goods sold roles, as always. The first option of each picker says which role it is and which account it goes to.
- Credit notes — They reduce the category's own sales account, not Sales returns, so each product line shows its net sales. When the note cancels the whole invoice, its cost comes back out of the category's cost account.
- Cancellations and changes — Cancelling an invoice reverses it on the same accounts. A change to a category's accounts applies to sales posted from then on; those already posted stay where they are unless the invoice is posted again (when it is edited, for instance).
Categories are created from a product's Category field (see Products → Categories). If the chosen account stops taking postings (because you gave it sub-accounts, for instance), the screen says so and the role is used meanwhile. An account a category uses cannot be deactivated.
Purchase categories
The third view takes you to Expenses → Categories, the page where purchase categories (Agua, Publicidad y mercadeo, Combustibles…) are managed now, together with the account their purchases go to. There each category shows what goes in it, how much it was used in the last 12 months and its account in a picker with search. See Expense categories → Each category's account.
Astra comes with an account of its own for each default category: Agua (water) goes to 6.3.3.03 Agua, Publicidad y mercadeo (advertising) to 6.3.12 Propaganda y publicidad, Comisiones bancarias (bank charges) to 6.5.01 Comisiones bancarias, Otros servicios profesionales to 6.3.1.03, Mantenimiento de vehículos to 6.3.19.05, Materiales y suministros to 6.3.25, and so on. Categories your company added go to 6.3.21 Otros gastos generales until you pick one; the page flags them so they don't get lost.
Three categories are not expenses: Mercadería para la venta (inventario) (goods for resale) goes to the Inventory role's account, and Activo fijo (fixed asset) to the Fixed asset role's. Personal (no es de la empresa) stays out of expenses, company accounts payable and IVA credit. If the company records a payment of that purchase, the payment goes to the Receivable from owners role, including IVA. Change these accounts in Account mappings. See A purchase that isn't the company's.
Each purchase's category is picked when it's classified. Purchases that arrive without a category sit in 6.3.23 Gastos por clasificar until someone classifies them in Expenses → Purchases to review, and what each supplier brings by default is set in Expenses → Suppliers. See Classifying your purchases.
Today each category's account is used by companies with automatic purchases switched on, where every accepted document becomes a purchase by itself. Everywhere else, every purchase still goes to the Compras role's account. A change here applies to purchases recorded from then on. Purchases already posted stay where they are, unless your accountant asks for them to be posted again.
Books tab: the legal books
The Books tab is where you view and export the three legal books. A top selector switches between the three views: Journal, General Ledger, and Trial Balance.
All books work by monthly period: at the top there are month and year selectors. The period you choose is remembered in your session, so returning to the tab keeps the month you were working with. Everything is accounted for converted to colones, and the figures come exclusively from ledger entries.
Journal
The Journal shows, in chronological order, every entry posted within the selected month. Each entry is presented with:
- Entry number — The entry's consecutive number.
- Date — The entry's accounting date.
- Detail — The entry's narrative and each line's memo.
- Source document — Next to the narrative, entries derived from a document carry a direct link to that invoice, payment, expense, or payroll run. A payment's narrative says who paid or was paid and which documents it settles (for example, «Pago de Panadería La Espiga S.A. · Factura FV-0103»); the link shows the payment's reference.
- Posted by — The user who posted it, or "System" when the automatic sync generated it.
- Debit and credit lines — Each line with its account (code and name) and its amount in the Debit or Credit column.
The Journal gathers both the entries Astra generates automatically from your operations and the manual entries the accountant posts. Entries that have been reversed and the reversing entries themselves are shown with a label.
General Ledger
The General Ledger shows the movement of one account across the month. First pick the account in the selector (only postable, active accounts are listed). Once selected, Astra shows:
- Opening balance — The account's net balance at the start of the period (everything accumulated before the first day of the month).
- Period movements — Each entry that touched the account, with date, entry number, detail (with a link to the source document where there is one), debit, credit, and a running balance that recalculates line by line, using the account's natural sign.
- Closing balance — The final balance after applying all the month's movements.
If you open the Ledger view without choosing an account, Astra asks you to select one before it can show the detail.
Entries reversed within the month. Each time a posted document is edited or classified, Astra reverses its entry and posts it again with the corrected figures. An entry and its reversal that fall in the same month cancel each other out, so the General Ledger and the Trial Balance hide them: the movements show only what really happened, and no balance changes. A note above the table says how many were hidden; tick Show reversed to see them (the same box works for the Journal, the Ledger and the Trial Balance). The reversal of another month's entry is shown, because that one does change the month.
Trial Balance
The Trial Balance (balance of sums and balances) is the summary that proves the accounting reconciles. It lists the accounts with their code and name and, for each one, six amount columns:
- Opening balance (Debit / Credit) — The period's opening balance, placed in the column matching its nature.
- Period movements (Debit / Credit) — The debits and credits posted during the month.
- Closing balance (Debit / Credit) — The closing balance.
A totals row is shown at the bottom. The proof that the accounting is balanced is that the Debit and Credit totals match, both for the period movements and for the closing balances.
To see where a figure comes from, click the account. A window opens with its movements for the month: the opening balance, each entry with its date, number and description, and the closing balance. They are the same figures as the trial balance row. Next to the description, the blue link opens the document that created the movement (invoice, payment, purchase, payroll). Close the window with the X or Esc to go back to the trial balance.
The Trial Balance is the starting point for reviewing the financial statements. If the trial balance does not reconcile, review the period's Journal entries before issuing statements.
Manual entries and reversal
Within the Books tab, with the Gestionar catálogo de cuentas y asientos permission, the accountant can post a manual entry. The form includes:
- Date of the entry.
- Description — General narrative for the entry.
- Lines — Each line with its account, an amount in the Debit or the Credit column, an optional per-line detail, and an optional cost center. You can add and remove lines; there are always at least two.
The form shows live Debit and Credit totals and tells you whether the entry balances. Astra will not post an unbalanced entry: if the Debit total does not equal the Credit total, or if the period is already closed, the operation is rejected with a clear message.
Only manual entries (including opening-balance and year-end closing entries) can be reversed from this tab. An entry derived from a document — a sale, a payment, a purchase — cannot be reversed here: it must be corrected through its source document. Astra rejects the attempt with a notice. Reversing a system entry directly would detach the accounting from the documents, and the next sync would post it again.
When you reverse a manual entry, Astra creates the inverse entry (with the accounts swapped) so the annulment is recorded, instead of deleting the original; both are labeled in the Journal. The reversal carries the original entry's date, so the entry leaves the month it was in; if that month is already closed, it goes on the first open day and its description gives the original date. The same holds for every reversal Astra makes on its own (a deleted or edited document, an undone reconciliation adjustment). All activity (posting and reversal) is written to the audit log with the responsible user.
Cost Centers
The Cost Centers tab lets you create segments (for example: branch, project, business line, department) that you can then tag on entry lines. They let you analyze income and expenses by segment without multiplying the number of accounts in the chart, and they feed the cost-center filter on the Income Statement.
Each cost center has a Code and a Name. The code is the value stamped on entry lines (for example, when posting a manual entry). With the Gestionar catálogo de cuentas y asientos permission you can:
- Create a center (code unique within the business + name).
- Edit the name of an existing center.
- Activate / deactivate a center.
The table shows, next to each center, how many entry lines reference its code, so you can see usage before deactivating it.
Cost centers are deactivated, never deleted: the code stays referenced in historical entries, and deleting it would break that link. Deactivating just prevents further use on new entries.
Opening Balances
The Opening Balances tab is a guided wizard to load the business's opening balances — typically when migrating accounting from another system or starting the fiscal year. Instead of building the entry by hand, you type each account's balance and Astra builds a single balanced entry for you.
How it works
- Opening date — Defaults to January 1 of the current year; you can change it.
- Balances per account — Postable accounts are grouped by type (Assets, Liabilities, Equity, etc.). Type each account's balance on its natural side: an asset with its debit balance, a liability with its credit balance. You do not indicate Debit or Credit; Astra infers it from the account type. An account that subtracts from its group, like accumulated depreciation, is typed as a negative: it lands on the other side.
- Automatic equity adjustment — When total debits do not equal total credits, Astra absorbs the difference into the Retained earnings account (the "Opening balance" role), so the entry always closes balanced. If that role is not mapped to any account, Astra warns you and posts nothing.
The screen shows a live preview with the Debit total, the Credit total, and the amount that will go to the equity adjustment. On confirmation, Astra posts the entry with the narrative "Opening balances".
Only one live opening-balance entry can exist per business. If you already loaded the balances and need to correct them, first reverse the previous entry in the Books tab and then load them again here. Astra blocks posting a second opening entry to avoid doubling the figures. The adjustment account (Retained earnings / Opening balance) does not appear in the list of accounts to type, because it is added automatically as the balancing line.
Set real balances: the opening for books that already exist
Opening Balances has two modes. New books is the wizard above, for empty books. Set real balances is for a business whose books Astra has already been filling on its own, from its sales, purchases and payments, and that starts keeping them for real —on January 1, for example— or wants them trued up at a month's end. If the business already has entries, the tab opens in this mode.
- Balances as of — The cut-off date. Defaults to the last day of the previous month; to start a year, December 31.
- In the books — What each balance-sheet account holds on that date. Income and expense accounts are not touched.
- What Astra knows — Next to each account, what Astra already has to compare it with: the balance of the last bank statement imported up to that date and the account's balance in Astra today; the invoices customers owed on that date (Accounts receivable) and the purchases the business owed (Accounts payable). use copies that figure into the real balance.
- Real balance — Type the real balance of the accounts that need one, on its natural side, as in New books, and leave blank the ones that are already right. A dollar account is typed in dollars: Astra converts it at BCCR's closing rate of that date, so that month's revaluation has nothing to do.
- Set the balance in Astra to the books' — On each of the business's bank, cash and card accounts. Ticked, the balance the bank accounts list shows becomes the books': the real one on the cut-off date plus whatever was recorded since. That way Astra, the books and the bank say the same from then on.
When you record it, Astra makes a single entry, dated the cut-off, that takes each account to its real balance; the difference goes to Retained earnings. It can be done more than once, because each opening starts from what the books hold at that moment: for example a rehearsal at a month's end and the final one on December 31. Below, Openings recorded lists each one with its entry, and Undo reverses the entry and gives the balances in Astra back what they were, without losing what was recorded since. Recording and undoing require the Manage chart of accounts and journal entries permission.
Books that start on a date. If the business's accounting starts on a given day (for example, the month it moved to the Régimen Tradicional), its accountant can ask Astra support to start the books on that date. From then on nothing earlier reaches the accounting: earlier invoices, purchases and payments stay in Astra as operations only, what was already in the books is reversed on its own date, and the books are left at zero on the day before. The opening is then recorded with Set real balances as of that day before, with the real balances of that date.
Before recording the opening, bring what Astra knows up to date: old invoices that were in fact collected or won't be, purchases already paid, the inventory count. That way "What Astra knows" matches reality, and the books' Accounts receivable and payable end up equal to the pending invoices, which is what Astra reduces as collections come in and payments go out.
Export and permissions
The three books (Journal, Ledger, Trial Balance) and the chart of accounts have an Excel button to download the period's content. Exporting requires the Exportar (export) permission of the Contabilidad module, which Astra re-checks server-side.
- Journal — One row per entry line, with number, date, detail, account (code and name), debit, and credit.
- Ledger — The chosen account's movement with its running balance (if you did not choose an account, it exports a headers-only sheet).
- Trial Balance — The six amount columns per account (opening, period, and closing in Debit/Credit) plus the totals row.
- Catalog — The account tree with code, name, type, whether it is postable, and whether it is active.
Permission summary
- Estados financieros y libros contables — View the chart, the books, the cost centers, and the opening balances.
- Gestionar catálogo de cuentas y asientos — Create/edit accounts, map roles, post and reverse entries, manage cost centers, and load opening balances.
- Exportar — Download the books and the chart to Excel.
All three are permissions of the Contabilidad module in the role editor, and the whole section additionally depends on the advanced-accounting add-on on the company's plan.
A typical flow when setting up a new business's accounting: (1) generate the NIIF para PYMES chart in the Accounts tab; (2) review and complete the Account mappings, paying attention to the roles marked Unmapped; (3) create the cost centers you will use; (4) load the Opening Balances (if the business was already using Astra, with Set real balances); and (5) verify in the Trial Balance that the opening reconciles before operating.
Need more help?
Our team is ready to assist you.