Saltar al contenido

app.journal_entries

TablaSeguridad a nivel de fila activa

Journal entries. Prepared, then posted by someone other than the preparer (Section 8.2); posting into a Closed, Audited or Archived period is refused (invariant 13). Entries generated by approved documents are prepared by the platform.

Clave primaria: id

Columnas de app.journal_entries
ColumnaTipoAdmite nulosDescripción
iduuidNoPrimary key, UUID v7.
org_iduuidNoOwning org, derived from app.accounting_periods on insert; never accepted from the caller and never changed.Hace referencia a app.organizations.id
accounting_period_iduuidNoPeriod the entry posts to; its dates cover entry_date.Hace referencia a app.accounting_periods.id
project_iduuidSíProject the entry belongs to, when it does.Hace referencia a app.projects.id
entry_datedateNoDate the cost or revenue is recognized.
memotextNoWhat the entry records.
journal_stateapp.journal_stateNoProposed, Posted or Canceled. Changes only through app.post_journal_entry and app.cancel_journal_entry.
prepared_byuuidSíPerson who prepared the entry, set from the session; NULL when the platform generated it from an approved document.Hace referencia a app.people.id
posted_byuuidSíPerson who posted the entry; never the preparer.Hace referencia a app.people.id
posted_attimestamp with time zoneSíWhen the entry was posted.
source_tabletextSíTable of the document that generated the entry, such as expenses.
source_iduuidSíId of the document that generated the entry.
created_attimestamp with time zoneNoWhen the row was inserted. Set by the database.
created_byuuidSíPerson who inserted the row, or null for a platform process. Set by the database.Hace referencia a app.people.id
updated_attimestamp with time zoneNoWhen the row last changed. Set by the database.
updated_byuuidSíPerson who last changed the row, or null for a platform process. Set by the database.Hace referencia a app.people.id
deleted_attimestamp with time zoneSíSoft delete time. A row with deleted_at set is ignored by every access helper.