Cotton code
63 lines · 1.6 KB · JSONRaw
{  "views": [    {      "id": "today",      "label": "Today",      "is_default": true,      "read": {        "table": "kitchen_delivery",        "period": "today"      },      "visibility": "customer"    },    {      "id": "tomorrow",      "label": "Tomorrow",      "is_default": false,      "read": {        "table": "kitchen_delivery",        "period": "tomorrow"      },      "visibility": "customer"    },    {      "id": "to_deliver",      "label": "To deliver",      "is_default": false,      "read": {        "table": "kitchen_delivery",        "where": {          "delivered": false        }      },      "visibility": "customer"    },    {      "id": "unpaid",      "label": "Unpaid",      "is_default": false,      "read": {        "table": "kitchen_delivery",        "where": {          "paid": false        }      },      "visibility": "customer"    }  ],  "id": "kitchen_orders",  "name": "Orders",  "purpose": "The kitchen's orders as the chef delivers them, by day, and those not yet delivered or paid.",  "picture": {    "photo": "photo:116b7043feeed0389ae0452a08f6591f2867f8ebf8a34f811701ef7c3fe4a140"  },  "card_stock": "tan",  "tables": [],  "instructions": "Orders is the kitchen's orders as the chef delivers them (each order's delivery row): today's, tomorrow's, those still to deliver and those not yet paid. Delivered and Paid are acts on each. Its views read the Kitchen tool's tables (install Kitchen first).",  "automations": [],  "author": {    "device": "cotton",    "name": "Cotton"  },  "signature": null}