Accounting

Pääkirja ja raportit

MarkkinapaikkaTalousVersio 0.1.0manifest

Mihin se on tarkoitettu ​

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.

Mitä paketti tekee ja mitä ei ​

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.

Mallit ​

accounting_account ​

An account of the chart of accounts

Lukuryhmä: accounting.user. Kirjoitusryhmä: accounting.manager.

KenttäTyyppiTietoluokkaHenkilötietoRyhmäAgentit näkevätKuvaus
codetextnoneeiaccounting.userselkoisenaAccount code as used in the chart, for example 400000
nametextnoneeiaccounting.userselkoisenaAccount 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)noneeiaccounting.userselkoisenaType 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
reconcileboolnoneeiaccounting.userselkoisenaWhether open items on this account can be reconciled (receivable, payable, bank clearing)
deprecatedboolnoneeiaccounting.userselkoisenaWhether the account is closed to new postings
notelongtextnoneeiaccounting.userselkoisenaInternal remarks about how the account is used

accounting_journal ​

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

Lukuryhmä: accounting.user. Kirjoitusryhmä: accounting.manager.

KenttäTyyppiTietoluokkaHenkilötietoRyhmäAgentit näkevätKuvaus
nametextnoneeiaccounting.userselkoisenaJournal name, for example Customer invoices
codetextnoneeiaccounting.userselkoisenaShort code used in entry numbers, for example INV
kindselect (sale, purchase, cash, bank, general)noneeiaccounting.userselkoisenaWhat the journal records: sale, purchase, cash, bank, general
default_account_idref → accounting_accountnoneeiaccounting.userselkoisenaDefault account for entries of this journal (the bank account for a bank journal)
currencytextnoneeiaccounting.userselkoisenaISO 4217 currency code of the journal, for example EUR; empty means the company currency
activeboolnoneeiaccounting.userselkoisenaWhether the journal can still receive entries

accounting_tax ​

A tax rate that entry lines can refer to

Lukuryhmä: accounting.user. Kirjoitusryhmä: accounting.manager.

KenttäTyyppiTietoluokkaHenkilötietoRyhmäAgentit näkevätKuvaus
nametextnoneeiaccounting.userselkoisenaTax name, for example VAT 20% sales
rate_bpnumbernoneeiaccounting.userselkoisenaRate in basis points: 2000 means 20.00 percent, 550 means 5.50 percent
scopeselect (sales, purchases, none)noneeiaccounting.userselkoisenaWhere the tax applies: sales, purchases, none
price_includedboolnoneeiaccounting.userselkoisenaWhether prices already include this tax
tax_account_idref → accounting_accountnoneeiaccounting.userselkoisenaAccount the tax amount is booked on
activeboolnoneeiaccounting.userselkoisenaWhether the tax can still be chosen on new lines

accounting_fiscal_year ​

A fiscal year, opened and closed as a whole

Lukuryhmä: accounting.user. Kirjoitusryhmä: accounting.manager.

KenttäTyyppiTietoluokkaHenkilötietoRyhmäAgentit näkevätKuvaus
nametextnoneeiaccounting.userselkoisenaFiscal year name, for example FY2026
start_ondatenoneeiaccounting.userselkoisenaFirst day of the fiscal year (YYYY-MM-DD)
end_ondatenoneeiaccounting.userselkoisenaLast day of the fiscal year (YYYY-MM-DD)
stateselect (open, closed)noneeiaccounting.userselkoisenaFiscal year status: open, closed

accounting_period ​

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

Lukuryhmä: accounting.user. Kirjoitusryhmä: accounting.manager.

KenttäTyyppiTietoluokkaHenkilötietoRyhmäAgentit näkevätKuvaus
fiscal_year_idref → accounting_fiscal_yearnoneeiaccounting.userselkoisenaThe fiscal year the period belongs to
nametextnoneeiaccounting.userselkoisenaPeriod name, for example 2026-03
start_ondatenoneeiaccounting.userselkoisenaFirst day of the period (YYYY-MM-DD)
end_ondatenoneeiaccounting.userselkoisenaLast day of the period (YYYY-MM-DD)
stateselect (open, closed)noneeiaccounting.userselkoisenaPeriod status: open, closed

accounting_move ​

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

Lukuryhmä: accounting.user. Kirjoitusryhmä: accounting.user.

KenttäTyyppiTietoluokkaHenkilötietoRyhmäAgentit näkevätKuvaus
journal_idref → accounting_journalnoneeiaccounting.userselkoisenaThe journal the entry belongs to
datedatenoneeiaccounting.userselkoisenaAccounting date of the entry (YYYY-MM-DD)
numbertextnoneeiaccounting.userselkoisenaEntry 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
referencetextnoneeiaccounting.userselkoisenaExternal reference, for example the supplier's invoice number
partner_idref → partynoneeiaccounting.userselkoisenaThe contact the entry is about
narrationlongtextnoneeiaccounting.userselkoisenaFree-text note about the entry
stateselect (draft, posted, cancelled, reversed)noneeiaccounting.userselkoisenaEntry status: draft, posted, cancelled, reversed

