# Default Supplier / Subcontractor Status Report spec, served by
# zddc-server when no operator-supplied table.yaml exists at
# <project>/ssr/.
#
# The SSR is a project-level aggregation: one row per party folder
# under <project>/archive/, each row backed by
# <project>/archive/<party>/ssr.yaml. The synthetic `name` column
# shows the party folder name (which is the row's stable identifier);
# typical naming encodes a MasterFormat 4-digit code plus C|P plus
# a sequence digit (e.g. 0330C1, 0440P2).
#
# To customize: drop your own table.yaml + form.yaml at
# <project>/ssr/table.yaml + form.yaml (the cascade declares
# <project>/ssr/ as virtual, but the spec files themselves can be
# real overrides). Add columns or tighten enums as your project's
# subcontract reporting requires.

title: Supplier / Subcontractor Status
description: One row per party folder under archive/. Click + Add row to create a new party (folder + metadata).

columns:
  - field: name
    title: Party
    width: 8em
  - field: vendorType
    title: Type
    width: 9em
  - field: contractNo
    title: Contract
    width: 10em
  - field: scopeSummary
    title: Scope
  - field: contractValue
    title: Value
    width: 10em
  - field: awardDate
    title: Award
    format: date
    width: 8em
  - field: kickoffDate
    title: Kickoff
    format: date
    width: 8em
  - field: scheduleStatus
    title: Schedule
    width: 9em
    enum: [on-track, at-risk, behind, completed, on-hold]
  - field: deliverablesStatus
    title: Deliv.
    width: 9em
    enum: [on-track, at-risk, behind, completed]
  - field: paymentStatus
    title: Pmt.
    width: 8em
    enum: [current, overdue, hold, complete]
  - field: ownerContact
    title: Owner contact
    width: 14em

defaults:
  sort:
    - { field: name, dir: asc }
