boton.js
4.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
exports.seed = function (knex) {
return knex('boton').truncate()
.then(function () {
// TODO: Categorizar botones por id de aplicación.
return knex('boton').insert([
{
texto: 'Nota Pedido',
clase: 'botonera-principal-nota-pedido',
accion: '/venta-nota-pedido/crear',
app: 'distribuidor'
},
{
texto: 'Autorizar nota de pedido',
clase: 'botonera-principal-autorizar-nota',
accion: '/autorizar-nota-pedido',
app: ''
},
{
texto: 'Remito',
clase: 'botonera-principal-remito',
accion: '/venta-remito/crear',
app: ''
},
{
texto: 'Control de stock de vehículos',
clase: 'botonera-principal-estado-cisterna',
accion: '/estado-cisterna',
app: ''
},
{
texto: 'Logistica pedidos',
clase: 'botonera-principal-logistica',
accion: '/logistica-pedido-ruta',
app: ''
},
{
texto: 'Crear Hoja de Ruta',
clase: 'botonera-principal-hoja-ruta',
accion: '/venta-hoja-ruta/crear',
app: ''
},
{
texto: 'Activar Hoja de Ruta',
clase: 'botonera-principal-activar-hoja-ruta',
accion: '/hoja-ruta/activar',
app: ''
},
{
texto: 'Cobranzas',
clase: 'botonera-principal-cobranzas',
accion: '/cobranza/crear',
app: 'cobranza'
},
{
texto: 'Agendar Visita',
clase: 'botonera-principal-agendar-visita',
accion: '/visita/agendar',
app: ''
},
{
texto: 'Informes',
clase: 'botonera-principal-informes',
accion: '/informes',
app: ''
},
{
texto: 'Seguimiento Nota Pedido',
clase: 'botonera-principal-seguimiento',
accion: '/admin-seguimiento/nota-pedido',
app: ''
},
{
texto: 'Seguimiento Hoja de Ruta',
clase: 'botonera-principal-seguimiento-hoja-ruta',
accion: '/admin-seguimiento/hoja-ruta',
app: ''
},
{
texto: 'Seguimiento Cobranzas',
clase: 'botonera-principal-seguimiento-cobranzas',
accion: '/admin-seguimiento/cobranza',
app: ''
},
{
texto: 'Vendedores / Cobradores',
clase: 'botonera-principal-vendedor-cobrador',
accion: '/vendedor-cobrador',
app: ''
},
{
texto: 'Hoja de Ruta',
clase: 'botonera-principal-hoja-ruta',
accion: '/venta-hoja-ruta/lista',
app: 'transportista'
},
{
accion: '/chofer',
clase: 'botonera-principal-chofer',
texto: 'Choferes',
app: '',
},
{
accion: '/precio-condicion',
clase: 'botonera-principal-precio-condicion',
texto: 'Precio y Condiciones',
app: '',
},
{
accion: '/vehiculo',
clase: 'botonera-principal-vehiculo',
texto: 'Vehiculos',
app: '',
},
{
accion: '/cliente',
clase: 'botonera-principal-cliente',
texto: 'Cliente',
app: '',
},
{
accion: '/parametros',
clase: 'botonera-principal-parametros',
texto: 'Parametros',
app: '',
},
{
texto: 'Factura',
clase: 'botonera-principal-factura',
accion: '/venta-factura/crear',
app: 'facturador'
},
]);
});
};