153 lines
4.1 KiB
JSON
153 lines
4.1 KiB
JSON
{
|
|
"module": "item",
|
|
"name": "Items",
|
|
"icon": "inbox",
|
|
"validations" : true,
|
|
"routes": [
|
|
{
|
|
"url": "/item",
|
|
"state": "item",
|
|
"abstract": true,
|
|
"description": "Items",
|
|
"component": "ui-view"
|
|
},
|
|
{
|
|
"url": "/index?q",
|
|
"state": "item.index",
|
|
"component": "vn-item-index",
|
|
"description": "List"
|
|
},
|
|
{
|
|
"url": "/create",
|
|
"state": "item.create",
|
|
"component": "vn-item-create",
|
|
"description": "New item"
|
|
},
|
|
{
|
|
"url": "/:id",
|
|
"state": "item.card",
|
|
"abstract": true,
|
|
"component": "vn-item-card"
|
|
},
|
|
{
|
|
"url" : "/data",
|
|
"state": "item.card.data",
|
|
"component": "vn-item-data",
|
|
"description": "Basic data",
|
|
"params": {
|
|
"item": "$ctrl.item"
|
|
},
|
|
"menu": {
|
|
"icon": "settings"
|
|
},
|
|
"acl": ["buyer"]
|
|
},
|
|
{
|
|
"url" : "/tags",
|
|
"state": "item.card.tags",
|
|
"component": "vn-item-tags",
|
|
"description": "Tags",
|
|
"params": {
|
|
"item-tags": "$ctrl.itemTags"
|
|
},
|
|
"menu": {
|
|
"icon": "icon-tags"
|
|
},
|
|
"acl": ["buyer"]
|
|
},
|
|
{
|
|
"url" : "/tax",
|
|
"state": "item.card.tax",
|
|
"component": "vn-item-tax",
|
|
"description": "Tax",
|
|
"menu": {
|
|
"icon": "icon-tax"
|
|
},
|
|
"acl": ["administrative","buyer"]
|
|
},
|
|
{
|
|
"url" : "/history",
|
|
"state": "item.card.history",
|
|
"component": "vn-item-history",
|
|
"description": "History",
|
|
"params": {
|
|
"item": "$ctrl.item"
|
|
},
|
|
"menu": {
|
|
"icon": "history"
|
|
}
|
|
},
|
|
{
|
|
"url" : "/niche",
|
|
"state": "item.card.niche",
|
|
"component": "vn-item-niche",
|
|
"description": "Niches",
|
|
"params": {
|
|
"item": "$ctrl.item"
|
|
},
|
|
"menu": {
|
|
"icon": "place"
|
|
},
|
|
"acl": ["buyer","replenisher"]
|
|
},
|
|
{
|
|
"url" : "/botanical",
|
|
"state": "item.card.botanical",
|
|
"component": "vn-item-botanical",
|
|
"description": "Botanical",
|
|
"params": {
|
|
"item": "$ctrl.item"
|
|
},
|
|
"menu": {
|
|
"icon": "local_florist"
|
|
},
|
|
"acl": ["buyer"]
|
|
},
|
|
{
|
|
"url" : "/barcode",
|
|
"state": "item.card.itemBarcode",
|
|
"component": "vn-item-barcode",
|
|
"description": "Barcodes",
|
|
"params": {
|
|
"item": "$ctrl.item"
|
|
},
|
|
"menu": {
|
|
"icon": "icon-barcode"
|
|
},
|
|
"acl": ["buyer","replenisher"]
|
|
},
|
|
{
|
|
"url" : "/summary",
|
|
"state": "item.card.summary",
|
|
"component": "vn-item-summary",
|
|
"description": "Summary",
|
|
"params": {
|
|
"item": "$ctrl.item"
|
|
}
|
|
}, {
|
|
"url" : "/diary?q",
|
|
"state": "item.card.diary",
|
|
"component": "vn-item-diary",
|
|
"description": "Diary",
|
|
"params": {
|
|
"item": "$ctrl.item"
|
|
},
|
|
"menu": {
|
|
"icon": "icon-transaction"
|
|
},
|
|
"acl": ["employee"]
|
|
}, {
|
|
"url" : "/last-entries",
|
|
"state": "item.card.last-entries",
|
|
"component": "vn-item-last-entries",
|
|
"description": "Last entries",
|
|
"params": {
|
|
"item": "$ctrl.item"
|
|
},
|
|
"menu": {
|
|
"icon": "icon-regentry"
|
|
},
|
|
"acl": ["employee"]
|
|
}
|
|
]
|
|
} |