mirror of
https://github.com/frappe/books.git
synced 2024-11-14 01:14:03 +00:00
125 lines
2.6 KiB
JSON
125 lines
2.6 KiB
JSON
{
|
|
"name": "InvoiceItem",
|
|
"label": "Invoice Item",
|
|
"isAbstract": true,
|
|
"isChild": true,
|
|
"fields": [
|
|
{
|
|
"fieldname": "item",
|
|
"label": "Item",
|
|
"fieldtype": "Link",
|
|
"target": "Item",
|
|
"create": true,
|
|
"required": true
|
|
},
|
|
{
|
|
"fieldname": "description",
|
|
"label": "Description",
|
|
"fieldtype": "Text"
|
|
},
|
|
{
|
|
"fieldname": "quantity",
|
|
"label": "Quantity",
|
|
"fieldtype": "Float",
|
|
"required": true,
|
|
"default": 1
|
|
},
|
|
{
|
|
"fieldname": "rate",
|
|
"label": "Rate",
|
|
"fieldtype": "Currency",
|
|
"required": true
|
|
},
|
|
{
|
|
"fieldname": "account",
|
|
"label": "Account",
|
|
"fieldtype": "Link",
|
|
"target": "Account",
|
|
"required": true
|
|
},
|
|
{
|
|
"fieldname": "tax",
|
|
"label": "Tax",
|
|
"fieldtype": "Link",
|
|
"create": true,
|
|
"target": "Tax"
|
|
},
|
|
{
|
|
"fieldname": "amount",
|
|
"label": "Amount",
|
|
"fieldtype": "Currency",
|
|
"readOnly": true
|
|
},
|
|
{
|
|
"fieldname": "setItemDiscountAmount",
|
|
"label": "Set Discount Amount",
|
|
"fieldtype": "Check",
|
|
"default": false
|
|
},
|
|
{
|
|
"fieldname": "itemDiscountAmount",
|
|
"label": "Discount Amount",
|
|
"fieldtype": "Currency",
|
|
"readOnly": false
|
|
},
|
|
{
|
|
"fieldname": "itemDiscountPercent",
|
|
"label": "Discount Percent",
|
|
"fieldtype": "Float",
|
|
"readOnly": false
|
|
},
|
|
{
|
|
"fieldname": "itemDiscountedTotal",
|
|
"label": "Discounted Amount",
|
|
"fieldtype": "Currency",
|
|
"readOnly": false,
|
|
"computed": true
|
|
},
|
|
{
|
|
"fieldname": "itemTaxedTotal",
|
|
"label": "Taxed Amount",
|
|
"fieldtype": "Currency",
|
|
"readOnly": false,
|
|
"computed": true
|
|
},
|
|
{
|
|
"fieldname": "hsnCode",
|
|
"label": "HSN/SAC",
|
|
"fieldtype": "Int",
|
|
"placeholder": "HSN/SAC Code"
|
|
},
|
|
{
|
|
"fieldname": "stockNotTransferred",
|
|
"label": "Stock Not Transferred",
|
|
"fieldtype": "Float",
|
|
"readOnly": true
|
|
},
|
|
{
|
|
"fieldname": "batchNumber",
|
|
"label": "Batch No",
|
|
"fieldtype": "Link",
|
|
"create": true,
|
|
"target": "BatchNumber",
|
|
"placeholder": "Batch No"
|
|
}
|
|
],
|
|
"tableFields": ["item", "tax", "batchNumber", "quantity", "rate", "amount"],
|
|
"keywordFields": ["item", "tax"],
|
|
"quickEditFields": [
|
|
"item",
|
|
"account",
|
|
"description",
|
|
"hsnCode",
|
|
"tax",
|
|
"batchNumber",
|
|
"quantity",
|
|
"rate",
|
|
"amount",
|
|
"setItemDiscountAmount",
|
|
"itemDiscountAmount",
|
|
"itemDiscountPercent",
|
|
"itemDiscountedTotal",
|
|
"itemTaxedTotal"
|
|
]
|
|
}
|