mirror of
https://github.com/frappe/books.git
synced 2024-11-14 09:24:04 +00:00
42 lines
897 B
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"]
|
|
}
|