Saltar al contenido

app.purchase_orders

TablaSeguridad a nivel de fila activa

Purchase orders of a project. The creator cannot approve (sod_po_creator), approval runs spend authority, and a closed production refuses new ones (invariant 10). Totals are derived (app.purchase_order_totals).

Clave primaria: id

Columnas de app.purchase_orders
ColumnaTipoAdmite nulosDescripción
iduuidNoPrimary key, UUID v7.
org_iduuidNoOwning org, derived from app.projects on insert; never accepted from the caller and never changed.Hace referencia a app.organizations.id
project_iduuidNoProject buying.Hace referencia a app.projects.id
po_numberbigintNoNumber from the project's display key sequence, issued on insert.
vendor_iduuidNoVendor supplying; never a Blocked or Canceled vendor.Hace referencia a app.vendors.id
rfq_response_iduuidSíAwarded RFQ response the order comes from, when there is one.Hace referencia a app.rfq_responses.id
currency_codecharacter(3)NoISO 4217 currency of the order.Hace referencia a private.currencies.currency_code
po_stateapp.po_stateNoPurchase order state. Changes only through the purchase order RPCs.
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
delivery_due_ondateSíDate the order is due to be delivered.
payment_terms_daysintegerSíDays after invoice the order is payable (Net 30 is 30).
tax_minorbigintSíTax on the order in minor units of currency_code; NULL when not stated (never coerced to 0).
shipping_minorbigintSíShipping charged on the order in minor units of currency_code; NULL when not stated.