diff --git a/front/salix/components/summary/style.scss b/front/salix/components/summary/style.scss index 85da5aa03..99854fa9d 100644 --- a/front/salix/components/summary/style.scss +++ b/front/salix/components/summary/style.scss @@ -73,6 +73,21 @@ ui-view > .vn-summary { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; + position: relative; + span { + display: block; + } + a { + color: $color-font; + } + } + h4 span:after { + font-family: 'Material Icons'; + content: 'open_in_new'; + position: absolute; + right: 5px; + text-transform: none; + color: $color-spacer } & > * { margin: $spacing-sm; diff --git a/front/salix/locale/es.yml b/front/salix/locale/es.yml index f2a23a7a7..98384df83 100644 --- a/front/salix/locale/es.yml +++ b/front/salix/locale/es.yml @@ -52,6 +52,7 @@ Suppliers: Proveedores Summary: Vista previa Basic data: Datos básicos List: Listado +Go to: Ir a # Misc diff --git a/modules/account/front/summary/index.html b/modules/account/front/summary/index.html index 9c96a9703..41632aef6 100644 --- a/modules/account/front/summary/index.html +++ b/modules/account/front/summary/index.html @@ -1,6 +1,7 @@
- @@ -10,7 +11,18 @@
-

Basic data

+

+ + Basic Data + +

+

+ Basic Data +

diff --git a/modules/account/front/summary/index.js b/modules/account/front/summary/index.js index 21be84660..8ed025b61 100644 --- a/modules/account/front/summary/index.js +++ b/modules/account/front/summary/index.js @@ -18,6 +18,9 @@ class Controller extends Summary { this.$http.get(`Accounts/${value.id}`, {filter}) .then(res => this.$.summary = res.data); } + get isHr() { + return this.aclService.hasAny(['hr']); + } get user() { return this._user; diff --git a/modules/claim/front/summary/index.html b/modules/claim/front/summary/index.html index f4e9c1471..e9ec1e765 100644 --- a/modules/claim/front/summary/index.html +++ b/modules/claim/front/summary/index.html @@ -4,7 +4,8 @@
- @@ -54,7 +55,18 @@ -

Detail

+

+ + Detail + +

+

+ Detail +

@@ -105,7 +117,18 @@ -

Development

+

+ + Development + +

+

+ Development +

@@ -136,7 +159,18 @@
-

Action

+

+ + Action + +

+

+ Action +

diff --git a/modules/claim/front/summary/index.js b/modules/claim/front/summary/index.js index 89848ecc6..bda830d6a 100644 --- a/modules/claim/front/summary/index.js +++ b/modules/claim/front/summary/index.js @@ -13,6 +13,14 @@ class Controller extends Summary { this.getSummary(); } + get isSalesPerson() { + return this.aclService.hasAny(['salesPerson']); + } + + get isClaimManager() { + return this.aclService.hasAny(['claimManager']); + } + get claim() { return this._claim; } diff --git a/modules/client/front/summary/index.html b/modules/client/front/summary/index.html index 50bdd226c..3e8f4f705 100644 --- a/modules/client/front/summary/index.html +++ b/modules/client/front/summary/index.html @@ -12,7 +12,18 @@ -

Basic data

+

+ + Basic data + +

+

+ Basic data +

@@ -43,7 +54,18 @@
-

Fiscal address

+

+ + Fiscal address + +

+

+ Fiscal address +

@@ -67,7 +89,18 @@
-

Fiscal data

+

+ + Fiscal data + +

+

+ Fiscal data +

-

Billing data

+

+ + Billing data + +

+

+ Billing data +

@@ -136,7 +180,18 @@
-

Default address

+

+ + Address + +

+

+ Address +

@@ -148,7 +203,17 @@
-

Web access

+

+ + Web access + +

+

Web access +

diff --git a/modules/client/front/summary/index.js b/modules/client/front/summary/index.js index cf5991247..8ef724061 100644 --- a/modules/client/front/summary/index.js +++ b/modules/client/front/summary/index.js @@ -18,6 +18,9 @@ class Controller extends Summary { } }); } + get isEmployee() { + return this.aclService.hasAny(['employee']); + } sumRisk() { let total = 0; diff --git a/modules/client/front/summary/locale/es.yml b/modules/client/front/summary/locale/es.yml index 0a101f6ef..6d1c3b4f6 100644 --- a/modules/client/front/summary/locale/es.yml +++ b/modules/client/front/summary/locale/es.yml @@ -7,6 +7,7 @@ Secured credit: Crédito asegurado Average invoiced: Consumo medio Sales person: Comercial Recovery: Recobro +Basic data: Datos básicos Balance due: Saldo vencido Rate: Tarifa Business data: Datos comerciales diff --git a/modules/item/front/summary/index.html b/modules/item/front/summary/index.html index 5fb556bd4..59ceaebbe 100644 --- a/modules/item/front/summary/index.html +++ b/modules/item/front/summary/index.html @@ -25,7 +25,18 @@
-

Basic data

+

+ + Basic data + +

+

+ Basic data +

@@ -53,7 +64,18 @@
-

Other data

+

+ + Other data + +

+

+ Other data +

@@ -77,7 +99,18 @@
-

Tags

+

+ + Tags + +

+

+ Tags +

-

Tax

+

+ + Tax + +

+

+ Tax +

-

Niche

+

+ + Niche + +

+

+ Niche +

-

Botanical

+

+ + Botanical + +

+

+ Botanical +

@@ -111,7 +177,18 @@
-

Barcode

+

+ + Barcode + +

+

+ Barcode +

{{barcode.code}}

diff --git a/modules/item/front/summary/index.js b/modules/item/front/summary/index.js index dc4e638b8..52753ff65 100644 --- a/modules/item/front/summary/index.js +++ b/modules/item/front/summary/index.js @@ -13,6 +13,22 @@ class Controller extends Summary { if (this.item && this.item.id) this.getSummary(); } + + get isBuyer() { + return this.aclService.hasAny(['buyer']); + } + + get isReplenisher() { + return this.aclService.hasAny(['replenisher']); + } + + get isAdministrative() { + return this.aclService.hasAny(['administrative']); + } + + get isEmployee() { + return this.aclService.hasAny(['employee']); + } } ngModule.vnComponent('vnItemSummary', { diff --git a/modules/route/front/summary/index.html b/modules/route/front/summary/index.html index 6dd01c8b0..b284851a0 100644 --- a/modules/route/front/summary/index.html +++ b/modules/route/front/summary/index.html @@ -61,7 +61,18 @@
-

Ticket

+

+ + Ticket + +

+

+ Ticket +

diff --git a/modules/route/front/summary/index.js b/modules/route/front/summary/index.js index 762cd8a41..543c54afc 100644 --- a/modules/route/front/summary/index.js +++ b/modules/route/front/summary/index.js @@ -16,6 +16,10 @@ class Controller extends Summary { }); } + get isDelivery() { + return this.aclService.hasAny(['delivery']); + } + get route() { return this._route; } diff --git a/modules/supplier/front/summary/index.html b/modules/supplier/front/summary/index.html index 14168f253..b089f25e9 100644 --- a/modules/supplier/front/summary/index.html +++ b/modules/supplier/front/summary/index.html @@ -10,7 +10,18 @@ -

