{ "format_version": 1, "id": "kitchen_payment", "name": "Payment", "plural": "Money", "picture": { "photo": "photo:b23a56d94fd226be5e2e0ba0ecee687ba20df2a54f902c358ee1cfc187209b92" }, "builtin": false, "engine": null, "visibility": "mine(customer)", "columns": [ { "key": "name", "name": "Payment", "type": "text", "required": true }, { "key": "customer", "name": "Customer", "type": "link", "link_to": "kitchen_customer", "required": true, "contributes": { "label": "Payments" } }, { "key": "order", "name": "For order", "type": "link", "link_to": "kitchen_order", "contributes": { "label": "Payments" } }, { "key": "amount", "name": "Amount", "type": "amount", "required": true, "currency": "currency" }, { "key": "currency", "name": "Currency", "type": "text" }, { "key": "method", "name": "By", "type": "choice", "choices": [ "cash", "upi" ], "format": "words", "labels": { "cash": "Cash", "upi": "UPI" } }, { "key": "taken_on", "name": "Taken on", "type": "date" } ], "title": "name", "date": "taken_on", "project": null, "order": null, "slip": { "title": "name", "photo": null, "toggle": null, "subtitle": [ "method", "customer" ], "trailing": "amount" }, "tile": { "face": "slip-list" }, "page": [ { "heading": null, "columns": [ "name", "customer", "order", "amount", "method" ] }, { "heading": "When", "columns": [ "taken_on" ] }, { "heading": "Currency", "columns": [ "currency" ] } ], "sort": { "column": "taken_on", "descending": true, "tie": "name" }, "empty": { "title": "No money in yet", "message": "Cash and UPI taken for orders." }, "by_day": "taken_on", "views": [ { "face": "chart", "name": "Money by week", "chart": { "kind": "bar", "x": "taken_on", "y": "amount", "by": "week" } } ], "instructions": "One row per payment taken from a customer, in cash or UPI. Take cash on a customer's page makes one; a payment written without a day is dated the day it is taken. Write one only for money actually taken.", "card": { "face": "transaction.receipt", "fields": [ { "slot": "title", "column": "name" }, { "slot": "subtitle", "column": "method" }, { "slot": "amount", "column": "amount" }, { "slot": "account", "column": "customer" }, { "slot": "date", "column": "taken_on" } ] } }