2020-10-15 06:15:04 +00:00
|
|
|
{
|
|
|
|
"module": "supplier",
|
|
|
|
"name": "Suppliers",
|
|
|
|
"icon" : "icon-supplier",
|
2020-10-20 07:44:44 +00:00
|
|
|
"dependencies": ["client", "item"],
|
2020-10-15 06:15:04 +00:00
|
|
|
"validations" : true,
|
|
|
|
"menus": {
|
|
|
|
"main": [
|
|
|
|
{"state": "supplier.index", "icon": "icon-supplier"}
|
|
|
|
],
|
|
|
|
"card": [
|
2020-10-31 10:22:56 +00:00
|
|
|
{"state": "supplier.card.basicData", "icon": "settings"},
|
2020-11-02 07:32:46 +00:00
|
|
|
{"state": "supplier.card.fiscalData", "icon": "account_balance"},
|
2020-12-14 15:09:17 +00:00
|
|
|
{"state": "supplier.card.billingData", "icon": "icon-payment"},
|
2021-04-29 12:41:10 +00:00
|
|
|
{"state": "supplier.card.address.index", "icon": "icon-delivery"},
|
2021-11-26 13:48:55 +00:00
|
|
|
{"state": "supplier.card.account", "icon": "icon-account"},
|
2020-10-30 10:40:12 +00:00
|
|
|
{"state": "supplier.card.contact", "icon": "contact_phone"},
|
2020-12-16 07:05:41 +00:00
|
|
|
{"state": "supplier.card.log", "icon": "history"},
|
|
|
|
{"state": "supplier.card.consumption", "icon": "show_chart"}
|
2020-10-15 06:15:04 +00:00
|
|
|
]
|
|
|
|
},
|
2021-01-29 08:46:57 +00:00
|
|
|
"keybindings": [
|
|
|
|
{"key": "p", "state": "supplier.index"}
|
|
|
|
],
|
2020-10-15 06:15:04 +00:00
|
|
|
"routes": [
|
|
|
|
{
|
|
|
|
"url": "/supplier",
|
|
|
|
"state": "supplier",
|
|
|
|
"abstract": true,
|
|
|
|
"component": "vn-supplier",
|
|
|
|
"description": "Suppliers"
|
2020-10-30 10:40:12 +00:00
|
|
|
},
|
|
|
|
{
|
2020-10-15 06:15:04 +00:00
|
|
|
"url": "/index?q",
|
|
|
|
"state": "supplier.index",
|
|
|
|
"component": "vn-supplier-index",
|
|
|
|
"description": "Suppliers"
|
2020-10-30 10:40:12 +00:00
|
|
|
},
|
|
|
|
{
|
2020-10-20 07:44:44 +00:00
|
|
|
"url": "/:id",
|
|
|
|
"state": "supplier.card",
|
|
|
|
"abstract": true,
|
|
|
|
"component": "vn-supplier-card"
|
2020-10-30 10:40:12 +00:00
|
|
|
},
|
|
|
|
{
|
2020-10-20 07:44:44 +00:00
|
|
|
"url": "/summary",
|
|
|
|
"state": "supplier.card.summary",
|
|
|
|
"component": "vn-supplier-summary",
|
|
|
|
"description": "Summary",
|
|
|
|
"params": {
|
|
|
|
"supplier": "$ctrl.supplier"
|
|
|
|
}
|
2021-04-29 12:41:10 +00:00
|
|
|
},
|
|
|
|
{
|
2020-10-30 14:11:45 +00:00
|
|
|
"url": "/basic-data",
|
|
|
|
"state": "supplier.card.basicData",
|
|
|
|
"component": "vn-supplier-basic-data",
|
|
|
|
"description": "Basic data",
|
2020-11-05 10:46:15 +00:00
|
|
|
"acl": ["administrative"],
|
2020-10-30 14:11:45 +00:00
|
|
|
"params": {
|
|
|
|
"supplier": "$ctrl.supplier"
|
|
|
|
}
|
2021-04-29 12:41:10 +00:00
|
|
|
},
|
|
|
|
{
|
2020-10-30 14:11:45 +00:00
|
|
|
"url": "/fiscal-data",
|
|
|
|
"state": "supplier.card.fiscalData",
|
|
|
|
"component": "vn-supplier-fiscal-data",
|
|
|
|
"description": "Fiscal data",
|
|
|
|
"params": {
|
|
|
|
"supplier": "$ctrl.supplier"
|
2020-11-02 13:30:33 +00:00
|
|
|
},
|
|
|
|
"acl": ["administrative"]
|
2021-04-29 12:41:10 +00:00
|
|
|
},
|
|
|
|
{
|
2020-10-30 07:27:02 +00:00
|
|
|
"url" : "/log",
|
|
|
|
"state": "supplier.card.log",
|
|
|
|
"component": "vn-supplier-log",
|
|
|
|
"description": "Log"
|
2020-11-05 10:46:15 +00:00
|
|
|
},
|
2020-10-30 10:40:12 +00:00
|
|
|
{
|
|
|
|
"url": "/contact",
|
|
|
|
"state": "supplier.card.contact",
|
|
|
|
"component": "vn-supplier-contact",
|
|
|
|
"description": "Contacts",
|
2020-10-31 10:22:56 +00:00
|
|
|
"params": {
|
|
|
|
"supplier": "$ctrl.supplier"
|
|
|
|
}
|
2020-12-16 07:05:41 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"url": "/consumption?q",
|
|
|
|
"state": "supplier.card.consumption",
|
|
|
|
"component": "vn-supplier-consumption",
|
|
|
|
"description": "Consumption",
|
|
|
|
"params": {
|
|
|
|
"supplier": "$ctrl.supplier"
|
|
|
|
}
|
2020-12-18 09:10:09 +00:00
|
|
|
},
|
2020-12-14 15:09:17 +00:00
|
|
|
{
|
|
|
|
"url": "/billing-data",
|
|
|
|
"state": "supplier.card.billingData",
|
|
|
|
"component": "vn-supplier-billing-data",
|
|
|
|
"description": "Billing data",
|
|
|
|
"params": {
|
|
|
|
"supplier": "$ctrl.supplier"
|
2020-12-17 11:29:37 +00:00
|
|
|
},
|
|
|
|
"acl": ["administrative"]
|
2021-04-29 12:41:10 +00:00
|
|
|
},
|
|
|
|
{
|
2021-01-07 14:14:38 +00:00
|
|
|
"url": "/account",
|
|
|
|
"state": "supplier.card.account",
|
|
|
|
"component": "vn-supplier-account",
|
2021-03-29 05:33:20 +00:00
|
|
|
"description": "Accounts",
|
2021-01-07 14:14:38 +00:00
|
|
|
"params": {
|
|
|
|
"supplier": "$ctrl.supplier"
|
|
|
|
},
|
|
|
|
"acl": ["administrative"]
|
2021-04-29 12:41:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"url": "/address",
|
|
|
|
"state": "supplier.card.address",
|
|
|
|
"component": "ui-view",
|
|
|
|
"abstract": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"url": "/index?q",
|
|
|
|
"state": "supplier.card.address.index",
|
|
|
|
"component": "vn-supplier-address-index",
|
|
|
|
"description": "Addresses",
|
|
|
|
"params": {
|
|
|
|
"supplier": "$ctrl.supplier"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"url": "/create",
|
|
|
|
"state": "supplier.card.address.create",
|
|
|
|
"component": "vn-supplier-address-create",
|
|
|
|
"description": "New address",
|
|
|
|
"params": {
|
|
|
|
"supplier": "$ctrl.supplier"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"url": "/:addressId/edit",
|
|
|
|
"state": "supplier.card.address.edit",
|
|
|
|
"component": "vn-supplier-address-edit",
|
|
|
|
"description": "Edit address"
|
2020-10-15 06:15:04 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|