2
0
mirror of https://github.com/frappe/books.git synced 2024-12-22 10:58:59 +00:00
books/schemas/app/Party.json
2024-09-04 09:08:30 +05:30

131 lines
2.7 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": "fromLead",
"label": "From Lead",
"fieldtype": "Link",
"target": "Lead",
"readOnly": true,
"section": "References"
},
{
"fieldname": "loyaltyProgram",
"label": "Loyalty Program",
"fieldtype": "Link",
"target": "LoyaltyProgram",
"create": true,
"section": "Loyalty Program"
},
{
"fieldname": "loyaltyPoints",
"label": "Loyalty Points",
"fieldtype": "Int",
"readOnly": true,
"default": 0,
"section": "Loyalty Program"
},
{
"fieldname": "taxId",
"label": "Tax ID",
"fieldtype": "Data",
"section": "Billing"
},
{
"fieldname": "outstandingAmount",
"label": "Outstanding Amount",
"fieldtype": "Currency",
"hidden": true
}
],
"quickEditFields": [
"email",
"phone",
"address",
"defaultAccount",
"loyaltyProgram",
"currency",
"role",
"taxId"
],
"keywordFields": ["name", "email", "role"]
}