{ "format_version": 1, "id": "kitchen_order_line", "name": "Order line", "plural": "Order lines", "picture": null, "builtin": false, "engine": null, "visibility": "mine(customer)", "columns": [ { "key": "name", "name": "Line", "type": "text" }, { "key": "order", "name": "Order", "type": "link", "link_to": "kitchen_order", "required": true, "contributes": { "label": "Lines" } }, { "key": "customer", "name": "Customer", "type": "link", "link_to": "kitchen_customer", "required": true }, { "key": "dish", "name": "Dish", "type": "link", "link_to": "kitchen_dish", "contributes": { "label": "Ordered" } }, { "key": "quantity", "name": "Plates", "type": "number", "reading": "{value} plates" }, { "key": "price", "name": "Price a plate", "type": "amount", "currency": "currency" }, { "key": "currency", "name": "Currency", "type": "text" }, { "key": "line_total", "name": "Line total", "type": "amount", "currency": "currency" } ], "title": "name", "date": null, "project": null, "order": null, "slip": { "title": "name", "photo": null, "toggle": null, "subtitle": [ "dish", "quantity" ], "trailing": "line_total" }, "tile": { "face": "slip-list" }, "page": [ { "heading": null, "columns": [ "name", "order", "dish", "quantity", "price", "line_total", "currency" ] } ], "sort": { "column": "name", "descending": false }, "empty": { "title": "No lines", "message": "Add a line from an order's page." }, "instructions": "One row per dish on an order: how many plates at what price. The line total is worked out by the rule; never type it. Its customer is the order's customer, written with it: who may see the row is read from that column.", "card": { "face": "plain", "fields": [ { "slot": "title", "column": "name" }, { "slot": "facts", "column": "quantity", "also": [ "price", "line_total" ] } ] } }