Accounting

Huvudbok och rapporter

MarknadsplatsEkonomiVersion 0.1.0manifest

Vad den är till för ​

A chart of accounts, journals, tax rates, journal entries with debit and credit lines, fiscal periods and bank statement lines. Nothing is computed for you: balancing and tax amounts are the responsibility of whoever enters them. Posting and closing need approval.

Vad paketet gör och inte gör ​

Chart of accounts, journals, tax rates, journal entries with debit and credit lines, fiscal years and periods, and bank statement lines. Amounts are money fields in minor currency units and tax rates are numbers in basis points (2000 means 20.00 percent). Nothing is computed: balancing of debits and credits, tax amounts and entry numbers are the responsibility of whoever enters them. Posting an entry and closing a period or fiscal year need a human approval and the stricter accounting.approver group; agents may only propose them.

Modeller ​

accounting_account ​

An account of the chart of accounts

Läsgrupp: accounting.user. Skrivgrupp: accounting.manager.

FältTypDataklassPersonuppgiftGruppAgenter serBeskrivning
codetextnonenejaccounting.useri klartextAccount code as used in the chart, for example 400000
nametextnonenejaccounting.useri klartextAccount name, for example Trade receivables
account_typeselect (asset_receivable, asset_cash, asset_current, asset_fixed, liability_payable, liability_current, liability_non_current, equity, income, income_other, expense, expense_direct_cost)nonenejaccounting.useri klartextType of account: asset_receivable, asset_cash, asset_current, asset_fixed, liability_payable, liability_current, liability_non_current, equity, income, income_other, expense, expense_direct_cost
reconcileboolnonenejaccounting.useri klartextWhether open items on this account can be reconciled (receivable, payable, bank clearing)
deprecatedboolnonenejaccounting.useri klartextWhether the account is closed to new postings
notelongtextnonenejaccounting.useri klartextInternal remarks about how the account is used

accounting_journal ​

A journal that groups entries of one kind (sales, purchases, bank, cash, miscellaneous)

Läsgrupp: accounting.user. Skrivgrupp: accounting.manager.

FältTypDataklassPersonuppgiftGruppAgenter serBeskrivning
nametextnonenejaccounting.useri klartextJournal name, for example Customer invoices
codetextnonenejaccounting.useri klartextShort code used in entry numbers, for example INV
kindselect (sale, purchase, cash, bank, general)nonenejaccounting.useri klartextWhat the journal records: sale, purchase, cash, bank, general
default_account_idref → accounting_accountnonenejaccounting.useri klartextDefault account for entries of this journal (the bank account for a bank journal)
currencytextnonenejaccounting.useri klartextISO 4217 currency code of the journal, for example EUR; empty means the company currency
activeboolnonenejaccounting.useri klartextWhether the journal can still receive entries

accounting_tax ​

A tax rate that entry lines can refer to

Läsgrupp: accounting.user. Skrivgrupp: accounting.manager.

FältTypDataklassPersonuppgiftGruppAgenter serBeskrivning
nametextnonenejaccounting.useri klartextTax name, for example VAT 20% sales
rate_bpnumbernonenejaccounting.useri klartextRate in basis points: 2000 means 20.00 percent, 550 means 5.50 percent
scopeselect (sales, purchases, none)nonenejaccounting.useri klartextWhere the tax applies: sales, purchases, none
price_includedboolnonenejaccounting.useri klartextWhether prices already include this tax
tax_account_idref → accounting_accountnonenejaccounting.useri klartextAccount the tax amount is booked on
activeboolnonenejaccounting.useri klartextWhether the tax can still be chosen on new lines

accounting_fiscal_year ​

A fiscal year, opened and closed as a whole

Läsgrupp: accounting.user. Skrivgrupp: accounting.manager.

FältTypDataklassPersonuppgiftGruppAgenter serBeskrivning
nametextnonenejaccounting.useri klartextFiscal year name, for example FY2026
start_ondatenonenejaccounting.useri klartextFirst day of the fiscal year (YYYY-MM-DD)
end_ondatenonenejaccounting.useri klartextLast day of the fiscal year (YYYY-MM-DD)
stateselect (open, closed)nonenejaccounting.useri klartextFiscal year status: open, closed

accounting_period ​

An accounting period (normally a month) inside a fiscal year

Läsgrupp: accounting.user. Skrivgrupp: accounting.manager.

FältTypDataklassPersonuppgiftGruppAgenter serBeskrivning
fiscal_year_idref → accounting_fiscal_yearnonenejaccounting.useri klartextThe fiscal year the period belongs to
nametextnonenejaccounting.useri klartextPeriod name, for example 2026-03
start_ondatenonenejaccounting.useri klartextFirst day of the period (YYYY-MM-DD)
end_ondatenonenejaccounting.useri klartextLast day of the period (YYYY-MM-DD)
stateselect (open, closed)nonenejaccounting.useri klartextPeriod status: open, closed

accounting_move ​

A journal entry: a dated set of debit and credit lines in one journal

Läsgrupp: accounting.user. Skrivgrupp: accounting.user.

