Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix into 2145_e2e_linux_fix

This commit is contained in:
Bernat 2020-03-11 09:10:39 +01:00
commit 876d211412
15 changed files with 76 additions and 27 deletions

View File

@ -3,7 +3,8 @@
ng-model="$ctrl.search" ng-model="$ctrl.search"
class="dense search" class="dense search"
ng-blur="$ctrl.onFocusOut()" ng-blur="$ctrl.onFocusOut()"
placeholder="{{::'Search' | translate}}"> placeholder="{{::'Search' | translate}}"
autocomplete="off">
</vn-textfield> </vn-textfield>
</div> </div>
<div class="list" tabindex="-1"> <div class="list" tabindex="-1">

View File

@ -132,6 +132,17 @@ export default class Field extends FormInput {
return this.error || this.inputError || null; return this.error || this.inputError || null;
} }
get autocomplete() {
return this._autocomplete;
}
set autocomplete(value) {
this._autocomplete = value;
if (value === 'off')
this.input.setAttribute('autocomplete', 'off');
}
refreshHint() { refreshHint() {
let error = this.shownError; let error = this.shownError;
let hint = error || this.hint; let hint = error || this.hint;
@ -206,6 +217,7 @@ ngModule.vnComponent('vnField', {
controller: Field, controller: Field,
bindings: { bindings: {
type: '@?', type: '@?',
autocomplete: '@?',
placeholder: '@?', placeholder: '@?',
value: '=?', value: '=?',
info: '@?', info: '@?',

View File

@ -30,7 +30,7 @@
ng-click="$ctrl.onClear($event)"> ng-click="$ctrl.onClear($event)">
</vn-icon> </vn-icon>
<vn-icon <vn-icon
icon="attach_file" icon="icon-attach"
vn-tooltip="Select a file" vn-tooltip="Select a file"
ng-click="$ctrl.openFileSelector()"> ng-click="$ctrl.openFileSelector()">
</vn-icon> </vn-icon>

View File

@ -23,6 +23,21 @@
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
} }
.icon-zone:before {
content: "\e95d";
}
.icon-inventory:before {
content: "\e95e";
}
.icon-wiki:before {
content: "\e968";
}
.icon-attach:before {
content: "\e96c";
}
.icon-zone2:before {
content: "\e96d";
}
.icon-net:before { .icon-net:before {
content: "\e95b"; content: "\e95b";
} }

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 96 KiB

After

Width:  |  Height:  |  Size: 108 KiB

View File

@ -150,7 +150,6 @@ module.exports = Self => {
JOIN vn.currency cu ON cu.id = e.currencyFk` JOIN vn.currency cu ON cu.id = e.currencyFk`
); );
stmt.merge(conn.makeSuffix(filter)); stmt.merge(conn.makeSuffix(filter));
let itemsIndex = stmts.push(stmt) - 1; let itemsIndex = stmts.push(stmt) - 1;

View File

@ -11,7 +11,7 @@
}, },
"properties": { "properties": {
"id": { "id": {
"type": "Number", "type": "number",
"id": true, "id": true,
"description": "Identifier" "description": "Identifier"
}, },
@ -19,46 +19,49 @@
"type": "date" "type": "date"
}, },
"ref": { "ref": {
"type": "String" "type": "string"
}, },
"isBooked": { "isBooked": {
"type": "Boolean" "type": "boolean"
}, },
"isInventory": { "isInventory": {
"type": "Boolean" "type": "boolean"
}, },
"notes": { "notes": {
"type": "Number" "type": "number"
}, },
"isConfirmed": { "isConfirmed": {
"type": "Boolean" "type": "boolean"
}, },
"isVirtual": { "isVirtual": {
"type": "Boolean", "type": "boolean",
"mysql": { "mysql": {
"columnName": "isRaid" "columnName": "isRaid"
} }
}, },
"isRaid": {
"type": "boolean"
},
"commission": { "commission": {
"type": "Number" "type": "number"
}, },
"isOrdered": { "isOrdered": {
"type": "Boolean" "type": "boolean"
}, },
"created": { "created": {
"type": "date" "type": "date"
}, },
"observation": { "observation": {
"type": "String", "type": "string",
"mysql": { "mysql": {
"columnName": "evaNotes" "columnName": "evaNotes"
} }
}, },
"isBlocked": { "isBlocked": {
"type": "Boolean" "type": "boolean"
}, },
"loadPriority": { "loadPriority": {
"type": "Number" "type": "number"
} }
}, },
"relations": { "relations": {

View File

@ -35,6 +35,18 @@
value="{{$ctrl.entry.travel.warehouseOut.name}}"> value="{{$ctrl.entry.travel.warehouseOut.name}}">
</vn-label-value> </vn-label-value>
</div> </div>
<div class="icons">
<vn-icon
vn-tooltip="Is inventory entry"
icon="icon-inventory"
ng-class="{bright: $ctrl.entry.isInventory}">
</vn-icon>
<vn-icon
vn-tooltip="Is virtual entry"
icon="icon-net"
ng-class="{bright: $ctrl.entry.isRaid}">
</vn-icon>
</div>
<vn-quick-links <vn-quick-links
links="$ctrl.quicklinks"> links="$ctrl.quicklinks">
</vn-quick-links> </vn-quick-links>

View File

@ -2,3 +2,5 @@ Reference: Referencia
All travels with current agency: Todos los envios con la agencia actual All travels with current agency: Todos los envios con la agencia actual
All entries with current supplier: Todas las entradas con el proveedor actual All entries with current supplier: Todas las entradas con el proveedor actual
Show entry report: Ver informe del pedido Show entry report: Ver informe del pedido
Is inventory entry: Es una entrada de inventario
Is virtual entry: Es una redada

View File

@ -38,7 +38,7 @@
ng-show="entry.isInventory" ng-show="entry.isInventory"
class="bright" class="bright"
vn-tooltip="Inventory entry" vn-tooltip="Inventory entry"
icon="icon-anonymous"> icon="icon-inventory">
</vn-icon> </vn-icon>
<vn-icon <vn-icon
ng-show="entry.isRaid" ng-show="entry.isRaid"

View File

@ -6,7 +6,7 @@ module.exports = Self => {
accessType: 'WRITE', accessType: 'WRITE',
accepts: [{ accepts: [{
arg: 'clientId', arg: 'clientId',
type: 'Number', type: 'number',
description: `The client id filter`, description: `The client id filter`,
required: true required: true
}, },
@ -22,29 +22,29 @@ module.exports = Self => {
}, },
{ {
arg: 'warehouseId', arg: 'warehouseId',
type: 'Number', type: 'number',
description: `The warehouse id filter`, description: `The warehouse id filter`,
required: true required: true
}, },
{ {
arg: 'companyId', arg: 'companyId',
type: 'Number', type: 'number',
description: `The company id filter` description: `The company id filter`
}, },
{ {
arg: 'addressId', arg: 'addressId',
type: 'Number', type: 'number',
description: `The address id filter`, description: `The address id filter`,
required: true required: true
}, },
{ {
arg: 'agencyModeId', arg: 'agencyModeId',
type: 'Number', type: 'any',
description: `The agencyMode id filter` description: `The agencyMode id filter`
}, },
{ {
arg: 'routeId', arg: 'routeId',
type: 'Number', type: 'number',
description: `The route id filter` description: `The route id filter`
}], }],
returns: { returns: {

View File

@ -129,7 +129,7 @@
<div fixed-bottom-right> <div fixed-bottom-right>
<vn-vertical style="align-items: center;"> <vn-vertical style="align-items: center;">
<vn-button class="round message xs vn-mb-sm" <vn-button class="round sm vn-mb-sm"
icon="icon-recovery" icon="icon-recovery"
ng-show="$ctrl.totalChecked > 0" ng-show="$ctrl.totalChecked > 0"
ng-click="$ctrl.openBalanceDialog()" ng-click="$ctrl.openBalanceDialog()"

View File

@ -1,12 +1,12 @@
{ {
"module": "zone", "module": "zone",
"name": "Zones", "name": "Zones",
"icon" : "location_on", "icon" : "icon-zone",
"validations" : true, "validations" : true,
"dependencies": ["worker"], "dependencies": ["worker"],
"menus": { "menus": {
"main": [ "main": [
{"state": "zone.index", "icon": "location_on"}, {"state": "zone.index", "icon": "icon-zone"},
{"state": "zone.deliveryDays", "icon": "today"} {"state": "zone.deliveryDays", "icon": "today"}
], ],
"card": [ "card": [