Cotton code
154 lines · 3.0 KB · JSONRaw
{  "id": "subscription_charge",  "name": "Charge",  "plural": "Charges",  "picture": null,  "builtin": false,  "visibility": "owner",  "engine": null,  "columns": [    {      "key": "name",      "name": "Charge",      "type": "text",      "required": true,      "placeholder": "₹99.00 · Oct 2026",      "readonly": true    },    {      "key": "subscription",      "name": "Subscription",      "type": "link",      "link_to": "subscription",      "readonly": true    },    {      "key": "charged_on",      "name": "Charged on",      "type": "date",      "readonly": true    },    {      "key": "amount",      "name": "Amount",      "type": "amount",      "readonly": true    },    {      "key": "currency",      "name": "Currency",      "type": "text",      "placeholder": "INR",      "readonly": true    },    {      "key": "kind",      "name": "Kind",      "type": "choice",      "choices": [        "charge",        "refund",        "credit",        "failed"      ],      "format": "words",      "tones": {        "charge": "green",        "refund": "amber",        "credit": "amber",        "failed": "red"      },      "readonly": true    },    {      "key": "period",      "name": "Covers",      "type": "text",      "placeholder": "28 Sep to 28 Oct 2026",      "readonly": true    },    {      "key": "reference",      "name": "Reference",      "type": "text",      "placeholder": "invoice or receipt number",      "readonly": true    },    {      "key": "payment",      "name": "Paid by",      "type": "text",      "placeholder": "card ending 1234",      "readonly": true    },    {      "key": "notes",      "name": "Notes",      "type": "longtext",      "markdown": true    }  ],  "title": "name",  "date": "charged_on",  "project": null,  "order": null,  "slip": {    "title": "name",    "subtitle": [      "period",      "payment"    ],    "trailing": "amount",    "photo": null,    "toggle": null,    "caption": {      "status": "kind",      "dates": [        "charged_on"      ]    }  },  "tile": {    "face": "slip-list"  },  "page": [    {      "heading": null,      "columns": [        "name",        "subscription",        "kind"      ]    },    {      "heading": "Money",      "columns": [        "amount",        "currency",        "charged_on",        "period"      ]    },    {      "heading": "Receipt",      "columns": [        "reference",        "payment"      ]    },    {      "heading": "Notes",      "columns": [        "notes"      ]    }  ],  "sort": {    "column": "charged_on"  },  "empty": {    "title": "No charges yet",    "message": "Charges are written from receipts as they are found."  },  "instructions": "One row per charge, refund, credit or failed attempt on a subscription, linked to its subscription row and written from a receipt or invoice email; amount is a whole number of minor units in currency. History: never edit or invent a charge; a correction is a new refund or credit row."}