Compare commits

...

31 Commits

Author SHA1 Message Date
David Domenech 30d8e05313 Merge branch 'dev' into 6125-roleCreditLimit
gitea/salix/pipeline/head This commit looks good Details
2023-10-17 10:55:21 +00:00
Sergio De la torre 85baac5c8e Merge pull request 'refs #5134 feat: models' (!1783) from 5134-ModelsSalix into dev
gitea/salix/pipeline/head This commit looks good Details
Reviewed-on: #1783
Reviewed-by: Alex Moreno <alexm@verdnatura.es>
2023-10-13 15:09:33 +00:00
Sergio De la torre f6bf36d46a Merge branch 'dev' into 5134-ModelsSalix
gitea/salix/pipeline/head This commit looks good Details
2023-10-13 14:02:25 +00:00
Jorge Penadés 16f22c4d39 Merge pull request 'refs #6119 microsip link added' (!1729) from 6119-addMicrosipLink into dev
gitea/salix/pipeline/head There was a failure building this commit Details
Reviewed-on: #1729
Reviewed-by: Javi Gallego <jgallego@verdnatura.es>
2023-10-13 11:15:47 +00:00
Javi Gallego 0081c55b9e Merge branch 'dev' into 6119-addMicrosipLink
gitea/salix/pipeline/head This commit looks good Details
2023-10-13 10:56:33 +00:00
Sergio De la torre 1a7f7b6a00 refs #5134 feat:models
gitea/salix/pipeline/head This commit looks good Details
2023-10-13 08:02:00 +02:00
Sergio De la torre 35c0ec0d04 Merge branch 'dev' into 5134-ModelsSalix
gitea/salix/pipeline/head This commit looks good Details
2023-10-11 15:14:13 +00:00
Sergio De la torre 0028dd150a refs #5134 feat:models
gitea/salix/pipeline/head This commit looks good Details
2023-10-11 17:12:55 +02:00
Jorge Penadés abd087a3e3 Merge branch '6119-addMicrosipLink' of https://gitea.verdnatura.es/verdnatura/salix into 6119-addMicrosipLink
gitea/salix/pipeline/head This commit looks good Details
2023-10-05 08:20:58 +02:00
Jorge Penadés 0d39471970 Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix into 6119-addMicrosipLink 2023-10-05 08:20:47 +02:00
Jorge Penadés 7431e884fc Merge branch 'dev' into 6119-addMicrosipLink
gitea/salix/pipeline/head There was a failure building this commit Details
2023-10-04 13:54:47 +00:00
Jorge Penadés 31220b8005 Merge branch '6119-addMicrosipLink' of https://gitea.verdnatura.es/verdnatura/salix into 6119-addMicrosipLink
gitea/salix/pipeline/head This commit looks good Details
2023-10-02 09:28:55 +02:00
Jorge Penadés 0489bdfdb8 Merge branch 'dev' into 6119-addMicrosipLink
gitea/salix/pipeline/head This commit looks good Details
2023-10-02 07:28:55 +00:00
Jorge Penadés 2eb9a97ece Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix into 6119-addMicrosipLink 2023-10-02 09:28:41 +02:00
Sergio De la torre 3ba349b74a refs #5890 feat: itemShelvingSaleAsignado more calls
gitea/salix/pipeline/head This commit looks good Details
2023-10-02 09:14:30 +02:00
Jorge Penadés 1cb2bec650 Merge branch 'dev' into 6119-addMicrosipLink
gitea/salix/pipeline/head Build queued... Details
2023-10-02 06:37:58 +00:00
Jorge Penadés d112fd0e5b Merge branch 'dev' into 6119-addMicrosipLink
gitea/salix/pipeline/head This commit looks good Details
2023-09-29 12:35:22 +00:00
Jorge Penadés 9536fdba58 ref #6119 refactor
gitea/salix/pipeline/head This commit looks good Details
2023-09-29 10:10:58 +02:00
Jorge Penadés f1dc809147 Merge branch 'dev' into 6119-addMicrosipLink
gitea/salix/pipeline/head This commit looks good Details
2023-09-29 06:22:51 +00:00
Jorge Penadés 2ae05ef929 Merge branch '6119-addMicrosipLink' of https://gitea.verdnatura.es/verdnatura/salix into 6119-addMicrosipLink
gitea/salix/pipeline/head This commit looks good Details
2023-09-19 14:58:57 +02:00
Jorge Penadés 168eee764f Merge branch 'dev' into 6119-addMicrosipLink
gitea/salix/pipeline/head This commit looks good Details
2023-09-18 06:10:43 +00:00
Jorge Penadés 32a0aedf11 Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix into 6119-addMicrosipLink 2023-09-18 08:07:27 +02:00
Jorge Penadés 48a6bf2969 Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix into 6119-addMicrosipLink 2023-09-08 08:05:17 +02:00
Jorge Penadés 4f0d61f2e7 Merge branch 'dev' into 6119-addMicrosipLink
gitea/salix/pipeline/head This commit looks good Details
2023-09-07 08:12:59 +00:00
Jorge Penadés 427425a750 ref #6119 simplifiy component
gitea/salix/pipeline/head This commit looks good Details
2023-09-07 09:50:13 +02:00
Jorge Penadés 86ecaedb0e ref #6119 scheme url removed
gitea/salix/pipeline/head This commit looks good Details
2023-09-06 14:33:31 +02:00
Jorge Penadés f46d6355dd Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix into 6119-addMicrosipLink 2023-09-04 08:06:47 +02:00
Jorge Penadés 52d698b0eb ref#6119 link fixed
gitea/salix/pipeline/head There was a failure building this commit Details
2023-09-01 12:38:35 +02:00
Jorge Penadés 9eff7c509f Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix into 6119-addMicrosipLink
gitea/salix/pipeline/head This commit looks good Details
2023-09-01 12:06:49 +02:00
Jorge Penadés c2a54b8c65 ref #6119 vnLinkPhone created
gitea/salix/pipeline/head This commit looks good Details
2023-08-31 13:02:56 +02:00
Jorge Penadés 05f0f72c73 refs #6119 microsip link added
gitea/salix/pipeline/head This commit looks good Details
2023-08-30 14:14:48 +02:00
18 changed files with 112 additions and 24 deletions

