Saltar al contenido

app.invoice_matches

TablaSeguridad a nivel de fila activa

Three-way matches of a payable invoice to a purchase order and a goods receipt (invariant 17). A receipt matches one invoice once; the variance is derived in app.invoice_match_results, and a payable invoice with an unresolved mismatch is never approved.

Clave primaria: id

Columnas de app.invoice_matches
ColumnaTipoAdmite nulosDescripción
iduuidNoPrimary key, UUID v7.
org_iduuidNoOwning org, derived from app.invoices on insert; never accepted from the caller and never changed.Hace referencia a app.organizations.id
invoice_iduuidNoPayable invoice matched.Hace referencia a app.invoices.id
purchase_order_iduuidNoPurchase order the invoice bills.Hace referencia a app.purchase_orders.id
goods_receipt_iduuidNoReceipt of that order the invoice bills. A receipt is matched once.Hace referencia a app.goods_receipts.id
resolution_notetextSíWhy a mismatch is accepted, recorded by someone other than the matcher.
resolved_byuuidSíPerson who accepted the mismatch.Hace referencia a app.people.id
resolved_attimestamp with time zoneSíWhen the mismatch was accepted.
deleted_attimestamp with time zoneSíSoft delete time. A row with deleted_at set is ignored by every access helper.
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