mirror of
https://github.com/frappe/books.git
synced 2024-12-23 11:29:03 +00:00
163 lines
3.3 KiB
JSON
163 lines
3.3 KiB
JSON
{
|
|
"name": "Payment",
|
|
"label": "Payment",
|
|
"naming": "numberSeries",
|
|
"isSingle": false,
|
|
"isChild": false,
|
|
"isSubmittable": true,
|
|
"fields": [
|
|
{
|
|
"label": "Payment No",
|
|
"fieldname": "name",
|
|
"fieldtype": "Data",
|
|
"required": true,
|
|
"readOnly": true
|
|
},
|
|
{
|
|
"fieldname": "party",
|
|
"label": "Party",
|
|
"fieldtype": "Link",
|
|
"target": "Party",
|
|
"create": true,
|
|
"required": true
|
|
},
|
|
{
|
|
"fieldname": "date",
|
|
"label": "Posting Date",
|
|
"fieldtype": "Date",
|
|
"required": true
|
|
},
|
|
{
|
|
"fieldname": "paymentType",
|
|
"label": "Payment Type",
|
|
"fieldtype": "Select",
|
|
"placeholder": "Payment Type",
|
|
"options": [
|
|
{
|
|
"value": "Receive",
|
|
"label": "Receive"
|
|
},
|
|
{
|
|
"value": "Pay",
|
|
"label": "Pay"
|
|
}
|
|
],
|
|
"required": true
|
|
},
|
|
{
|
|
"fieldname": "numberSeries",
|
|
"label": "Number Series",
|
|
"fieldtype": "Link",
|
|
"target": "NumberSeries",
|
|
"create": true,
|
|
"required": true,
|
|
"default": "PAY-"
|
|
},
|
|
{
|
|
"fieldname": "paymentMethod",
|
|
"label": "Payment Method",
|
|
"placeholder": "Payment Method",
|
|
"fieldtype": "Select",
|
|
"options": [
|
|
{
|
|
"value": "Cash",
|
|
"label": "Cash"
|
|
},
|
|
{
|
|
"value": "Cheque",
|
|
"label": "Cheque"
|
|
},
|
|
{
|
|
"value": "Transfer",
|
|
"label": "Transfer"
|
|
}
|
|
],
|
|
"default": "Cash",
|
|
"required": true
|
|
},
|
|
{
|
|
"fieldname": "account",
|
|
"label": "From Account",
|
|
"fieldtype": "Link",
|
|
"target": "Account",
|
|
"create": true,
|
|
"required": true
|
|
},
|
|
{
|
|
"fieldname": "paymentAccount",
|
|
"label": "To Account",
|
|
"placeholder": "To Account",
|
|
"fieldtype": "Link",
|
|
"target": "Account",
|
|
"create": true,
|
|
"required": true
|
|
},
|
|
{
|
|
"fieldname": "referenceId",
|
|
"label": "Ref. / Cheque No.",
|
|
"placeholder": "Ref. / Cheque No.",
|
|
"fieldtype": "Data"
|
|
},
|
|
{
|
|
"fieldname": "referenceDate",
|
|
"label": "Ref. Date",
|
|
"placeholder": "Ref. Date",
|
|
"fieldtype": "Date"
|
|
},
|
|
{
|
|
"fieldname": "clearanceDate",
|
|
"label": "Clearance Date",
|
|
"placeholder": "Clearance Date",
|
|
"fieldtype": "Date"
|
|
},
|
|
{
|
|
"fieldname": "amount",
|
|
"label": "Amount",
|
|
"fieldtype": "Currency",
|
|
"required": true
|
|
},
|
|
{
|
|
"fieldname": "writeoff",
|
|
"label": "Write Off",
|
|
"fieldtype": "Currency"
|
|
},
|
|
{
|
|
"fieldname": "amountPaid",
|
|
"label": "Amount Paid",
|
|
"fieldtype": "Currency",
|
|
"computed": true
|
|
},
|
|
{
|
|
"fieldname": "for",
|
|
"label": "Payment Reference",
|
|
"fieldtype": "Table",
|
|
"target": "PaymentFor",
|
|
"required": false
|
|
},
|
|
{
|
|
"fieldname": "attachment",
|
|
"placeholder": "Add attachment",
|
|
"label": "Attachment",
|
|
"fieldtype": "Attachment"
|
|
}
|
|
],
|
|
"quickEditFields": [
|
|
"numberSeries",
|
|
"party",
|
|
"date",
|
|
"paymentMethod",
|
|
"account",
|
|
"paymentType",
|
|
"paymentAccount",
|
|
"referenceId",
|
|
"referenceDate",
|
|
"clearanceDate",
|
|
"amount",
|
|
"writeoff",
|
|
"amountPaid",
|
|
"attachment",
|
|
"for"
|
|
],
|
|
"keywordFields": ["name", "party", "paymentType"]
|
|
}
|