174 lines
5.4 KiB
JSON
174 lines
5.4 KiB
JSON
{
|
|
"module": "supplier",
|
|
"name": "Suppliers",
|
|
"icon" : "icon-supplier",
|
|
"dependencies": ["client", "item"],
|
|
"validations" : true,
|
|
"menus": {
|
|
"main": [
|
|
{"state": "supplier.index", "icon": "icon-supplier"}
|
|
],
|
|
"card": [
|
|
{"state": "supplier.card.basicData", "icon": "settings"},
|
|
{"state": "supplier.card.fiscalData", "icon": "account_balance"},
|
|
{"state": "supplier.card.billingData", "icon": "icon-payment"},
|
|
{"state": "supplier.card.address.index", "icon": "icon-delivery"},
|
|
{"state": "supplier.card.account", "icon": "icon-account"},
|
|
{"state": "supplier.card.contact", "icon": "contact_phone"},
|
|
{"state": "supplier.card.agencyTerm.index", "icon": "contact_support"},
|
|
{"state": "supplier.card.log", "icon": "history"},
|
|
{"state": "supplier.card.consumption", "icon": "show_chart"}
|
|
]
|
|
},
|
|
"keybindings": [
|
|
{"key": "p", "state": "supplier.index"}
|
|
],
|
|
"routes": [
|
|
{
|
|
"url": "/supplier",
|
|
"state": "supplier",
|
|
"abstract": true,
|
|
"component": "vn-supplier",
|
|
"description": "Suppliers"
|
|
},
|
|
{
|
|
"url": "/index?q",
|
|
"state": "supplier.index",
|
|
"component": "vn-supplier-index",
|
|
"description": "Suppliers"
|
|
},
|
|
{
|
|
"url": "/:id",
|
|
"state": "supplier.card",
|
|
"abstract": true,
|
|
"component": "vn-supplier-card"
|
|
},
|
|
{
|
|
"url": "/summary",
|
|
"state": "supplier.card.summary",
|
|
"component": "vn-supplier-summary",
|
|
"description": "Summary",
|
|
"params": {
|
|
"supplier": "$ctrl.supplier"
|
|
}
|
|
},
|
|
{
|
|
"url": "/basic-data",
|
|
"state": "supplier.card.basicData",
|
|
"component": "vn-supplier-basic-data",
|
|
"description": "Basic data",
|
|
"acl": ["administrative"],
|
|
"params": {
|
|
"supplier": "$ctrl.supplier"
|
|
}
|
|
},
|
|
{
|
|
"url": "/fiscal-data",
|
|
"state": "supplier.card.fiscalData",
|
|
"component": "vn-supplier-fiscal-data",
|
|
"description": "Fiscal data",
|
|
"params": {
|
|
"supplier": "$ctrl.supplier"
|
|
},
|
|
"acl": ["administrative"]
|
|
},
|
|
{
|
|
"url" : "/log",
|
|
"state": "supplier.card.log",
|
|
"component": "vn-supplier-log",
|
|
"description": "Log"
|
|
},
|
|
{
|
|
"url": "/contact",
|
|
"state": "supplier.card.contact",
|
|
"component": "vn-supplier-contact",
|
|
"description": "Contacts",
|
|
"params": {
|
|
"supplier": "$ctrl.supplier"
|
|
}
|
|
},
|
|
{
|
|
"url": "/agency-term",
|
|
"state": "supplier.card.agencyTerm",
|
|
"component": "ui-view",
|
|
"abstract": true
|
|
},
|
|
{
|
|
"url": "/index",
|
|
"state": "supplier.card.agencyTerm.index",
|
|
"component": "vn-supplier-agency-term-index",
|
|
"description": "Autonomous",
|
|
"params": {
|
|
"supplier": "$ctrl.supplier"
|
|
}
|
|
},
|
|
{
|
|
"url": "/create",
|
|
"state": "supplier.card.agencyTerm.create",
|
|
"component": "vn-supplier-agency-term-create",
|
|
"description": "New autonomous",
|
|
"params": {
|
|
"supplier": "$ctrl.supplier"
|
|
}
|
|
},
|
|
{
|
|
"url": "/consumption?q",
|
|
"state": "supplier.card.consumption",
|
|
"component": "vn-supplier-consumption",
|
|
"description": "Consumption",
|
|
"params": {
|
|
"supplier": "$ctrl.supplier"
|
|
}
|
|
},
|
|
{
|
|
"url": "/billing-data",
|
|
"state": "supplier.card.billingData",
|
|
"component": "vn-supplier-billing-data",
|
|
"description": "Billing data",
|
|
"params": {
|
|
"supplier": "$ctrl.supplier"
|
|
},
|
|
"acl": ["administrative"]
|
|
},
|
|
{
|
|
"url": "/account",
|
|
"state": "supplier.card.account",
|
|
"component": "vn-supplier-account",
|
|
"description": "Accounts",
|
|
"params": {
|
|
"supplier": "$ctrl.supplier"
|
|
},
|
|
"acl": ["administrative"]
|
|
},
|
|
{
|
|
"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"
|
|
}
|
|
]
|
|
} |