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
3 changes: 3 additions & 0 deletions examples/app-showcase/src/objects/invoice.object.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ export const InvoiceLine = ObjectSchema.create({
}),
// Catalog lookup. Picking a product auto-fills `description` + `unit_price`
// (the grid copies same-named fields from the selected product record).
// Line sort position — stamped by the grid on drag-reorder so the order
// persists. Excluded from the editable columns (it's not hand-entered).
position: Field.number({ label: 'Position', defaultValue: 0 }),
product: Field.lookup('showcase_product', { label: 'Product', required: true }),
description: Field.text({ label: 'Description', maxLength: 200 }),
quantity: Field.number({ label: 'Qty', required: true, min: 0, defaultValue: 1 }),
Expand Down