2022-03-23 07:31:15 +00:00
|
|
|
{
|
|
|
|
"name": "PaymentFor",
|
|
|
|
"label": "Payment For",
|
|
|
|
"isSingle": false,
|
|
|
|
"isChild": true,
|
|
|
|
"fields": [
|
|
|
|
{
|
|
|
|
"fieldname": "referenceType",
|
2022-04-29 13:00:24 +00:00
|
|
|
"label": "Type",
|
2022-03-23 07:31:15 +00:00
|
|
|
"placeholder": "Type",
|
|
|
|
"fieldtype": "Select",
|
|
|
|
"options": [
|
2022-03-23 08:37:00 +00:00
|
|
|
{
|
|
|
|
"value": "SalesInvoice",
|
2022-05-03 13:13:47 +00:00
|
|
|
"label": "Sales"
|
2022-03-23 08:37:00 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"value": "PurchaseInvoice",
|
2022-05-03 13:13:47 +00:00
|
|
|
"label": "Purchase"
|
2022-03-23 08:37:00 +00:00
|
|
|
}
|
2022-03-23 07:31:15 +00:00
|
|
|
],
|
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"fieldname": "referenceName",
|
2022-04-29 13:00:24 +00:00
|
|
|
"label": "Name",
|
2022-03-23 07:31:15 +00:00
|
|
|
"fieldtype": "DynamicLink",
|
|
|
|
"references": "referenceType",
|
|
|
|
"placeholder": "Name",
|
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"fieldname": "amount",
|
2022-04-29 13:00:24 +00:00
|
|
|
"label": "Amount",
|
2022-03-23 07:31:15 +00:00
|
|
|
"fieldtype": "Currency",
|
|
|
|
"required": true
|
|
|
|
}
|
2022-04-29 13:00:24 +00:00
|
|
|
],
|
2022-05-04 16:25:08 +00:00
|
|
|
"tableFields": ["referenceType", "referenceName", "amount"],
|
|
|
|
"keywordFields": ["referenceName", "referenceType"]
|
2022-03-23 08:37:00 +00:00
|
|
|
}
|