2
0
mirror of https://github.com/frappe/books.git synced 2024-11-14 01:14:03 +00:00
books/schemas/app/Invoice.json
18alantom 2007e4339d fix: Print View sync issue
- hide multi currency fields cause widget is sufficient
- exchange rate update issue
2023-05-08 12:00:14 +05:30

181 lines
3.9 KiB
JSON

{
"name": "Invoice",
"label": "Invoice",
"isAbstract": true,
"isSingle": false,
"isChild": false,
"isSubmittable": true,
"fields": [
{
"label": "Invoice No",
"fieldname": "name",
"fieldtype": "Data",
"required": true,
"readOnly": true,
"hidden": true
},
{
"abstract": true,
"fieldname": "numberSeries",
"section": "Default"
},
{
"fieldname": "party",
"label": "Party",
"fieldtype": "Link",
"target": "Party",
"create": true,
"required": true,
"section": "Default"
},
{
"fieldname": "account",
"label": "Account",
"fieldtype": "Link",
"target": "Account",
"create": true,
"required": true
},
{
"fieldname": "date",
"label": "Date",
"fieldtype": "Date",
"required": true,
"section": "Default"
},
{
"abstract": true,
"fieldname": "items",
"section": "Items"
},
{
"fieldname": "netTotal",
"label": "Net Total",
"fieldtype": "Currency",
"readOnly": true,
"section": "Items"
},
{
"fieldname": "taxes",
"label": "Taxes",
"fieldtype": "Table",
"target": "TaxSummary",
"readOnly": true,
"section": "Tax and Totals"
},
{
"fieldname": "baseGrandTotal",
"label": "Base Grand Total",
"fieldtype": "Currency",
"readOnly": true,
"section": "Tax and Totals"
},
{
"fieldname": "grandTotal",
"label": "Grand Total",
"fieldtype": "Currency",
"readOnly": true,
"section": "Tax and Totals"
},
{
"fieldname": "setDiscountAmount",
"label": "Set Discount Amount",
"fieldtype": "Check",
"default": false,
"hidden": true
},
{
"fieldname": "discountAmount",
"label": "Discount Amount",
"fieldtype": "Currency",
"readOnly": false,
"hidden": true
},
{
"fieldname": "discountPercent",
"label": "Discount Percent",
"fieldtype": "Float",
"readOnly": false,
"hidden": true
},
{
"fieldname": "entryCurrency",
"label": "Entry Currency",
"fieldtype": "Select",
"options": [
{
"value": "Party",
"label": "Party"
},
{
"value": "Company",
"label": "Company"
}
],
"default": "Party",
"hidden": true
},
{
"fieldname": "currency",
"label": "Customer Currency",
"fieldtype": "Link",
"target": "Currency",
"readOnly": true,
"hidden": true
},
{
"fieldname": "exchangeRate",
"label": "Exchange Rate",
"fieldtype": "Float",
"default": 1,
"readOnly": true,
"hidden": true
},
{
"fieldname": "discountAfterTax",
"label": "Apply Discount After Tax",
"fieldtype": "Check",
"default": false,
"readOnly": false,
"tab": "Settings"
},
{
"fieldname": "makeAutoPayment",
"label": "Make Payment On Submit",
"fieldtype": "Check",
"default": false,
"readOnly": false,
"tab": "Settings"
},
{
"fieldname": "outstandingAmount",
"label": "Outstanding Amount",
"fieldtype": "Currency",
"readOnly": true,
"section": "Outstanding"
},
{
"fieldname": "stockNotTransferred",
"label": "Stock Not Transferred",
"fieldtype": "Float",
"readOnly": true,
"section": "Outstanding"
},
{
"fieldname": "terms",
"label": "Notes",
"placeholder": "Add invoice terms",
"fieldtype": "Text",
"section": "References"
},
{
"fieldname": "attachment",
"placeholder": "Add attachment",
"label": "Attachment",
"fieldtype": "Attachment",
"section": "References"
}
],
"keywordFields": ["name", "party"]
}