Cotton code
97 lines · 2.1 KB · JSONRaw
{  "views": [    {      "id": "today",      "label": "Today",      "is_default": true,      "visibility": "staff",      "read": {        "table": "yoga_payment",        "period": "today"      },      "face": "cards",      "sort": {        "column": "taken_on",        "descending": true      }    },    {      "id": "month",      "label": "This month",      "is_default": false,      "visibility": "staff",      "read": {        "table": "yoga_payment",        "period": "this_month"      },      "face": "cards",      "sort": {        "column": "taken_on",        "descending": true      }    },    {      "id": "cash",      "label": "Cash",      "is_default": false,      "visibility": "staff",      "read": {        "table": "yoga_payment",        "where": {          "method": "cash"        },        "period": "this_month"      },      "face": "cards",      "sort": {        "column": "taken_on",        "descending": true      }    },    {      "id": "upi",      "label": "UPI",      "is_default": false,      "visibility": "staff",      "read": {        "table": "yoga_payment",        "where": {          "method": "upi"        },        "period": "this_month"      },      "face": "cards",      "sort": {        "column": "taken_on",        "descending": true      }    },    {      "id": "plans",      "label": "Plans",      "is_default": false,      "visibility": "staff",      "read": {        "table": "yoga_offer"      },      "face": "cards",      "sort": {        "column": "valid_days",        "descending": false      }    }  ],  "id": "yoga_sales",  "name": "Sales",  "picture": "tool-money",  "card_stock": "tan",  "tables": [],  "instructions": "Sales is the money the studio took (yoga_payment), by day and month and by how it was paid, beside the plans on sale (yoga_offer). Take cash on a client writes a payment.",  "automations": [],  "author": {    "device": "cotton",    "name": "Cotton"  },  "signature": null,  "purpose": "The money taken: today, this month, by cash and UPI, and the plans sold."}