mirror of
https://github.com/frappe/books.git
synced 2024-11-10 07:40:55 +00:00
a8b5884929
- prevent erroneous setting of track item - fix table UI
74 lines
1.5 KiB
JSON
74 lines
1.5 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
|
|
},
|
|
{
|
|
"fieldname": "date",
|
|
"label": "Date",
|
|
"fieldtype": "Datetime",
|
|
"required": true
|
|
},
|
|
{
|
|
"fieldname": "movementType",
|
|
"label": "Movement Type",
|
|
"fieldtype": "Select",
|
|
"options": [
|
|
{
|
|
"value": "MaterialIssue",
|
|
"label": "Material Issue"
|
|
},
|
|
{
|
|
"value": "MaterialReceipt",
|
|
"label": "Material Receipt"
|
|
},
|
|
{
|
|
"value": "MaterialTransfer",
|
|
"label": "Material Transfer"
|
|
}
|
|
],
|
|
"required": true
|
|
},
|
|
{
|
|
"fieldname": "numberSeries",
|
|
"label": "Number Series",
|
|
"fieldtype": "Link",
|
|
"target": "NumberSeries",
|
|
"create": true,
|
|
"required": true,
|
|
"default": "SMOV-"
|
|
},
|
|
{
|
|
"fieldname": "amount",
|
|
"label": "Amount",
|
|
"fieldtype": "Currency",
|
|
"readOnly": true
|
|
},
|
|
{
|
|
"fieldname": "items",
|
|
"label": "Items",
|
|
"fieldtype": "Table",
|
|
"target": "StockMovementItem",
|
|
"required": true
|
|
}
|
|
],
|
|
"quickEditFields": [
|
|
"numberSeries",
|
|
"date",
|
|
"movementType",
|
|
"amount",
|
|
"items"
|
|
],
|
|
"keywordFields": ["name", "movementType"]
|
|
}
|