2022-03-23 07:31:15 +00:00
|
|
|
{
|
|
|
|
"name": "PurchaseInvoiceItem",
|
2022-03-23 08:37:00 +00:00
|
|
|
"label": "Purchase Invoice Item",
|
2022-03-23 07:31:15 +00:00
|
|
|
"isChild": true,
|
|
|
|
"fields": [
|
|
|
|
{
|
|
|
|
"fieldname": "item",
|
|
|
|
"label": "Item",
|
|
|
|
"fieldtype": "Link",
|
|
|
|
"target": "Item",
|
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"fieldname": "description",
|
|
|
|
"label": "Description",
|
|
|
|
"fieldtype": "Text",
|
|
|
|
"hidden": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"fieldname": "quantity",
|
|
|
|
"label": "Quantity",
|
|
|
|
"fieldtype": "Float",
|
|
|
|
"required": true,
|
|
|
|
"default": 1
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"fieldname": "rate",
|
|
|
|
"label": "Rate",
|
|
|
|
"fieldtype": "Currency",
|
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"fieldname": "baseRate",
|
|
|
|
"label": "Rate (Company Currency)",
|
|
|
|
"fieldtype": "Currency",
|
2022-03-23 08:37:00 +00:00
|
|
|
"computed": true,
|
2022-03-23 07:31:15 +00:00
|
|
|
"readOnly": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"fieldname": "account",
|
|
|
|
"label": "Account",
|
|
|
|
"fieldtype": "Link",
|
|
|
|
"target": "Account",
|
|
|
|
"required": true,
|
|
|
|
"readOnly": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"fieldname": "tax",
|
|
|
|
"label": "Tax",
|
|
|
|
"fieldtype": "Link",
|
|
|
|
"target": "Tax"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"fieldname": "amount",
|
|
|
|
"label": "Amount",
|
|
|
|
"fieldtype": "Currency",
|
2022-03-23 08:37:00 +00:00
|
|
|
"computed": true,
|
2022-03-23 07:31:15 +00:00
|
|
|
"readOnly": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"fieldname": "baseAmount",
|
|
|
|
"label": "Amount (Company Currency)",
|
|
|
|
"fieldtype": "Currency",
|
2022-03-23 08:37:00 +00:00
|
|
|
"computed": true,
|
2022-03-23 07:31:15 +00:00
|
|
|
"readOnly": true
|
2022-04-14 09:22:45 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"fieldname": "hsnCode",
|
|
|
|
"label": "HSN/SAC",
|
|
|
|
"fieldtype": "Int",
|
|
|
|
"placeholder": "HSN/SAC Code"
|
2022-03-23 07:31:15 +00:00
|
|
|
}
|
2022-04-14 09:22:45 +00:00
|
|
|
],
|
|
|
|
"tableFields": ["item", "tax", "quantity", "rate", "amount"]
|
|
|
|
}
|