View File

@ -0,0 +1,3 @@
INSERT INTO `salix`.`ACL` ( model, property, accessType, permission, principalType, principalId)
VALUES('TicketCollection', '*', 'WRITE', 'ALLOW', 'ROLE', 'production');

View File

@ -39,6 +39,7 @@ import './range';
import './input-time'; import './input-time';
import './input-file'; import './input-file';
import './label'; import './label';
import './link-phone';
import './list'; import './list';
import './popover'; import './popover';
import './popup'; import './popup';

View File

@ -0,0 +1,14 @@
<span ng-if="$ctrl.phoneNumber">
{{$ctrl.phoneNumber}}
<a href="tel:{{$ctrl.phoneNumber}}">
<vn-icon
flat
round
icon="phone"
title="MicroSIP"
ng-click="$event.stopPropagation();"
>
</vn-icon>
</a>
</span>
<span ng-if="!$ctrl.phoneNumber">-</span>

View File

@ -0,0 +1,15 @@
import ngModule from '../../module';
import './style.scss';
class Controller {
constructor() {
this.phoneNumber = null;
}
}
ngModule.vnComponent('vnLinkPhone', {
template: require('./index.html'),
controller: Controller,
bindings: {
phoneNumber: '<',
}
});

View File

@ -0,0 +1,7 @@
vn-link-phone {
vn-icon {
font-size: 1.1em;
vertical-align: bottom;
}
}

View File

@ -45,11 +45,18 @@
<vn-label-value label="Contact" <vn-label-value label="Contact"
value="{{$ctrl.summary.contact}}"> value="{{$ctrl.summary.contact}}">
</vn-label-value> </vn-label-value>
<vn-label-value label="Phone" <vn-label-value label="Phone">
value="{{$ctrl.summary.phone}}">
<vn-link-phone
phone-number="$ctrl.summary.phone"
></vn-link-phone>
</vn-label-value> </vn-label-value>
<vn-label-value label="Mobile" <vn-label-value label="Mobile">
value="{{$ctrl.summary.mobile}}">
<vn-link-phone
phone-number="$ctrl.summary.mobile"
></vn-link-phone>
</vn-label-value> </vn-label-value>
<vn-label-value label="Email" no-ellipsize <vn-label-value label="Email" no-ellipsize
value="{{$ctrl.listEmails($ctrl.summary.email)}}"> value="{{$ctrl.listEmails($ctrl.summary.email)}}">

View File

@ -47,6 +47,11 @@
"type": "belongsTo", "type": "belongsTo",
"model": "VnUser", "model": "VnUser",
"foreignKey": "userFk" "foreignKey": "userFk"
},
"shelving": {
"type": "belongsTo",
"model": "Shelving",
"foreignKey": "shelvingFk"
} }
} }
} }

View File

@ -48,8 +48,10 @@
<vn-label-value label="Landed" <vn-label-value label="Landed"
value="{{$ctrl.summary.landed | date: 'dd/MM/yyyy HH:mm'}}"> value="{{$ctrl.summary.landed | date: 'dd/MM/yyyy HH:mm'}}">
</vn-label-value> </vn-label-value>
<vn-label-value label="Phone" <vn-label-value label="Phone">
value="{{$ctrl.summary.address.phone}}"> <vn-link-phone
phone-number="$ctrl.summary.address.phone"
></vn-link-phone>
</vn-label-value> </vn-label-value>
<vn-label-value label="Created from" <vn-label-value label="Created from"
value="{{$ctrl.summary.sourceApp}}"> value="{{$ctrl.summary.sourceApp}}">

View File

@ -25,7 +25,10 @@
<vn-one> <vn-one>
<vn-label-value <vn-label-value
label="Phone" label="Phone"
value="{{summary.phone}}"> >
<vn-link-phone
phone-number="summary.phone"
></vn-link-phone>
</vn-label-value> </vn-label-value>
<vn-label-value <vn-label-value
label="Worker" label="Worker"

View File

