mirror of
https://github.com/frappe/books.git
synced 2024-12-23 03:19:01 +00:00
85 lines
1.8 KiB
JSON
85 lines
1.8 KiB
JSON
{
|
|
"name": "StockMovement",
|
|
"label": "Stock Movement",
|
|
"naming": "numberSeries",
|
|
"isSingle": false,
|
|
"isChild": false,
|
|
"isSubmittable": true,
|
|
"fields": [
|
|
{
|
|
"label": "Stock Movement No.",
|
|
"fieldname": "name",
|
|
"fieldtype": "Data",
|
|
"required": true,
|
|
"readOnly": true,
|
|
"section": "Default"
|
|
},
|
|
{
|
|
"fieldname": "numberSeries",
|
|
"label": "Number Series",
|
|
"fieldtype": "Link",
|
|
"target": "NumberSeries",
|
|
"create": true,
|
|
"required": true,
|
|
"default": "SMOV-",
|
|
"section": "Default"
|
|
},
|
|
{
|
|
"fieldname": "movementType",
|
|
"label": "Movement Type",
|
|
"fieldtype": "Select",
|
|
"options": [
|
|
{
|
|
"value": "MaterialIssue",
|
|
"label": "Material Issue"
|
|
},
|
|
{
|
|
"value": "MaterialReceipt",
|
|
"label": "Material Receipt"
|
|
},
|
|
{
|
|
"value": "MaterialTransfer",
|
|
"label": "Material Transfer"
|
|
},
|
|
{
|
|
"value": "Manufacture",
|
|
"label": "Manufacture"
|
|
}
|
|
],
|
|
"required": true,
|
|
"section": "Default"
|
|
},
|
|
{
|
|
"fieldname": "date",
|
|
"label": "Date",
|
|
"fieldtype": "Datetime",
|
|
"required": true,
|
|
"section": "Default"
|
|
},
|
|
{
|
|
"fieldname": "items",
|
|
"label": "Items",
|
|
"fieldtype": "Table",
|
|
"target": "StockMovementItem",
|
|
"required": true,
|
|
"edit": true,
|
|
"section": "Items"
|
|
},
|
|
{
|
|
"fieldname": "amount",
|
|
"label": "Total Amount",
|
|
"fieldtype": "Currency",
|
|
"readOnly": true,
|
|
"section": "Items"
|
|
}
|
|
],
|
|
"quickEditFields": [
|
|
"numberSeries",
|
|
"date",
|
|
"movementType",
|
|
"amount",
|
|
"items"
|
|
],
|
|
"keywordFields": ["name", "movementType"]
|
|
}
|