Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix into 3750-claim_photo
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
commit
11a7f48bd1
|
@ -8,5 +8,4 @@ module.exports = Self => {
|
|||
require('../methods/claim/updateClaimAction')(Self);
|
||||
require('../methods/claim/isEditable')(Self);
|
||||
require('../methods/claim/downloadFile')(Self);
|
||||
require('../methods/claim/deleteOldFiles')(Self);
|
||||
};
|
||||
|
|
|
@ -304,7 +304,7 @@ module.exports = Self => {
|
|||
{'tp.hasTicketRequest': true},
|
||||
{'tp.hasComponentLack': true},
|
||||
{'tp.isTaxDataChecked': false},
|
||||
{'tp.isAvailable': false}
|
||||
{'tp.itemShortage': {neq: null}}
|
||||
]};
|
||||
} else if (hasProblems === false) {
|
||||
whereProblems = {and: [
|
||||
|
@ -313,7 +313,7 @@ module.exports = Self => {
|
|||
{'tp.hasTicketRequest': false},
|
||||
{'tp.hasComponentLack': false},
|
||||
{'tp.isTaxDataChecked': true},
|
||||
{'tp.isAvailable': true}
|
||||
{'tp.itemShortage': null}
|
||||
]};
|
||||
}
|
||||
|
||||
|
|
|
@ -98,8 +98,8 @@
|
|||
icon="icon-buyrequest">
|
||||
</vn-icon>
|
||||
<vn-icon
|
||||
ng-show="::ticket.isAvailable === 0"
|
||||
translate-attr="{title: 'Not available'}"
|
||||
ng-show="::ticket.itemShortage"
|
||||
translate-attr="{title: 'Not visible'}"
|
||||
class="bright"
|
||||
icon="icon-unavailable">
|
||||
</vn-icon>
|
||||
|
|
|
@ -59,6 +59,12 @@ module.exports = Self => {
|
|||
fields: ['id', 'name']
|
||||
}
|
||||
},
|
||||
{
|
||||
relation: 'agencyMode',
|
||||
scope: {
|
||||
fields: ['id', 'name']
|
||||
}
|
||||
},
|
||||
{
|
||||
relation: 'address',
|
||||
scope: {
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Unlink zone: Unlink zone {{zoneName}} from agency {{agencyName}}
|
|
@ -1,4 +1,5 @@
|
|||
Routes: Rutas
|
||||
Search routes by id: Buscar rutas por identificador
|
||||
New route: Nueva ruta
|
||||
route: ruta
|
||||
route: ruta
|
||||
Unlink zone: Desvincular zona {{zoneName}} de agencia {{agencyName}}
|
|
@ -33,7 +33,7 @@
|
|||
</vn-th>
|
||||
<vn-th expand>PC</vn-th>
|
||||
<vn-th>Address</vn-th>
|
||||
<vn-th shrink>Warehouse</vn-th>
|
||||
<vn-th shrink>Zone</vn-th>
|
||||
</vn-tr>
|
||||
</vn-thead>
|
||||
<vn-tbody>
|
||||
|
@ -62,7 +62,7 @@
|
|||
<vn-icon-button
|
||||
icon="link_off"
|
||||
class="pointer"
|
||||
translate-attr="{title: 'Unlink zone: {{::ticket.zone.name}} from agency: {{::ticket.agencyMode.name}}'}"
|
||||
title="{{'Unlink zone' | translate: {zoneName: ticket.zone.name, agencyName: ticket.agencyMode.name} }}"
|
||||
ng-click="unlinkZoneConfirmation.show(ticket)">
|
||||
</vn-icon-button>
|
||||
</vn-td>
|
||||
|
@ -76,4 +76,9 @@
|
|||
question="{{$ctrl.confirmationMessage}}"
|
||||
message="Unlink selected zone?">
|
||||
</vn-confirm>
|
||||
<vn-ticket-descriptor-popover vn-id="ticket-descriptor">
|
||||
</vn-ticket-descriptor-popover>
|
||||
<vn-client-descriptor-popover vn-id="client-descriptor">
|
||||
</vn-client-descriptor-popover>
|
||||
</tpl-body>
|
||||
|
||||
|
|
|
@ -324,7 +324,7 @@ module.exports = Self => {
|
|||
case true:
|
||||
condition = `or`;
|
||||
hasProblem = true;
|
||||
range = 0;
|
||||
range = {neq: null};
|
||||
hasWhere = true;
|
||||
break;
|
||||
|
||||
|
@ -340,7 +340,7 @@ module.exports = Self => {
|
|||
{'tp.isFreezed': hasProblem},
|
||||
{'tp.risk': hasProblem},
|
||||
{'tp.hasTicketRequest': hasProblem},
|
||||
{'tp.isAvailable': range}
|
||||
{'tp.itemShortage': range}
|
||||
]};
|
||||
|
||||
if (hasWhere)
|
||||
|
|
|
@ -94,7 +94,7 @@ module.exports = Self => {
|
|||
sale.visible = itemStock.visible;
|
||||
sale.claim = claimedSales.get(sale.id);
|
||||
if (problems) {
|
||||
sale.isAvailable = problems.isAvailable;
|
||||
sale.itemShortage = problems.itemShortage;
|
||||
sale.hasTicketRequest = problems.hasTicketRequest;
|
||||
sale.hasComponentLack = problems.hasComponentLack;
|
||||
}
|
||||
|
|
|
@ -39,7 +39,7 @@ describe('ticket filter()', () => {
|
|||
const filter = {};
|
||||
const result = await models.Ticket.filter(ctx, filter, options);
|
||||
|
||||
expect(result.length).toEqual(4);
|
||||
expect(result.length).toEqual(6);
|
||||
|
||||
await tx.rollback();
|
||||
} catch (e) {
|
||||
|
|
|
@ -52,8 +52,8 @@
|
|||
icon="icon-buyrequest">
|
||||
</vn-icon>
|
||||
<vn-icon
|
||||
ng-show="::ticket.isAvailable === 0"
|
||||
translate-attr="{title: 'Not available'}"
|
||||
ng-show="::ticket.itemShortage"
|
||||
translate-attr="{title: 'Not visible'}"
|
||||
class="bright"
|
||||
icon="icon-unavailable">
|
||||
</vn-icon>
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
Weekly tickets: Tickets programados
|
||||
Go to lines: Ir a lineas
|
||||
Not available: No disponible
|
||||
Not visible: No visible
|
||||
Payment on account...: Pago a cuenta...
|
||||
Set as delivered and open delivery note(s): Marcar como servido/s y abrir albarán/es
|
||||
Closure: Cierre
|
||||
|
|
|
@ -95,8 +95,8 @@
|
|||
translate-attr="{title: 'Reserved'}">
|
||||
</vn-icon>
|
||||
<vn-icon
|
||||
ng-show="::sale.isAvailable === 0"
|
||||
translate-attr="{title: 'Not available'}"
|
||||
ng-show="::sale.itemShortage"
|
||||
translate-attr="{title: 'Not visible'}"
|
||||
class="bright"
|
||||
icon="icon-unavailable">
|
||||
</vn-icon>
|
||||
|
|
|
@ -157,8 +157,8 @@
|
|||
translate-attr="{title: 'Reserved'}">
|
||||
</vn-icon>
|
||||
<vn-icon
|
||||
ng-show="::sale.isAvailable === 0"
|
||||
translate-attr="{title: 'Not available'}"
|
||||
ng-show="::sale.itemShortage"
|
||||
translate-attr="{title: 'Not visible'}"
|
||||
class="bright"
|
||||
icon="icon-unavailable">
|
||||
</vn-icon>
|
||||
|
|
Loading…
Reference in New Issue