Errores solucionados

This commit is contained in:
Juan Ferrer Toribio 2017-05-12 13:58:08 +02:00
parent 34e0537b64
commit 88992438e2
4 changed files with 4 additions and 3 deletions

View File

@ -6,7 +6,7 @@ class Controller {
this.element = $element[0];
this.$state = $state;
this.note = {
client: $state.params.id,
clientFk: $state.params.id,
text: null
};
}

View File

@ -4,7 +4,7 @@
<vn-horizontal ng-repeat="n in observation.observations" margin-small-bottom style="align-items: center;">
<vn-auto style="border-radius: .3em;" class="pad-small border-solid">
<div class="notes-date">{{n.creationTime | date:'dd/MM/yyyy HH:mm'}}</div>
<div class="notes-date">{{n.employeeFk.name}}</div>
<div class="notes-date">{{n.employee.name}}</div>
<div>{{n.text}}</div>
</vn-auto>
</vn-horizontal>

View File

@ -6,6 +6,7 @@ module.exports = function(ClientObservation) {
ClientObservation.observe('before save', function(ctx, next) {
ctx.instance.creationDate = Date();
ctx.instance.employeeFk = 20;
next();
});
};

View File

@ -42,6 +42,6 @@
}
],
"scope": {
"include": "employeeFk"
"include": "employee"
}
}