2
0
mirror of https://github.com/frappe/books.git synced 2024-09-20 11:29:00 +00:00
books/schemas/app/Customer.json

121 lines
2.3 KiB
JSON
Raw Normal View History

2022-03-23 07:31:15 +00:00
{
"name": "Customer",
"label": "Customer",
"basedOn": "Party",
"filters": {
"customer": 1
},
"actions": [
{
"label": "Create Invoice"
},
{
"label": "View Invoices"
}
],
"regional": 1,
"keywordFields": [
"name"
],
"fields": [
{
"fieldname": "name",
"label": "Name",
"fieldtype": "Data",
"required": true,
"placeholder": "Full Name"
},
{
"fieldname": "image",
"label": "Image",
"fieldtype": "AttachImage"
},
{
"fieldname": "customer",
"label": "Is Customer",
"fieldtype": "Check"
},
{
"fieldname": "gstin",
"label": "GSTIN No.",
"fieldtype": "Data"
},
{
"fieldname": "gstType",
"label": "GST Registration",
"placeholder": "GST Registration",
"fieldtype": "Select",
"default": "Unregistered",
"options": [
"Unregistered",
"Registered Regular",
"Consumer"
]
},
{
"fieldname": "supplier",
"label": "Is Supplier",
"fieldtype": "Check"
},
{
"fieldname": "defaultAccount",
"label": "Default Account",
"fieldtype": "Link",
"target": "Account"
},
{
"fieldname": "outstandingAmount",
"label": "Outstanding Amount",
"fieldtype": "Currency"
},
{
"fieldname": "currency",
"label": "Currency",
"fieldtype": "Link",
"target": "Currency",
"placeholder": "INR"
},
{
"fieldname": "email",
"label": "Email",
"fieldtype": "Data",
"placeholder": "john@doe.com",
"validate": {
"type": "email"
}
},
{
"fieldname": "phone",
"label": "Phone",
"fieldtype": "Data",
"placeholder": "Phone",
"validate": {
"type": "phone"
}
},
{
"fieldname": "address",
"label": "Address",
"fieldtype": "Link",
"target": "Address",
"placeholder": "Click to create",
"inline": true
},
{
"fieldname": "addressDisplay",
"label": "Address Display",
"fieldtype": "Text",
"readOnly": true
}
],
"quickEditFields": [
"email",
"phone",
"address",
"defaultAccount",
"currency",
"gstType",
"gstin"
],
"augmented": 1
}