accounting_move_line ​

One debit or credit line of a journal entry

Lukuryhmä: accounting.user. Kirjoitusryhmä: accounting.user.

KenttäTyyppiTietoluokkaHenkilötietoRyhmäAgentit näkevätKuvaus
move_idref → accounting_movenoneeiaccounting.userselkoisenaThe journal entry the line belongs to
account_idref → accounting_accountnoneeiaccounting.userselkoisenaThe account the line is booked on
partner_idref → partynoneeiaccounting.userselkoisenaThe contact the line is about
labeltextnoneeiaccounting.userselkoisenaLine description
debitmoneyfinancialeiaccounting.userpidätettyDebit amount in minor currency units; 0 when the line is a credit
creditmoneyfinancialeiaccounting.userpidätettyCredit amount in minor currency units; 0 when the line is a debit
tax_idref → accounting_taxnoneeiaccounting.userselkoisenaTax the line carries, if any
due_ondatenoneeiaccounting.userselkoisenaDue date for receivable and payable lines (YYYY-MM-DD)
reconciledboolnoneeiaccounting.userselkoisenaWhether the line has been matched against a payment

accounting_bank_statement_line ​

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

Lukuryhmä: accounting.user. Kirjoitusryhmä: accounting.user.

KenttäTyyppiTietoluokkaHenkilötietoRyhmäAgentit näkevätKuvaus
journal_idref → accounting_journalnoneeiaccounting.userselkoisenaThe bank journal the statement belongs to
datedatenoneeiaccounting.userselkoisenaBooking date at the bank (YYYY-MM-DD)
labeltextnoneeiaccounting.userselkoisenaPayment reference or description as the bank reports it
amountmoneyfinancialeiaccounting.userpidätettyAmount in minor currency units; positive for money in, negative for money out
counterparty_nametextfinancialkylläaccounting.userpidätettyName of the payer or payee as the bank reports it
counterparty_ibantextfinancialkylläaccounting.userpidätettyBank account of the payer or payee
move_line_idref → accounting_move_linenoneeiaccounting.userselkoisenaThe entry line this statement line was matched to
stateselect (unmatched, matched, reconciled)noneeiaccounting.userselkoisenaMatching status: unmatched, matched, reconciled

Työnkulut ​

accounting_fiscal_year ​

ToimintoSiirtääKuka voi suorittaaHyväksyntä
accounting_fiscal_year.closestate: open → closedaccounting.approverkyllä
accounting_fiscal_year.reopenstate: closed → openaccounting.approverkyllä

accounting_period ​

ToimintoSiirtääKuka voi suorittaaHyväksyntä
accounting_period.closestate: open → closedaccounting.approverkyllä
accounting_period.reopenstate: closed → openaccounting.approverkyllä

accounting_move ​

ToimintoSiirtääKuka voi suorittaaHyväksyntä
accounting_move.poststate: draft → postedaccounting.approverkyllä
accounting_move.cancelstate: draft → cancelledaccounting.userei
accounting_move.reversestate: posted → reversedaccounting.approverkyllä

accounting_bank_statement_line ​

ToimintoSiirtääKuka voi suorittaaHyväksyntä
accounting_bank_statement_line.matchstate: unmatched → matchedaccounting.userei
accounting_bank_statement_line.reconcilestate: matched → reconciledaccounting.managerei
accounting_bank_statement_line.unmatchstate: matched → unmatchedaccounting.userei

Käyttöoikeusryhmät ​

Tämän sovelluksen käyttämät ryhmät:

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

Hyväksyntävaiheet ​

Vaiheet, joita agentti voi vain ehdottaa:

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

Mitä agentit voivat ja eivät voi tehdä ​

Agentti voi lukea, hakea, luoda ja päivittää tämän sovelluksen tietueita sekä suorittaa toiminnot, jotka eivät vaadi hyväksyntää, tunnisteensa käyttöoikeusryhmien rajoissa.

Se voi vain ehdottaa näitä vaiheita, ja ihmisen on hyväksyttävä ne: 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.

Nämä kentät pidätetään agenteilta kokonaan: 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.

Riippuvuudet ​

  • base

Asennus ​

Asenna se Customize-sovelluksesta (Marketplace) tai komentoriviltä:

bash
obop modules install-from accounting

Vaatii tietokannan ja ylläpitäjän oikeudet.

Tee oma ​

Moduulioppaassa näytetään, miten tällaiset sovellukset kirjoitetaan