2
0
mirror of https://github.com/frappe/books.git synced 2024-11-10 15:50:56 +00:00
books/schemas/app/SalesInvoice.json
2022-05-23 16:18:21 +05:30

110 lines
2.3 KiB
JSON

{
"name": "SalesInvoice",
"label": "Sales Invoice",
"isSingle": false,
"isChild": false,
"isSubmittable": true,
"keywordFields": ["name", "customer"],
"fields": [
{
"label": "Invoice No",
"fieldname": "name",
"fieldtype": "Data",
"required": true,
"readOnly": true
},
{
"fieldname": "date",
"label": "Date",
"fieldtype": "Date"
},
{
"fieldname": "customer",
"label": "Customer",
"fieldtype": "Link",
"target": "Customer",
"required": true
},
{
"fieldname": "account",
"label": "Account",
"fieldtype": "Link",
"target": "Account"
},
{
"fieldname": "currency",
"label": "Customer Currency",
"fieldtype": "Link",
"target": "Currency"
},
{
"fieldname": "exchangeRate",
"label": "Exchange Rate",
"fieldtype": "Float",
"default": 1,
"readOnly": true
},
{
"fieldname": "items",
"label": "Items",
"fieldtype": "Table",
"target": "SalesInvoiceItem",
"required": true
},
{
"fieldname": "netTotal",
"label": "Net Total",
"fieldtype": "Currency",
"computed": true,
"readOnly": true
},
{
"fieldname": "baseNetTotal",
"label": "Net Total (Company Currency)",
"fieldtype": "Currency",
"computed": true,
"readOnly": true
},
{
"fieldname": "taxes",
"label": "Taxes",
"fieldtype": "Table",
"target": "TaxSummary",
"readOnly": true
},
{
"fieldname": "grandTotal",
"label": "Grand Total",
"fieldtype": "Currency",
"computed": true,
"readOnly": true
},
{
"fieldname": "baseGrandTotal",
"label": "Grand Total (Company Currency)",
"fieldtype": "Currency",
"computed": true,
"readOnly": true
},
{
"fieldname": "outstandingAmount",
"label": "Outstanding Amount",
"fieldtype": "Currency",
"computed": true,
"readOnly": true
},
{
"fieldname": "terms",
"label": "Notes",
"fieldtype": "Text"
},
{
"fieldname": "numberSeries",
"label": "Number Series",
"fieldtype": "Link",
"target": "NumberSeries",
"required": true,
"default": "SINV-"
}
]
}