2
0
mirror of https://github.com/frappe/books.git synced 2024-09-19 19:19:02 +00:00
books/schemas/app/SalesInvoice.json
Mildred Ki'Lya c10edc7132 feat: #151 Add quote object and allow create invoice from it
Also allow changing a print template type, necessary to create a custom
print template for this.
2024-01-08 21:56:03 +01:00

82 lines
1.8 KiB
JSON

{
"name": "SalesInvoice",
"label": "Sales Invoice",
"extends": "Invoice",
"naming": "numberSeries",
"showTitle": true,
"fields": [
{
"fieldname": "numberSeries",
"label": "Number Series",
"fieldtype": "Link",
"target": "NumberSeries",
"create": true,
"required": true,
"default": "SINV-",
"section": "Default"
},
{
"fieldname": "party",
"label": "Customer",
"fieldtype": "Link",
"target": "Party",
"create": true,
"required": true,
"section": "Default"
},
{
"fieldname": "backReference",
"label": "Back Reference",
"fieldtype": "Link",
"target": "Shipment",
"section": "References"
},
{
"fieldname": "quote",
"label": "Quote Reference",
"fieldtype": "Link",
"target": "SalesQuote",
"section": "References",
"required": false
},
{
"fieldname": "makeAutoStockTransfer",
"label": "Make Shipment On Submit",
"fieldtype": "Check",
"default": false,
"readOnly": false,
"tab": "Settings"
},
{
"fieldname": "items",
"label": "Items",
"fieldtype": "Table",
"target": "SalesInvoiceItem",
"required": true,
"edit": true,
"section": "Items"
},
{
"fieldname": "stockNotTransferred",
"label": "Stock Not Shipped",
"fieldtype": "Float",
"readOnly": true,
"section": "Outstanding"
},
{
"fieldname": "returnAgainst",
"fieldtype": "Link",
"target": "SalesInvoice",
"label": "Return Against",
"section": "References"
},
{
"fieldname": "isPOS",
"fieldtype": "Check",
"default": false,
"hidden": true
}
],
"keywordFields": ["name", "party"]
}