{ "module": "item", "name": "Items", "icon": "icon-item", "validations" : true, "dependencies": ["worker", "client", "ticket"], "menu": [ {"state": "item.card.data", "icon": "settings"}, {"state": "item.card.tags", "icon": "icon-tags"}, {"state": "item.card.tax", "icon": "icon-tax"}, {"state": "item.card.niche", "icon": "place"}, {"state": "item.card.botanical", "icon": "local_florist"}, {"state": "item.card.itemBarcode", "icon": "icon-barcode"}, {"state": "item.card.diary", "icon": "icon-transaction"}, {"state": "item.card.last-entries", "icon": "icon-regentry"}, {"state": "item.card.log", "icon": "history"} ], "keybindings": [ {"key": "a", "state": "item.index"} ], "routes": [ { "url": "/item", "state": "item", "abstract": true, "description": "Items", "component": "ui-view" }, { "url": "/index?q", "state": "item.index", "component": "vn-item-index", "description": "Items" }, { "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" }, "acl": ["buyer"] }, { "url" : "/tags", "state": "item.card.tags", "component": "vn-item-tags", "description": "Tags", "params": { "item-tags": "$ctrl.itemTags" }, "acl": ["buyer", "accessory"] }, { "url" : "/tax", "state": "item.card.tax", "component": "vn-item-tax", "description": "Tax", "acl": ["administrative","buyer"] }, { "url" : "/niche", "state": "item.card.niche", "component": "vn-item-niche", "description": "Niches", "params": { "item": "$ctrl.item" }, "acl": ["buyer","replenisher"] }, { "url" : "/botanical", "state": "item.card.botanical", "component": "vn-item-botanical", "description": "Botanical", "params": { "item": "$ctrl.item" }, "acl": ["buyer"] }, { "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&ticketFk", "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" } ] }