2
0
mirror of https://github.com/frappe/books.git synced 2024-11-13 00:46:28 +00:00
books/schemas/app/Supplier.json
2022-05-23 16:18:21 +05:30

121 lines
2.3 KiB
JSON

{
"name": "Supplier",
"label": "Supplier",
"basedOn": "Party",
"filters": {
"supplier": 1
},
"actions": [
{
"label": "Create Bill"
},
{
"label": "View Bills"
}
],
"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
}