2
0
mirror of https://github.com/frappe/books.git synced 2024-09-19 19:19:02 +00:00
books/schemas/app/Party.json
18alantom d9415233f5 fix(ux): Add sections for a few Entry types
- remove widgets from the QuickEditForm
- remove redundant files
2023-04-14 15:31:04 +05:30

105 lines
2.1 KiB
JSON

{
"name": "Party",
"label": "Party",
"naming": "manual",
"fields": [
{
"fieldname": "image",
"label": "Image",
"fieldtype": "AttachImage",
"section": "Default"
},
{
"fieldname": "name",
"label": "Name",
"fieldtype": "Data",
"required": true,
"placeholder": "Full Name",
"section": "Default"
},
{
"fieldname": "role",
"label": "Role",
"fieldtype": "Select",
"default": "Both",
"options": [
{
"value": "Both",
"label": "Both"
},
{
"value": "Supplier",
"label": "Supplier"
},
{
"value": "Customer",
"label": "Customer"
}
],
"required": true,
"section": "Default"
},
{
"fieldname": "email",
"label": "Email",
"fieldtype": "Data",
"placeholder": "john@doe.com",
"section": "Contacts"
},
{
"fieldname": "phone",
"label": "Phone",
"fieldtype": "Data",
"placeholder": "Phone",
"section": "Contacts"
},
{
"fieldname": "address",
"label": "Address",
"fieldtype": "Link",
"target": "Address",
"create": true,
"section": "Contacts"
},
{
"fieldname": "defaultAccount",
"label": "Default Account",
"fieldtype": "Link",
"target": "Account",
"create": true,
"section": "Billing"
},
{
"fieldname": "currency",
"label": "Currency",
"fieldtype": "Link",
"target": "Currency",
"placeholder": "INR",
"create": true,
"section": "Billing"
},
{
"fieldname": "taxId",
"label": "Tax ID",
"fieldtype": "Data",
"section": "Billing"
},
{
"fieldname": "outstandingAmount",
"label": "Outstanding Amount",
"fieldtype": "Currency",
"hidden": true
}
],
"quickEditFields": [
"email",
"phone",
"address",
"defaultAccount",
"currency",
"role",
"taxId"
],
"keywordFields": ["name", "email", "role"]
}