Ticket index fixes
This commit is contained in:
parent
260f548019
commit
74c00ef2f0
|
@ -22,17 +22,17 @@
|
|||
<vn-tr>
|
||||
<vn-th></vn-th>
|
||||
<vn-th field="id" number>Id</vn-th>
|
||||
<vn-th field="salesPersonFk">Salesperson</vn-th>
|
||||
<vn-th field="salesPerson">Salesperson</vn-th>
|
||||
<vn-th field="shipped">Date</vn-th>
|
||||
<vn-th>Hour</vn-th>
|
||||
<vn-th field="nickname">Alias</vn-th>
|
||||
<vn-th field="provinceFk">Province</vn-th>
|
||||
<vn-th field="stateFk" >State</vn-th>
|
||||
<vn-th field="agencyModeFk">Agency</vn-th>
|
||||
<vn-th field="warehouseFk">Warehouse</vn-th>
|
||||
<vn-th field="province">Province</vn-th>
|
||||
<vn-th field="state" >State</vn-th>
|
||||
<vn-th field="agencyMode">Agency</vn-th>
|
||||
<vn-th field="warehouse">Warehouse</vn-th>
|
||||
<vn-th field="refFk" number>Invoice</vn-th>
|
||||
<vn-th field="routeFk" number>Route</vn-th>
|
||||
<vn-th field="total" number>Total</vn-th>
|
||||
<vn-th number>Total</vn-th>
|
||||
<vn-th></vn-th>
|
||||
</vn-tr>
|
||||
</vn-thead>
|
||||
|
|
|
@ -62,7 +62,7 @@ module.exports = Self => {
|
|||
}, {
|
||||
arg: 'myTeam',
|
||||
type: 'Boolean',
|
||||
description: `Whether to show only tickets for the current logged user team (Ignored until implemented)`
|
||||
description: `Whether to show only tickets for the current logged user team (For now it shows only the current user tickets)`
|
||||
}
|
||||
],
|
||||
returns: {
|
||||
|
@ -78,7 +78,6 @@ module.exports = Self => {
|
|||
Self.filter = async (ctx, filter) => {
|
||||
let conn = Self.dataSource.connector;
|
||||
|
||||
// TODO: Using the current worker id until WorkerTeam model is created
|
||||
let worker = await Self.app.models.Worker.findOne({
|
||||
fields: ['id'],
|
||||
where: {userFk: ctx.req.accessToken.userId}
|
||||
|
@ -131,12 +130,8 @@ module.exports = Self => {
|
|||
t.nickname,
|
||||
t.refFk,
|
||||
t.routeFk,
|
||||
t.agencyModeFk,
|
||||
t.warehouseFk,
|
||||
t.clientFk,
|
||||
c.salesPersonFk,
|
||||
a.provinceFk,
|
||||
ts.stateFk,
|
||||
p.name AS province,
|
||||
w.name AS warehouse,
|
||||
am.name AS agencyMode,
|
||||
|
|
Loading…
Reference in New Issue