Changed column order
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
1b9b918812
commit
c0e1f2f0dc
|
@ -220,7 +220,7 @@ module.exports = Self => {
|
||||||
z.hour AS zoneLanding,
|
z.hour AS zoneLanding,
|
||||||
z.name AS zoneName,
|
z.name AS zoneName,
|
||||||
z.id AS zoneFk,
|
z.id AS zoneFk,
|
||||||
th.preparationHour,
|
TIME_FORMAT(t.shipped, '%H:%i') AS preparationHour,
|
||||||
TIME_FORMAT(z.hour, '%H:%i') AS theoreticalhour,
|
TIME_FORMAT(z.hour, '%H:%i') AS theoreticalhour,
|
||||||
TIME_FORMAT(zed.etc, '%H:%i') AS practicalHour
|
TIME_FORMAT(zed.etc, '%H:%i') AS practicalHour
|
||||||
FROM ticket t
|
FROM ticket t
|
||||||
|
@ -235,11 +235,7 @@ module.exports = Self => {
|
||||||
LEFT JOIN client c ON c.id = t.clientFk
|
LEFT JOIN client c ON c.id = t.clientFk
|
||||||
LEFT JOIN worker wk ON wk.id = c.salesPersonFk
|
LEFT JOIN worker wk ON wk.id = c.salesPersonFk
|
||||||
LEFT JOIN account.user u ON u.id = wk.userFk
|
LEFT JOIN account.user u ON u.id = wk.userFk
|
||||||
LEFT JOIN zoneEstimatedDelivery zed ON zed.zoneFk = t.zoneFk
|
LEFT JOIN zoneEstimatedDelivery zed ON zed.zoneFk = t.zoneFk`);
|
||||||
JOIN (
|
|
||||||
SELECT t.id, TIME_FORMAT(t.shipped, '%H:%i') AS preparationHour
|
|
||||||
FROM ticket AS t
|
|
||||||
) AS th ON th.id = t.id`);
|
|
||||||
|
|
||||||
if (args.orderFk) {
|
if (args.orderFk) {
|
||||||
stmt.merge({
|
stmt.merge({
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
<vn-th field="nickname">Client</vn-th>
|
<vn-th field="nickname">Client</vn-th>
|
||||||
<vn-th field="salesPersonFk" class="expendable" shrink>Salesperson</vn-th>
|
<vn-th field="salesPersonFk" class="expendable" shrink>Salesperson</vn-th>
|
||||||
<vn-th field="shipped" shrink-date>Date</vn-th>
|
<vn-th field="shipped" shrink-date>Date</vn-th>
|
||||||
<vn-th field="preparationHour">Prep.</vn-th>
|
<vn-th field="preparationHour" filter-enabled="false">Prep.</vn-th>
|
||||||
<vn-th field="theoreticalHour">Theoretical</vn-th>
|
<vn-th field="theoreticalHour">Theoretical</vn-th>
|
||||||
<vn-th field="practicalHour">Practical</vn-th>
|
<vn-th field="practicalHour">Practical</vn-th>
|
||||||
<vn-th field="provinceFk" class="expendable">Province</vn-th>
|
<vn-th field="provinceFk" class="expendable">Province</vn-th>
|
||||||
|
|
|
@ -72,8 +72,6 @@ export default class Controller extends Section {
|
||||||
return {'z.hour': value};
|
return {'z.hour': value};
|
||||||
case 'practicalHour':
|
case 'practicalHour':
|
||||||
return {'zed.etc': value};
|
return {'zed.etc': value};
|
||||||
case 'preparationHour':
|
|
||||||
return {'th.preparationHour': value};
|
|
||||||
case 'shipped':
|
case 'shipped':
|
||||||
return {'t.shipped': {
|
return {'t.shipped': {
|
||||||
between: this.dateRange(value)}
|
between: this.dateRange(value)}
|
||||||
|
|
Loading…
Reference in New Issue