Saltar al contenido

app.journal_lines

TablaSeguridad a nivel de fila activa

Lines of a journal entry: one account, dimension 1 and 2, and either a debit or a credit. Immutable once the entry is posted. Posted lines are the Universal Posting Line (app.posting_lines).

Clave primaria: id

Columnas de app.journal_lines
ColumnaTipoAdmite nulosDescripción
iduuidNoPrimary key, UUID v7.
org_iduuidNoOwning org, derived from app.journal_entries on insert; never accepted from the caller and never changed.Hace referencia a app.organizations.id
journal_entry_iduuidNoEntry the line belongs to.Hace referencia a app.journal_entries.id
line_numberintegerNoOrder of the line within the entry.
account_codetextNoGL account from the fixed chart (Bible tab 29).Hace referencia a xpms.dim_gl_account.account_code
cost_center_iduuidSíDimension 1 cost center.Hace referencia a app.cost_centers.id
uridtextSíDimension 2: canon discipline or category.
counterparty_iduuidSíVendor or client the line concerns; NULL for revenue without one.Hace referencia a app.counterparties.id
element_idtextSíCatalog element, when one applies.Hace referencia a xpms.elements.element_id
descriptiontextNoSentence-case line description.
quantitynumericSíQuantity, when the line counts something.
unit_basistextSíUnit of the quantity from the controlled unit list.Hace referencia a xpms.dim_unit_alias.alias
debit_minorbigintNoDebit amount in minor units; zero on a credit line.
credit_minorbigintNoCredit amount in minor units; zero on a debit line.
currency_codecharacter(3)NoISO 4217 currency of the line.Hace referencia a private.currencies.currency_code
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.