2017-12-19 10:24:24 +00:00
|
|
|
{
|
|
|
|
"module": "item",
|
|
|
|
"name": "Items",
|
2019-02-21 09:17:13 +00:00
|
|
|
"icon": "icon-item",
|
2018-01-09 13:54:18 +00:00
|
|
|
"validations" : true,
|
2024-10-03 05:48:41 +00:00
|
|
|
"dependencies": ["worker", "client", "ticket", "entry"],
|
2019-11-10 10:08:44 +00:00
|
|
|
"menus": {
|
|
|
|
"main": [
|
2024-11-21 19:24:33 +00:00
|
|
|
{"state": "item.index", "icon": "icon-item"},
|
|
|
|
{"state": "item.request", "icon": "icon-buyrequest"},
|
|
|
|
{"state": "item.waste.index", "icon": "icon-claims"},
|
|
|
|
{"state": "item.fixedPrice", "icon": "icon-fixedPrice"},
|
|
|
|
{"state": "item.itemType", "icon": "contact_support"}
|
|
|
|
],
|
|
|
|
"card": [
|
|
|
|
{"state": "item.card.basicData", "icon": "settings"},
|
|
|
|
{"state": "item.card.tags", "icon": "icon-tags"},
|
|
|
|
{"state": "item.card.last-entries", "icon": "icon-regentry"},
|
|
|
|
{"state": "item.card.tax", "icon": "icon-tax"},
|
|
|
|
{"state": "item.card.botanical", "icon": "local_florist"},
|
|
|
|
{"state": "item.card.shelving", "icon": "icon-inventory"},
|
|
|
|
{"state": "item.card.itemBarcode", "icon": "icon-barcode"},
|
|
|
|
{"state": "item.card.diary", "icon": "icon-transaction"},
|
|
|
|
{"state": "item.card.log", "icon": "history"}
|
|
|
|
],
|
|
|
|
"itemType": [
|
|
|
|
{"state": "item.itemType.card.basicData", "icon": "settings"}
|
2019-11-10 10:08:44 +00:00
|
|
|
]
|
|
|
|
},
|
2019-01-28 15:24:45 +00:00
|
|
|
"keybindings": [
|
|
|
|
{"key": "a", "state": "item.index"}
|
|
|
|
],
|
2017-12-19 10:24:24 +00:00
|
|
|
"routes": [
|
|
|
|
{
|
|
|
|
"url": "/item",
|
|
|
|
"state": "item",
|
|
|
|
"abstract": true,
|
2018-07-25 13:14:03 +00:00
|
|
|
"description": "Items",
|
2019-11-10 10:08:44 +00:00
|
|
|
"component": "vn-items"
|
2021-01-18 13:16:39 +00:00
|
|
|
},
|
|
|
|
{
|
2018-05-25 08:03:45 +00:00
|
|
|
"url": "/index?q",
|
2017-12-19 10:24:24 +00:00
|
|
|
"state": "item.index",
|
2018-07-25 13:14:03 +00:00
|
|
|
"component": "vn-item-index",
|
2019-01-27 23:26:01 +00:00
|
|
|
"description": "Items"
|
2021-01-18 13:16:39 +00:00
|
|
|
},
|
2024-11-21 19:24:33 +00:00
|
|
|
{
|
|
|
|
"url": "/create",
|
|
|
|
"state": "item.create",
|
|
|
|
"component": "vn-item-create",
|
|
|
|
"description": "New item"
|
|
|
|
},
|
2021-01-18 13:16:39 +00:00
|
|
|
{
|
2017-12-20 13:36:12 +00:00
|
|
|
"url": "/:id",
|
|
|
|
"state": "item.card",
|
|
|
|
"abstract": true,
|
|
|
|
"component": "vn-item-card"
|
2024-11-21 19:24:33 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"url" : "/basic-data",
|
|
|
|
"state": "item.card.basicData",
|
|
|
|
"component": "vn-item-basic-data",
|
|
|
|
"description": "Basic data",
|
|
|
|
"params": {
|
|
|
|
"item": "$ctrl.item"
|
|
|
|
},
|
|
|
|
"acl": ["buyer"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"url" : "/tags",
|
|
|
|
"state": "item.card.tags",
|
|
|
|
"component": "vn-item-tags",
|
|
|
|
"description": "Tags",
|
|
|
|
"params": {
|
|
|
|
"item-tags": "$ctrl.itemTags"
|
|
|
|
},
|
|
|
|
"acl": ["buyer", "replenisher"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"url" : "/tax",
|
|
|
|
"state": "item.card.tax",
|
|
|
|
"component": "vn-item-tax",
|
|
|
|
"description": "Tax",
|
|
|
|
"acl": ["administrative","buyer"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"url" : "/botanical",
|
|
|
|
"state": "item.card.botanical",
|
|
|
|
"component": "vn-item-botanical",
|
|
|
|
"description": "Botanical",
|
|
|
|
"params": {
|
|
|
|
"item": "$ctrl.item"
|
|
|
|
},
|
|
|
|
"acl": ["buyer"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"url" : "/shelving",
|
|
|
|
"state": "item.card.shelving",
|
|
|
|
"component": "vn-item-shelving",
|
|
|
|
"description": "Shelvings",
|
|
|
|
"params": {
|
|
|
|
"item": "$ctrl.item"
|
|
|
|
},
|
|
|
|
"acl": ["employee"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"url" : "/barcode",
|
|
|
|
"state": "item.card.itemBarcode",
|
|
|
|
"component": "vn-item-barcode",
|
|
|
|
"description": "Barcodes",
|
|
|
|
"params": {
|
|
|
|
"item": "$ctrl.item"
|
|
|
|
},
|
|
|
|
"acl": ["buyer","replenisher"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"url" : "/summary",
|
|
|
|
"state": "item.card.summary",
|
|
|
|
"component": "vn-item-summary",
|
|
|
|
"description": "Summary",
|
|
|
|
"params": {
|
|
|
|
"item": "$ctrl.item"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"url" : "/diary?warehouseFk&lineFk",
|
|
|
|
"state": "item.card.diary",
|
|
|
|
"component": "vn-item-diary",
|
|
|
|
"description": "Diary",
|
|
|
|
"params": {
|
|
|
|
"item": "$ctrl.item"
|
|
|
|
},
|
|
|
|
"acl": ["employee"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"url" : "/last-entries",
|
|
|
|
"state": "item.card.last-entries",
|
|
|
|
"component": "vn-item-last-entries",
|
|
|
|
"description": "Last entries",
|
|
|
|
"params": {
|
|
|
|
"item": "$ctrl.item"
|
|
|
|
},
|
|
|
|
"acl": ["employee"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"url" : "/log",
|
|
|
|
"state": "item.card.log",
|
|
|
|
"component": "vn-item-log",
|
|
|
|
"description": "Log"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"url" : "/request?q",
|
|
|
|
"state": "item.request",
|
|
|
|
"component": "vn-item-request",
|
|
|
|
"description": "Buy requests",
|
|
|
|
"params": {
|
|
|
|
"item": "$ctrl.item"
|
|
|
|
},
|
|
|
|
"acl": ["employee"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"url": "/waste",
|
|
|
|
"state": "item.waste",
|
|
|
|
"component": "ui-view",
|
|
|
|
"abstract": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"url" : "/index",
|
|
|
|
"state": "item.waste.index",
|
|
|
|
"component": "vn-item-waste-index",
|
|
|
|
"description": "Waste breakdown",
|
|
|
|
"acl": ["buyer"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"url" : "/detail?buyer&family",
|
|
|
|
"state": "item.waste.detail",
|
|
|
|
"component": "vn-item-waste-detail",
|
|
|
|
"description": "Waste breakdown by item",
|
|
|
|
"acl": ["buyer"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"url" : "/fixed-price?q",
|
|
|
|
"state": "item.fixedPrice",
|
|
|
|
"component": "vn-fixed-price",
|
|
|
|
"description": "Fixed prices",
|
|
|
|
"acl": ["buyer"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"url" : "/item-type?q",
|
|
|
|
"state": "item.itemType",
|
|
|
|
"component": "vn-item-type",
|
|
|
|
"description": "Item Type",
|
|
|
|
"acl": ["buyer"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"url": "/create",
|
|
|
|
"state": "item.itemType.create",
|
|
|
|
"component": "vn-item-type-create",
|
|
|
|
"description": "New itemType",
|
|
|
|
"acl": ["buyer"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"url": "/:id",
|
|
|
|
"state": "item.itemType.card",
|
|
|
|
"component": "vn-item-type-card",
|
|
|
|
"abstract": true,
|
|
|
|
"description": "Detail"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"url": "/summary",
|
|
|
|
"state": "item.itemType.card.summary",
|
|
|
|
"component": "vn-item-type-summary",
|
|
|
|
"description": "Summary",
|
|
|
|
"params": {
|
|
|
|
"item-type": "$ctrl.itemType"
|
|
|
|
},
|
|
|
|
"acl": ["buyer"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"url": "/basic-data",
|
|
|
|
"state": "item.itemType.card.basicData",
|
|
|
|
"component": "vn-item-type-basic-data",
|
|
|
|
"description": "Basic data",
|
|
|
|
"params": {
|
|
|
|
"item-type": "$ctrl.itemType"
|
|
|
|
},
|
|
|
|
"acl": ["buyer"]
|
2017-12-19 10:24:24 +00:00
|
|
|
}
|
|
|
|
]
|
2024-06-07 09:35:03 +00:00
|
|
|
}
|