2020-01-10 10:52:35 +00:00
|
|
|
{
|
|
|
|
"module": "entry",
|
|
|
|
"name": "Entries",
|
|
|
|
"icon": "icon-entry",
|
2020-08-26 14:33:47 +00:00
|
|
|
"dependencies": ["travel", "item"],
|
2020-01-10 10:52:35 +00:00
|
|
|
"validations": true,
|
|
|
|
"menus": {
|
|
|
|
"main": [
|
2020-07-20 09:31:47 +00:00
|
|
|
{"state": "entry.index", "icon": "icon-entry"},
|
|
|
|
{"state": "entry.latestBuys", "icon": "icon-latestBuys"}
|
2020-01-10 10:52:35 +00:00
|
|
|
],
|
|
|
|
"card": [
|
2020-09-07 06:15:43 +00:00
|
|
|
{"state": "entry.card.basicData", "icon": "settings"},
|
2021-01-26 06:21:05 +00:00
|
|
|
{"state": "entry.card.buy.index", "icon": "icon-lines"},
|
2020-12-23 11:25:12 +00:00
|
|
|
{"state": "entry.card.observation", "icon": "insert_drive_file"},
|
2020-03-06 09:21:42 +00:00
|
|
|
{"state": "entry.card.log", "icon": "history"}
|
2020-01-10 10:52:35 +00:00
|
|
|
]
|
|
|
|
},
|
2021-01-29 08:46:57 +00:00
|
|
|
"keybindings": [
|
|
|
|
{"key": "e", "state": "entry.index"}
|
|
|
|
],
|
2020-01-10 10:52:35 +00:00
|
|
|
"routes": [
|
|
|
|
{
|
|
|
|
"url": "/entry",
|
|
|
|
"state": "entry",
|
|
|
|
"abstract": true,
|
|
|
|
"component": "vn-entry",
|
|
|
|
"description": "Entries"
|
|
|
|
}, {
|
|
|
|
"url": "/index?q",
|
|
|
|
"state": "entry.index",
|
|
|
|
"component": "vn-entry-index",
|
2020-08-26 14:33:47 +00:00
|
|
|
"description": "Entries",
|
2021-02-10 08:10:15 +00:00
|
|
|
"acl": ["buyer", "administrative"]
|
2020-07-20 09:31:47 +00:00
|
|
|
}, {
|
|
|
|
"url": "/latest-buys?q",
|
|
|
|
"state": "entry.latestBuys",
|
|
|
|
"component": "vn-entry-latest-buys",
|
2020-08-26 14:33:47 +00:00
|
|
|
"description": "Latest buys",
|
2021-02-10 08:10:15 +00:00
|
|
|
"acl": ["buyer", "administrative"]
|
2020-09-02 12:08:56 +00:00
|
|
|
}, {
|
|
|
|
"url": "/create?supplierFk&travelFk&companyFk",
|
|
|
|
"state": "entry.create",
|
|
|
|
"component": "vn-entry-create",
|
|
|
|
"description": "New entry",
|
2021-02-10 08:10:15 +00:00
|
|
|
"acl": ["buyer", "administrative"]
|
2020-01-10 10:52:35 +00:00
|
|
|
}, {
|
|
|
|
"url": "/:id",
|
|
|
|
"state": "entry.card",
|
|
|
|
"abstract": true,
|
|
|
|
"component": "vn-entry-card"
|
2020-02-04 08:34:31 +00:00
|
|
|
}, {
|
|
|
|
"url": "/summary",
|
|
|
|
"state": "entry.card.summary",
|
|
|
|
"component": "vn-entry-summary",
|
|
|
|
"description": "Summary",
|
|
|
|
"params": {
|
|
|
|
"entry": "$ctrl.entry"
|
|
|
|
}
|
2020-09-07 06:15:43 +00:00
|
|
|
}, {
|
|
|
|
"url": "/basic-data",
|
|
|
|
"state": "entry.card.basicData",
|
|
|
|
"component": "vn-entry-basic-data",
|
|
|
|
"description": "Basic data",
|
|
|
|
"params": {
|
|
|
|
"entry": "$ctrl.entry"
|
|
|
|
}
|
2020-12-23 11:25:12 +00:00
|
|
|
},{
|
|
|
|
"url": "/observation",
|
|
|
|
"state": "entry.card.observation",
|
|
|
|
"component": "vn-entry-observation",
|
|
|
|
"description": "Notes",
|
|
|
|
"params": {
|
|
|
|
"entry": "$ctrl.entry"
|
|
|
|
}
|
|
|
|
},{
|
2020-03-02 08:28:08 +00:00
|
|
|
"url" : "/log",
|
|
|
|
"state": "entry.card.log",
|
|
|
|
"component": "vn-entry-log",
|
|
|
|
"description": "Log"
|
2021-01-26 06:21:05 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"url": "/buy",
|
2020-03-06 08:57:05 +00:00
|
|
|
"state": "entry.card.buy",
|
2021-01-26 06:21:05 +00:00
|
|
|
"abstract": true,
|
|
|
|
"component": "ui-view"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"url" : "/index",
|
|
|
|
"state": "entry.card.buy.index",
|
|
|
|
"component": "vn-entry-buy-index",
|
2020-03-06 08:57:05 +00:00
|
|
|
"description": "Buy",
|
|
|
|
"params": {
|
|
|
|
"entry": "$ctrl.entry"
|
|
|
|
}
|
2021-01-26 06:21:05 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"url" : "/import",
|
|
|
|
"state": "entry.card.buy.import",
|
|
|
|
"component": "vn-entry-buy-import",
|
|
|
|
"description": "Import buys",
|
|
|
|
"params": {
|
|
|
|
"entry": "$ctrl.entry"
|
|
|
|
}
|
2020-01-10 10:52:35 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|