2022-09-27 09:37:11 +00:00
|
|
|
{
|
|
|
|
"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"
|
|
|
|
},
|
|
|
|
{
|
2023-02-21 08:54:35 +00:00
|
|
|
"fieldname": "rate",
|
|
|
|
"label": "Rate",
|
|
|
|
"fieldtype": "Currency",
|
|
|
|
"required": true
|
2022-09-27 09:37:11 +00:00
|
|
|
},
|
2023-02-15 09:07:38 +00:00
|
|
|
{
|
2023-02-21 08:54:35 +00:00
|
|
|
"fieldname": "transferUnit",
|
|
|
|
"label": "Transfer Unit",
|
|
|
|
"fieldtype": "Link",
|
|
|
|
"target": "UOM",
|
2023-02-21 10:40:06 +00:00
|
|
|
"default": "Unit",
|
2023-02-21 08:54:35 +00:00
|
|
|
"placeholder": "Unit"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"fieldname": "transferQuantity",
|
|
|
|
"label": "Qty. in Transfer Unit",
|
2023-02-15 09:07:38 +00:00
|
|
|
"fieldtype": "Float",
|
2023-02-21 09:18:55 +00:00
|
|
|
"default": 1,
|
2023-02-15 09:07:38 +00:00
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
{
|
2023-02-21 08:54:35 +00:00
|
|
|
"fieldname": "unit",
|
|
|
|
"label": "Stock Unit",
|
|
|
|
"fieldtype": "Link",
|
|
|
|
"target": "UOM",
|
|
|
|
"default": "Unit",
|
|
|
|
"placeholder": "Unit",
|
2023-02-15 09:07:38 +00:00
|
|
|
"readOnly": true
|
|
|
|
},
|
2023-02-21 12:29:05 +00:00
|
|
|
{
|
|
|
|
"fieldname": "batchNumber",
|
|
|
|
"label": "Batch No",
|
|
|
|
"fieldtype": "Link",
|
|
|
|
"create": true,
|
|
|
|
"target": "BatchNumber",
|
|
|
|
"placeholder": "Batch No"
|
|
|
|
},
|
2022-09-27 09:37:11 +00:00
|
|
|
{
|
|
|
|
"fieldname": "quantity",
|
|
|
|
"label": "Quantity",
|
|
|
|
"fieldtype": "Float",
|
|
|
|
"required": true,
|
|
|
|
"default": 1
|
|
|
|
},
|
|
|
|
{
|
2023-02-21 08:54:35 +00:00
|
|
|
"fieldname": "unitConversionFactor",
|
2023-02-15 09:07:38 +00:00
|
|
|
"label": "Conversion Factor",
|
|
|
|
"fieldtype": "Float",
|
2023-02-21 09:18:55 +00:00
|
|
|
"required": true,
|
|
|
|
"default": 1
|
2022-09-27 09:37:11 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"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"
|
2022-11-22 09:12:49 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"fieldname": "stockNotTransferred",
|
|
|
|
"label": "Stock Not Transferred",
|
|
|
|
"fieldtype": "Float",
|
|
|
|
"readOnly": true
|
2022-09-27 09:37:11 +00:00
|
|
|
}
|
|
|
|
],
|
2023-01-18 12:03:51 +00:00
|
|
|
"tableFields": ["item", "tax", "batchNumber", "quantity", "rate", "amount"],
|
2022-09-27 09:37:11 +00:00
|
|
|
"keywordFields": ["item", "tax"],
|
|
|
|
"quickEditFields": [
|
|
|
|
"item",
|
|
|
|
"account",
|
|
|
|
"description",
|
|
|
|
"hsnCode",
|
|
|
|
"tax",
|
|
|
|
"rate",
|
2023-02-21 10:40:06 +00:00
|
|
|
|
2023-02-21 08:54:35 +00:00
|
|
|
"transferQuantity",
|
2023-02-21 10:40:06 +00:00
|
|
|
"transferUnit",
|
2023-01-18 12:03:51 +00:00
|
|
|
"batchNumber",
|
2022-09-27 09:37:11 +00:00
|
|
|
"quantity",
|
2023-02-21 10:40:06 +00:00
|
|
|
"unit",
|
2023-02-21 08:54:35 +00:00
|
|
|
"unitConversionFactor",
|
2023-02-21 10:40:06 +00:00
|
|
|
|
2022-09-27 09:37:11 +00:00
|
|
|
"amount",
|
|
|
|
"setItemDiscountAmount",
|
|
|
|
"itemDiscountAmount",
|
|
|
|
"itemDiscountPercent",
|
|
|
|
"itemDiscountedTotal",
|
2023-01-18 12:03:51 +00:00
|
|
|
"itemTaxedTotal"
|
2022-09-27 09:37:11 +00:00
|
|
|
]
|
|
|
|
}
|