Errores solucionados
This commit is contained in:
parent
34e0537b64
commit
88992438e2
|
@ -6,7 +6,7 @@ class Controller {
|
||||||
this.element = $element[0];
|
this.element = $element[0];
|
||||||
this.$state = $state;
|
this.$state = $state;
|
||||||
this.note = {
|
this.note = {
|
||||||
client: $state.params.id,
|
clientFk: $state.params.id,
|
||||||
text: null
|
text: null
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<vn-horizontal ng-repeat="n in observation.observations" margin-small-bottom style="align-items: center;">
|
<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">
|
<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.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>
|
<div>{{n.text}}</div>
|
||||||
</vn-auto>
|
</vn-auto>
|
||||||
</vn-horizontal>
|
</vn-horizontal>
|
||||||
|
|
|
@ -6,6 +6,7 @@ module.exports = function(ClientObservation) {
|
||||||
|
|
||||||
ClientObservation.observe('before save', function(ctx, next) {
|
ClientObservation.observe('before save', function(ctx, next) {
|
||||||
ctx.instance.creationDate = Date();
|
ctx.instance.creationDate = Date();
|
||||||
|
ctx.instance.employeeFk = 20;
|
||||||
next();
|
next();
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
|
@ -42,6 +42,6 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"scope": {
|
"scope": {
|
||||||
"include": "employeeFk"
|
"include": "employee"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue