mirror of
https://github.com/frappe/books.git
synced 2024-11-10 07:40:55 +00:00
142 lines
2.9 KiB
JSON
142 lines
2.9 KiB
JSON
|
{
|
||
|
"name": "SalesInvoice",
|
||
|
"label": "Invoice",
|
||
|
"doctype": "DocType",
|
||
|
"printTemplate": {
|
||
|
"name": "InvoiceTemplate",
|
||
|
"props": [
|
||
|
"doc",
|
||
|
"printSettings"
|
||
|
],
|
||
|
"computed": {},
|
||
|
"__file": "models/doctype/SalesInvoice/InvoiceTemplate.vue",
|
||
|
"__hmrId": "3d0cd49d"
|
||
|
},
|
||
|
"isSingle": false,
|
||
|
"isChild": false,
|
||
|
"isSubmittable": true,
|
||
|
"keywordFields": [
|
||
|
"name",
|
||
|
"customer"
|
||
|
],
|
||
|
"settings": "SalesInvoiceSettings",
|
||
|
"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",
|
||
|
"disableCreation": true
|
||
|
},
|
||
|
{
|
||
|
"fieldname": "currency",
|
||
|
"label": "Customer Currency",
|
||
|
"fieldtype": "Link",
|
||
|
"target": "Currency",
|
||
|
"formulaDependsOn": [
|
||
|
"customer"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"fieldname": "exchangeRate",
|
||
|
"label": "Exchange Rate",
|
||
|
"fieldtype": "Float",
|
||
|
"default": 1,
|
||
|
"readOnly": true
|
||
|
},
|
||
|
{
|
||
|
"fieldname": "items",
|
||
|
"label": "Items",
|
||
|
"fieldtype": "Table",
|
||
|
"childtype": "SalesInvoiceItem",
|
||
|
"required": true
|
||
|
},
|
||
|
{
|
||
|
"fieldname": "netTotal",
|
||
|
"label": "Net Total",
|
||
|
"fieldtype": "Currency",
|
||
|
"readOnly": true
|
||
|
},
|
||
|
{
|
||
|
"fieldname": "baseNetTotal",
|
||
|
"label": "Net Total (Company Currency)",
|
||
|
"fieldtype": "Currency",
|
||
|
"readOnly": true
|
||
|
},
|
||
|
{
|
||
|
"fieldname": "taxes",
|
||
|
"label": "Taxes",
|
||
|
"fieldtype": "Table",
|
||
|
"childtype": "TaxSummary",
|
||
|
"readOnly": true
|
||
|
},
|
||
|
{
|
||
|
"fieldname": "grandTotal",
|
||
|
"label": "Grand Total",
|
||
|
"fieldtype": "Currency",
|
||
|
"readOnly": true
|
||
|
},
|
||
|
{
|
||
|
"fieldname": "baseGrandTotal",
|
||
|
"label": "Grand Total (Company Currency)",
|
||
|
"fieldtype": "Currency",
|
||
|
"readOnly": true
|
||
|
},
|
||
|
{
|
||
|
"fieldname": "outstandingAmount",
|
||
|
"label": "Outstanding Amount",
|
||
|
"fieldtype": "Currency",
|
||
|
"readOnly": true
|
||
|
},
|
||
|
{
|
||
|
"fieldname": "terms",
|
||
|
"label": "Notes",
|
||
|
"fieldtype": "Text"
|
||
|
},
|
||
|
{
|
||
|
"fieldname": "cancelled",
|
||
|
"label": "Cancelled",
|
||
|
"fieldtype": "Check",
|
||
|
"default": 0,
|
||
|
"readOnly": true
|
||
|
},
|
||
|
{
|
||
|
"fieldname": "numberSeries",
|
||
|
"label": "Number Series",
|
||
|
"fieldtype": "Link",
|
||
|
"target": "NumberSeries",
|
||
|
"required": true,
|
||
|
"default": "SINV-"
|
||
|
}
|
||
|
],
|
||
|
"actions": [
|
||
|
{
|
||
|
"label": "Make Payment"
|
||
|
},
|
||
|
{
|
||
|
"label": "Print"
|
||
|
},
|
||
|
{
|
||
|
"label": "Ledger Entries"
|
||
|
}
|
||
|
]
|
||
|
}
|