API · v1 · stabiel
CODEMETA OSDeveloper Center
NL
Console openen
Entity · project_positions

Project Position Schema

Schema-ID
project_position
Collection
project_positions
Permissions
  • Lezenproject_position_view
  • Aanmakenproject_position_create
  • Wijzigenproject_position_edit
  • Verwijderenproject_position_delete
Relaties

Velden

Project Position Schema

project_positions4 permissions

ADR 0310 — optional billing/grouping layer between a project and its tasks; carries the billing model and aggregates the effort of its tasks.

projectIduuidoptioneel→ project

Owning project UUID.

subProjectIduuidoptioneel→ project

ADR 1128 Nachtrag „Zuordnung statt Umzug“ — Unterprojekt, das diese Position bearbeitet. Die Position, ihre Aufgaben und Leistungen bleiben im Auftragsprojekt (`projectId`, Abrechnung unverändert); das Unterprojekt zeigt sie nur und seine Leitung arbeitet darin. Geschützt: nur POST /projects/:id/positions/sub-project setzt oder leert es. ABSENT/null = nur Auftragsprojekt, kein Backfill.

read-onlynullable
positionNumberintegeroptioneel

Position number carried over from the sales order (display / ordering).

≥ 0nullable
sortOrderintegeroptioneel

Manual sort order within the project (drag & drop).

≥ 0nullable
titlestringvereist

Position title.

1–200 tekens
generatedTitlestringoptioneel

ADR 1018 — title materialise_order last generated from the order line. While `title` still equals it, nobody renamed the position and the title follows a renamed weclapp line; null on rows created before the field (the history CREATE entry is used instead).

read-onlynullable
descriptionstringoptioneel

Position description.

max. 4000 tekensnullable
statusstringvereist

Position lifecycle status.

OPENDONECANCELLED
billingModelstringvereist

flat_rate = fixed price, bookings are a profitability metric only (never hard-blocked). time_and_material = billed by actual bookings; an optional cap lives on the task (limitMode).

flat_ratetime_and_material
plannedMinutesintegeroptioneel

Planned effort in minutes (Soll).

≥ 0nullable
plannedAmountstringoptioneel

Planned / sold net amount in EUR (Soll), decimal string.

Patternnullable
plannedAmountCurrencystringoptioneel

ISO 4217 currency for plannedAmount (default EUR when null).

Patternnullable
quantitystringoptioneel

Sold quantity carried over from the order item (decimal string).

Patternnullable
unitPricestringoptioneel

Unit price carried over from the order item (decimal string).

Patternnullable
netAmountstringoptioneel

Net amount carried over from the order item (decimal string).

Patternnullable
orderItemSnapshotobjectoptioneel

Frozen copy of the sold order line, written ONCE when the position is created from a sales order (order intake / order import) and never refreshed. quantity/unitPrice/netAmount above follow the order on every intake run; this snapshot keeps the sold terms visible for the price check even after the line was edited or deleted in weclapp. Server-managed (protected).

read-onlynullable
quantitystringoptioneel
Patternnullable
unitNamestringoptioneel
max. 100 tekensnullable
unitPricestringoptioneel
Patternnullable
discountPercentstringoptioneel
Patternnullable
netAmountstringoptioneel
Patternnullable
weclappItemIdstringoptioneel
max. 64 tekensnullable
consumedMinutesintegeroptioneel

Sum of loggedMinutes of the tasks under this position (cached rollup). ADR 0924: rounded working time.

≥ 0read-onlynullable
consumedRealMinutesintegeroptioneel

ADR 0924: the same bookings as consumedMinutes summed as NET working time (cached rollup) — the "(real)" part of the display.

≥ 0read-onlynullable
consumedAmountstringoptioneel

Sum of consumedAmount of the tasks under this position (cached rollup, EUR).

Patternread-onlynullable
articleIduuidoptioneel

Optional linked article UUID.

nullable
salesOrderIduuidoptioneel

Sales order this position was materialised from (order-import path).

read-onlynullable
salesOrderItemIdstringoptioneel

ID of the orderItem inside the linked sales_order (matches salesOrder.orderItems[].id).

read-onlynullable
salesOrderItemSourcestringoptioneel

Origin of the linked sales-order item — internal or weclapp.

internalweclappnull
read-onlynullable
weclappBillingModestringoptioneel

ADR 0634 — wie diese Position im weclapp-Auftrag abgerechnet wird. `position` (Default, auch bei null) = die Auftragsposition bleibt stehen und wird bebucht/fakturiert wie verkauft; `replace` = die Auftragsposition ist eine Nicht-DL-Platzhalterposition und wird beim Abrechnungsabschluss durch die gerenderten Buchungspositionen ERSETZT. Vorbelegt aus der Intake-Regel (`position.weclappBilling`), danach im Projektabrechnungs-Dialog änderbar; ein Re-Import überschreibt den Wert bewusst NICHT.

positionreplacenull
nullable
billedAtdatetimeoptioneel

When this flat-rate position was put on a Leistungsnachweis (per-project billing run). Null = not billed yet.

read-onlynullable
performanceRecordIduuidoptioneel

Leistungsnachweis this position was billed on. Server-managed.

read-onlynullable
invoiceIduuidoptioneel

Invoice this position was billed on. Server-managed.

read-onlynullable

Standaard-endpoints

Deze resource volgt het generieke CRUD-contract van het platform. Lees de conventies voor paginering, idempotentie, optimistic locking en audit. De belangrijkste endpoints:

  • GET /api/v1/project_positions — Lijst, gepagineerd + filterbaar
  • GET /api/v1/project_positions/<id> — Enkele entity
  • POST /api/v1/project_positions — Aanmaken
  • PATCH /api/v1/project_positions/<id> — Gedeeltelijke update
  • DELETE /api/v1/project_positions/<id> — Soft-delete
  • GET /api/v1/project_positions/<id>/timeline — Audit + activiteiten

Zoeken