@ -1,10 +1,9 @@
@import "variables"; @import "variables";
vn-roadmap-summary .summary { vn-roadmap-summary .summary {
a { a:not(vn-link-phone a) {
display: flex; display: flex;
align-items: center; align-items: center;
height: 18.328px; height: 18.328px;
} }
} }

View File

@ -10,6 +10,9 @@
"id": { "id": {
"id": true, "id": true,
"type": "number" "type": "number"
},
"usedShelves": {
"type": "number"
} }
}, },
"relations": { "relations": {

View File

@ -83,19 +83,29 @@
</vn-label-value> </vn-label-value>
<vn-label-value label="Address phone" <vn-label-value label="Address phone"
ng-if="$ctrl.summary.address.phone != null" ng-if="$ctrl.summary.address.phone != null"
value="{{$ctrl.summary.address.phone}}"> >
<vn-link-phone
phone-number="$ctrl.summary.address.phone"
></vn-link-phone>
</vn-label-value> </vn-label-value>
<vn-label-value label="Address mobile" <vn-label-value label="Address mobile"
ng-if="$ctrl.summary.address.mobile != null" ng-if="$ctrl.summary.address.mobile != null"
value="{{$ctrl.summary.address.mobile}}"> >
<vn-link-phone
phone-number="$ctrl.summary.address.mobile"
></vn-link-phone>
</vn-label-value> </vn-label-value>
<vn-label-value label="Client phone" <vn-label-value label="Client phone"
ng-if="$ctrl.summary.client.phone != null" ng-if="$ctrl.summary.client.phone != null">
value="{{$ctrl.summary.client.phone}}"> <vn-link-phone
phone-number="$ctrl.summary.client.phone"
></vn-link-phone>
</vn-label-value> </vn-label-value>
<vn-label-value label="Client mobile" <vn-label-value label="Client mobile"
ng-if="$ctrl.summary.client.mobile != null" ng-if="$ctrl.summary.client.mobile != null">
value="{{$ctrl.summary.client.mobile}}"> <vn-link-phone
phone-number="$ctrl.summary.client.mobile"
></vn-link-phone>
</vn-label-value> </vn-label-value>
<vn-label-value label="Address" no-ellipsize <vn-label-value label="Address" no-ellipsize
value="{{$ctrl.formattedAddress}}"> value="{{$ctrl.formattedAddress}}">

View File

@ -47,4 +47,9 @@ vn-ticket-summary .summary {
} }
} }
} }
vn-icon.tel {
font-size: 1.1em;
vertical-align: bottom;
}
} }

View File

@ -47,6 +47,9 @@
}, },
"locker": { "locker": {
"type" : "number" "type" : "number"
},
"isF11Allowed": {
"type" : "boolean"
} }
}, },
"relations": { "relations": {

View File

@ -28,11 +28,17 @@
</vn-label-value> </vn-label-value>
<vn-label-value <vn-label-value
label="Phone" label="Phone"
value="{{$ctrl.worker.phone}}"> >
<vn-link-phone
phone-number="$ctrl.worker.phone"
></vn-link-phone>
</vn-label-value> </vn-label-value>
<vn-label-value <vn-label-value
label="Extension" label="Extension"
value="{{$ctrl.worker.sip.extension}}"> >
<vn-link-phone
phone-number="$ctrl.worker.sip.extension"
></vn-link-phone>
</vn-label-value> </vn-label-value>
</div> </div>
<div class="icons"> <div class="icons">

View File

@ -1,6 +1,5 @@
import ngModule from '../module'; import ngModule from '../module';
import Descriptor from 'salix/components/descriptor'; import Descriptor from 'salix/components/descriptor';
class Controller extends Descriptor { class Controller extends Descriptor {
constructor($element, $, $rootScope) { constructor($element, $, $rootScope) {
super($element, $); super($element, $);

View File

@ -42,14 +42,21 @@
{{::worker.boss.name}} {{::worker.boss.name}}
</span> </span>
</vn-label-value> </vn-label-value>
<vn-label-value label="Mobile extension" <vn-label-value label="Mobile extension">
value="{{worker.mobileExtension}}"> <vn-link-phone
phone-number="worker.mobileExtension"
></vn-link-phone>
</vn-label-value> </vn-label-value>
<vn-label-value label="Business phone" <vn-label-value label="Business phone">
value="{{worker.phone}}"> <vn-link-phone
phone-number="worker.phone"
></vn-link-phone>
</vn-label-value> </vn-label-value>
<vn-label-value label="Personal phone" <vn-label-value label="Personal phone"
value="{{worker.client.phone}}"> >
<vn-link-phone
phone-number="worker.client.phone"
></vn-link-phone>
</vn-label-value> </vn-label-value>
<vn-label-value label="Locker" <vn-label-value label="Locker"
value="{{worker.locker}}"> value="{{worker.locker}}">

View File

@ -1,6 +1,5 @@
import ngModule from '../module'; import ngModule from '../module';
import Summary from 'salix/components/summary'; import Summary from 'salix/components/summary';
class Controller extends Summary { class Controller extends Summary {
get worker() { get worker() {
return this._worker; return this._worker;