Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions examples/app-showcase/src/data/objects/invoice.object.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,11 @@ export const InvoiceLine = ObjectSchema.create({
min: 0,
readonlyWhen: P`parent.status == 'paid'`,
}),
// Per-line attachment (objectui#2360): the inline line-item grid renders a
// real upload cell for `file` fields — the "attach the receipt to each
// expense line" pattern. Exercises upload-in-grid end-to-end (auto-derived
// column, compact picker, persistence through the storage service).
receipt: Field.file({ label: 'Receipt' }),
// Amount = Qty × Unit Price. Kept as a *stored* currency column (so the
// parent Invoice.total summary can roll it up — summary aggregation reads
// stored columns, not on-read formula fields), but the `expression` makes
Expand Down