2
0
mirror of https://github.com/frappe/books.git synced 2024-12-22 19:09:01 +00:00
books/schemas/app/PaymentFor.json

42 lines
897 B
JSON

{
"name": "PaymentFor",
"label": "Payment For",
"isSingle": false,
"isChild": true,
"fields": [
{
"fieldname": "referenceType",
"label": "Type",
"placeholder": "Type",
"fieldtype": "Select",
"options": [
{
"value": "SalesInvoice",
"label": "Sales"
},
{
"value": "PurchaseInvoice",
"label": "Purchase"
}
],
"required": true
},
{
"fieldname": "referenceName",
"label": "Name",
"fieldtype": "DynamicLink",
"references": "referenceType",
"placeholder": "Name",
"required": true
},
{
"fieldname": "amount",
"label": "Amount",
"fieldtype": "Currency",
"required": true
}
],
"tableFields": ["referenceType", "referenceName", "amount"],
"keywordFields": ["referenceName", "referenceType"]
}