Basic data

+

+ + Basic data + +

+

+ Basic data +

-

Billing data

+

+ + Billing data + +

+

+ Billing data +

@@ -63,7 +85,18 @@
-

Fiscal data

+

+ + Fiscal data + +

+

+ Fiscal data +

@@ -82,7 +115,18 @@
-

Fiscal address

+

+ + Fiscal address + +

+

+ Fiscal address +

diff --git a/modules/supplier/front/summary/index.js b/modules/supplier/front/summary/index.js index 099257848..a828379bc 100644 --- a/modules/supplier/front/summary/index.js +++ b/modules/supplier/front/summary/index.js @@ -10,6 +10,10 @@ class Controller extends Summary { this.getSummary(); } + get isAdministrative() { + return this.aclService.hasAny(['administrative']); + } + getSummary() { return this.$http.get(`Suppliers/${this.supplier.id}/getSummary`).then(response => { this.summary = response.data; diff --git a/modules/ticket/front/summary/index.html b/modules/ticket/front/summary/index.html index 803734c74..dcd4470e4 100644 --- a/modules/ticket/front/summary/index.html +++ b/modules/ticket/front/summary/index.html @@ -1,6 +1,7 @@
- @@ -103,7 +104,13 @@

Total {{$ctrl.summary.total | currency: 'EUR':2}}

-

Sale

+

+ + Sale + +

@@ -158,7 +165,13 @@ -

Packages

+

+ + Packages + +

@@ -177,7 +190,13 @@
-

Service

+

+ + Service + +

@@ -202,7 +221,13 @@ -

Purchase request

+

+ + Purchase request + +

diff --git a/modules/travel/front/summary/index.html b/modules/travel/front/summary/index.html index de6f6e979..90a2ea27f 100644 --- a/modules/travel/front/summary/index.html +++ b/modules/travel/front/summary/index.html @@ -1,6 +1,7 @@
- @@ -132,7 +133,18 @@ -

Thermographs

+

+ + Thermograph + +

+

+ Thermograph +

diff --git a/modules/travel/front/summary/index.js b/modules/travel/front/summary/index.js index 876d1ec6c..5144a0bb5 100644 --- a/modules/travel/front/summary/index.js +++ b/modules/travel/front/summary/index.js @@ -56,6 +56,10 @@ class Controller extends Summary { return total; } + + get isBuyer() { + return this.aclService.hasAny(['buyer']); + } } ngModule.vnComponent('vnTravelSummary', { diff --git a/modules/worker/front/summary/index.html b/modules/worker/front/summary/index.html index e816f6cf2..0a99959e4 100644 --- a/modules/worker/front/summary/index.html +++ b/modules/worker/front/summary/index.html @@ -10,7 +10,17 @@
-

Basic data

+

+ + Basic data + +

+

+ Basic data +

diff --git a/modules/worker/front/summary/index.js b/modules/worker/front/summary/index.js index 178df81a9..6a4d87007 100644 --- a/modules/worker/front/summary/index.js +++ b/modules/worker/front/summary/index.js @@ -52,6 +52,10 @@ class Controller extends Summary { this.$.worker = res.data; }); } + + get isHr() { + return this.aclService.hasAny(['hr']); + } } ngModule.vnComponent('vnWorkerSummary', { diff --git a/modules/zone/front/summary/index.html b/modules/zone/front/summary/index.html index 9247087e6..2fe94388f 100644 --- a/modules/zone/front/summary/index.html +++ b/modules/zone/front/summary/index.html @@ -1,6 +1,7 @@
- @@ -36,7 +37,11 @@ -

Warehouses

+

+ + Warehouse + +