FältTypDataklassPersonuppgiftGruppAgenter serBeskrivning
journal_idref → accounting_journalnonenejaccounting.useri klartextThe journal the entry belongs to
datedatenonenejaccounting.useri klartextAccounting date of the entry (YYYY-MM-DD)
numbertextnonenejaccounting.useri klartextEntry number such as INV/2026/0001. Free text: packages cannot generate sequences, so whoever posts the entry assigns the next number by hand and keeps the series gapless
referencetextnonenejaccounting.useri klartextExternal reference, for example the supplier's invoice number
partner_idref → partynonenejaccounting.useri klartextThe contact the entry is about
narrationlongtextnonenejaccounting.useri klartextFree-text note about the entry
stateselect (draft, posted, cancelled, reversed)nonenejaccounting.useri klartextEntry status: draft, posted, cancelled, reversed

accounting_move_line ​

One debit or credit line of a journal entry

Läsgrupp: accounting.user. Skrivgrupp: accounting.user.

FältTypDataklassPersonuppgiftGruppAgenter serBeskrivning
move_idref → accounting_movenonenejaccounting.useri klartextThe journal entry the line belongs to
account_idref → accounting_accountnonenejaccounting.useri klartextThe account the line is booked on
partner_idref → partynonenejaccounting.useri klartextThe contact the line is about
labeltextnonenejaccounting.useri klartextLine description
debitmoneyfinancialnejaccounting.userundanhållenDebit amount in minor currency units; 0 when the line is a credit
creditmoneyfinancialnejaccounting.userundanhållenCredit amount in minor currency units; 0 when the line is a debit
tax_idref → accounting_taxnonenejaccounting.useri klartextTax the line carries, if any
due_ondatenonenejaccounting.useri klartextDue date for receivable and payable lines (YYYY-MM-DD)
reconciledboolnonenejaccounting.useri klartextWhether the line has been matched against a payment

accounting_bank_statement_line ​

A line of a bank statement waiting to be matched to entries

Läsgrupp: accounting.user. Skrivgrupp: accounting.user.

FältTypDataklassPersonuppgiftGruppAgenter serBeskrivning
journal_idref → accounting_journalnonenejaccounting.useri klartextThe bank journal the statement belongs to
datedatenonenejaccounting.useri klartextBooking date at the bank (YYYY-MM-DD)
labeltextnonenejaccounting.useri klartextPayment reference or description as the bank reports it
amountmoneyfinancialnejaccounting.userundanhållenAmount in minor currency units; positive for money in, negative for money out
counterparty_nametextfinancialjaaccounting.userundanhållenName of the payer or payee as the bank reports it
counterparty_ibantextfinancialjaaccounting.userundanhållenBank account of the payer or payee
move_line_idref → accounting_move_linenonenejaccounting.useri klartextThe entry line this statement line was matched to
stateselect (unmatched, matched, reconciled)nonenejaccounting.useri klartextMatching status: unmatched, matched, reconciled

Arbetsflöden ​

accounting_fiscal_year ​

ÅtgärdFlyttarVem får köra denGodkännande
accounting_fiscal_year.closestate: open → closedaccounting.approverja
accounting_fiscal_year.reopenstate: closed → openaccounting.approverja

accounting_period ​

ÅtgärdFlyttarVem får köra denGodkännande
accounting_period.closestate: open → closedaccounting.approverja
accounting_period.reopenstate: closed → openaccounting.approverja

accounting_move ​

ÅtgärdFlyttarVem får köra denGodkännande
accounting_move.poststate: draft → postedaccounting.approverja
accounting_move.cancelstate: draft → cancelledaccounting.usernej
accounting_move.reversestate: posted → reversedaccounting.approverja

accounting_bank_statement_line ​

ÅtgärdFlyttarVem får köra denGodkännande
accounting_bank_statement_line.matchstate: unmatched → matchedaccounting.usernej
accounting_bank_statement_line.reconcilestate: matched → reconciledaccounting.managernej
accounting_bank_statement_line.unmatchstate: matched → unmatchedaccounting.usernej

Behörighetsgrupper ​

Grupper som den här appen använder:

  • accounting.approver
  • accounting.manager
  • accounting.user

Steg som kräver godkännande ​

Steg som en agent bara kan föreslå:

  • accounting_fiscal_year.close
  • accounting_fiscal_year.reopen
  • accounting_period.close
  • accounting_period.reopen
  • accounting_move.post
  • accounting_move.reverse

Vad agenter kan och inte kan göra ​

En agent kan läsa, söka, skapa och uppdatera poster i den här appen, och köra de åtgärder som inte kräver godkännande, inom behörighetsgrupperna för sin token.

Den kan bara föreslå de här stegen, och en person måste godkänna dem: accounting_fiscal_year.close, accounting_fiscal_year.reopen, accounting_period.close, accounting_period.reopen, accounting_move.post, accounting_move.reverse, accounting_account.delete, accounting_journal.delete, accounting_tax.delete, accounting_fiscal_year.delete, accounting_period.delete, accounting_move.delete, accounting_move_line.delete, accounting_bank_statement_line.delete.

De här fälten undanhålls helt från agenter: accounting_move_line.debit, accounting_move_line.credit, accounting_bank_statement_line.amount, accounting_bank_statement_line.counterparty_name, accounting_bank_statement_line.counterparty_iban.

Beroenden ​

  • base

Installera ​

Installera den från appen Customize (Marknadsplats), eller från kommandoraden:

bash
obop modules install-from accounting

Kräver en databas och administratörsbehörighet.

Bygg din egen ​

Modulguiden visar hur appar som den här skrivs