2
0
mirror of https://github.com/frappe/books.git synced 2024-11-14 17:34:04 +00:00
books/schemas/app/Payment.json

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

204 lines
4.3 KiB
JSON
Raw Normal View History

2022-03-23 07:31:15 +00:00
{
"name": "Payment",
"label": "Payment",
"naming": "numberSeries",
2022-03-23 07:31:15 +00:00
"isSingle": false,
"isChild": false,
"isSubmittable": true,
"fields": [
{
"label": "Payment No",
"fieldname": "name",
"fieldtype": "Data",
"required": true,
"readOnly": true,
"hidden": true
},
{
"fieldname": "numberSeries",
"label": "Number Series",
"fieldtype": "Link",
"target": "NumberSeries",
"create": true,
"required": true,
"default": "PAY-",
"section": "Default"
2022-03-23 07:31:15 +00:00
},
{
"fieldname": "party",
"label": "Party",
2022-03-23 07:31:15 +00:00
"fieldtype": "Link",
2022-05-03 15:13:55 +00:00
"target": "Party",
2022-06-20 06:31:20 +00:00
"create": true,
"required": true,
"section": "Default"
2022-03-23 07:31:15 +00:00
},
{
"fieldname": "date",
"label": "Posting Date",
2022-05-03 15:13:55 +00:00
"fieldtype": "Date",
"required": true,
"section": "Default"
2022-03-23 07:31:15 +00:00
},
{
"fieldname": "paymentType",
"label": "Payment Type",
"fieldtype": "Select",
"placeholder": "Payment Type",
"options": [
2022-03-23 08:37:00 +00:00
{
"value": "Receive",
"label": "Receive"
},
{
"value": "Pay",
"label": "Pay"
}
2022-03-23 07:31:15 +00:00
],
"required": true,
"section": "Default"
2022-03-23 07:31:15 +00:00
},
{
"fieldname": "account",
"label": "From Account",
2022-03-23 07:31:15 +00:00
"fieldtype": "Link",
"target": "Account",
2022-06-20 06:31:20 +00:00
"create": true,
2022-03-23 07:31:15 +00:00
"required": true,
"section": "Details"
},
{
"fieldname": "paymentAccount",
"label": "To Account",
"placeholder": "To Account",
"fieldtype": "Link",
"target": "Account",
"create": true,
"required": true,
"section": "Details"
2022-03-23 07:31:15 +00:00
},
{
"fieldname": "paymentMethod",
"label": "Payment Method",
"placeholder": "Payment Method",
"fieldtype": "Select",
"options": [
2022-03-23 08:37:00 +00:00
{
"value": "Cash",
"label": "Cash"
},
{
"value": "Cheque",
"label": "Cheque"
},
{
"value": "Transfer",
"label": "Transfer"
}
2022-03-23 07:31:15 +00:00
],
"default": "Cash",
"required": true,
"section": "Details"
2022-03-23 07:31:15 +00:00
},
{
"fieldname": "clearanceDate",
"label": "Clearance Date",
"placeholder": "Clearance Date",
"fieldtype": "Date",
"section": "Details"
},
{
"fieldname": "referenceId",
"label": "Ref. / Cheque No.",
"placeholder": "Ref. / Cheque No.",
"fieldtype": "Data",
"section": "Details"
},
{
"fieldname": "referenceDate",
"label": "Reference Date",
"placeholder": "Ref. Date",
"fieldtype": "Date",
"section": "Details"
},
{
"fieldname": "amount",
"label": "Amount",
"fieldtype": "Currency",
"required": true,
"section": "Amounts"
},
{
"fieldname": "writeoff",
"label": "Write Off",
"fieldtype": "Currency",
"section": "Amounts"
},
{
"fieldname": "amountPaid",
"label": "Amount Paid",
"fieldtype": "Currency",
"computed": true,
"section": "Amounts"
},
{
"fieldname": "taxes",
"label": "Taxes",
"fieldtype": "Table",
"target": "TaxSummary",
"readOnly": true,
"section": "Amounts"
},
2022-03-23 07:31:15 +00:00
{
"fieldname": "for",
"label": "Payment Reference",
"fieldtype": "Table",
2022-03-23 08:37:00 +00:00
"target": "PaymentFor",
"required": false,
"section": "References"
},
{
"fieldname": "attachment",
"placeholder": "Add attachment",
"label": "Attachment",
"fieldtype": "Attachment",
"section": "References"
},
{
"fieldname": "referenceType",
"label": "Type",
"placeholder": "Type",
"fieldtype": "Select",
"options": [
{
"value": "SalesInvoice",
"label": "Sales"
},
{
"value": "PurchaseInvoice",
"label": "Purchase"
}
],
2023-12-03 07:07:51 +00:00
"hidden": true
2022-03-23 07:31:15 +00:00
}
],
"quickEditFields": [
"numberSeries",
"party",
"date",
"paymentMethod",
"account",
"paymentType",
"paymentAccount",
"referenceId",
"referenceDate",
"clearanceDate",
"amount",
"writeoff",
"amountPaid",
"attachment",
2022-03-23 07:31:15 +00:00
"for"
2022-05-31 05:55:02 +00:00
],
"keywordFields": ["name", "party", "paymentType"]
2022-03-23 08:37:00 +00:00
}